Skip to content
This repository was archived by the owner on Jul 25, 2023. It is now read-only.

Commit 4defc6b

Browse files
committed
clarified things a bit
1 parent 31bbe00 commit 4defc6b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

day_8/radiative_transfer.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,21 @@ Here are steps on the road to producing a radiative transfer model of Earth's up
4949

5050
6. Make a function that takes the altitude, temperature, scale-height, and bottom density and returns the density as a function of altitude. Run this for O and make sure if looks as expected. (Use n(O, 100 km) = 5.0e17/m3.)
5151

52-
7. Make a function that takes SZA, n(O, z), H(O, z), sigma(O, wavelength) and returns Tau as a function of altitude. For a first pass, I would concentrate only on one wavelength (e.g., 50 - 100 Angstrom bin) and SZA = 0. Plot out the single Tau as a function of wavelength. Tau should pass through 1 somewhere between 120 - 150 km altitude. Once this works, you can make the Tau for all of the 37 wavelength bins. Tau will then be a function of wavelength and altitude. You can then implement SZA and limit it to < 75 degrees.
52+
7. Make a function that takes SZA, n(O, z), H(O, z), sigma(O, wavelength) and returns Tau as a function of altitude. For a first pass, I would concentrate only on one wavelength (e.g., 50 - 100 Angstrom bin) and SZA = 0. Plot out the single Tau as a function of wavelength. Tau should pass through 1 somewhere between 120 - 150 km altitude. Once this works, you can make the Tau for all of the 37 wavelength bins. Tau will then be a function of wavelength and altitude.
53+
54+
(If you make it here, you are doing really, really well).
5355

5456
8. Create a function that calculates the energy as a function of wavelength bin. It should take the wavelength and return energy.
5557

5658
9. Create a function that calculates dT/dt. Again, test the code out with just one wavelength to make sure that it works ok. Then expand it to other wavelengths.
5759

5860
10. Expand all relevant functions that use n(O, z) to use n(O2, z) and n(N2, z) also.
5961

62+
11. You can then implement SZA in the Tau calculation. Limit it to < 75 degrees, and have Tau be very large (say 10 or so) if SZA < 75 degrees.
63+
6064
11. Set a dt (less than 5 minutes), and then update T given dT/dt. Recalculate n(O, z), n(O2, z), and n(N2, z) using your functions.
6165

62-
12. Update the SZA given the time.
66+
12. Update the SZA given the time of day.
6367

6468
13. Repeat for 24 hours.
6569

0 commit comments

Comments
 (0)