AOS 640 resources

Class information

Semester reading schedule  -- important!

Student feedback from past years (I post this both for my own reference and so students can see the range of opinions held by other students!)

Project related materials:

Monte Carlo project

   Complete instructions
Random number generator
Fortran
 C
Monte Carlo code fragments
C
Fortran
Derivation of relationships for converting photon-relative coordinates to model-relative coordinates.
Sample output  (tau = 2, ssa=0.9990, g = 0.85, theta0 = 60 )
Sample output  (tau = 0.1, ssa= 0.9000, g=0.80, theta0 = 30.0)

Weighting function project

    Instructions

Mass extinction coefficient of dry air and water vapor
Interpolation program
Saturation vapor pressure routine
Sample input sounding (with added 'bogus' levels at 10 and 1 mb)
Sample output from interpolation program
Sample file containing layer properties (you need to write program that duplicates these results)
DelZ = layer thickness (m)
Ztop = altitude of layer top (m)
Tbar = average temperature of layer (K)
Pbar = average pressure of layer (Pa)
RhoWV = water vapor density (g / m**3)
MassAir = layer air mass (kg/m**2)
MassWV = layer vapor mass (kg/m**2)
Sample file containing computed weighting function and brightness temperature
The above file is for  freq=53.0 GHz, surface temp = 300 K, surface emissivity = 0.5, mu = 0.5.
First line contains computed brightness temperature at the top of the atmosphere.
First column is W(z), second colum is z (km).
Postscript plot of weighting function

Greenbay sounding (8 April 2002)
Fairbanks sounding (29 January 2002)

Streamer project

Instructions
Main web page for Streamer

Sample input files:
shortwave.inp   Broadband fluxes and heating rates for shortwave.
longwave.inp    Broadband fluxes and heating rates, longwave
combined.inp    Broadband fluxes and heating rates, both shortwave and longwave
all_bands.inp    Band-by-band fluxes and heating rates; each of 129 bands in sequence
single_band.inp Single band fluxes and heating rates.

read_streamer_output.f  A Fortran program I wrote that can be used/adapted for efficiently "mining" streamer output files for selected variables and writing them out in a more convenient or compact format.  This is especially useful for the output of "all_bands.inp".   Modify this program as needed to write the values of just the variables you require for a particular purpose. You might also have to modify a line or two (e.g.,

if (idashcount .lt. 2) goto 1)

to get it to correctly advance to the right point in the output file for your particular case.

 

Notes on computer languages and plotting

You will have to choose which language you would like use for your projects. Here are some of the options:

Fortran

Pros:

Cons:

C/C++

Pros:

Cons:

IDL

Pros:

Cons:

MatLab

Pros:

Cons:

Text Editors

Regardless of what language you use, you need to be able to create and edit the program before executing it. This requires a suitable text editor. I think MatLab might have a built-in text editor. For other languages, you'll need an external one. A text editor is NOT the same as a word processing programming like Word, and I do not recommend trying to use Word for this purpose (even though it's theoretically possible, if you really know what you're doing). Rather, the most common options for editing programs include (among others) vi and emacs. Personally I think vi has few advantages and many disadvantages; others may disagree. Both vi and emacs are available on just about any Linux machine, and emacs can be installed on Windows and Mac machines as well. And they're free! But both also require you to learn some fairly unintuitive keystrokes, though the set you really, really need is pretty small.

Here is a cheat-sheet for emacs with the most essential commands (this is all I need 99% of the time, even though I've been using emacs for 20 years).