oDepth | index /users/schrei_f/src/py4CAtS/lite/src/oDepth.py |
oDepth
Read and convert / plot / write molecular optical depth (e.g., to reformat or plot).
usage:
oDepth [options] od_file(s)
command line options:
-c char(s) comment character in input file(s) (default #)
-f string format for output file [default: 'xy']
-h help
-m char "a|A" accumulate delta optical depth to cumulative optical depth
from bottom --> top OR top --> bottom
"d|D" convert cumulative optical depth to delta optical depth
"s|S" sum delta optical depth to total path optical depth (default!)
"r|R" revert accumulated optical depths
"t" convert optical depths to transmissions = exp(-od)
"T" sum delta optical depth to total and convert to transmission = exp(-od)
"1" locate (approximately) the altitude/distance where od=1 (for uplooking view)
--BoA float bottom-of-atmosphere altitude [km] (read opt.depth only for levels above)
--ToA float top-of-atmosphere altitude [km] (read opt.depth only for levels below)
NOTE: no interpolation, i.e. integration starts/stops at the next level above/below BoA/ToA
-i string interpolation method for spectral domain (optical depth vs wavenumber)
-n convert x axis from wavenumber to wavelength[nanometer]
NOTE: if the input x is already wavelength[nanometer], then the new x is converted back to wavenumber!
-o file output file (default: standard output)
-p matplotlib for quicklook of input optical depth(s)
-P matplotlib for quicklook of output optical depth(s) or transmission/weighting function
-r on output reverse layer optical depth order: top <--> bottom of atmosphere
-x Interval lower,upper wavenumbers/wavelengths (comma separated pair of floats, no blanks!)
--xFormat string format to be used for wavenumbers, default '%12f' (only for ascii tabular)
--yFormat string format to be used for optical depth, default '%11.5f' (only for ascii tabular)
-z float zenith angle: scale optical depth by 1/cos(zenithAngle) (0dg=uplooking, 180dg=downlooking)
optical depth files:
* xy formatted ascii file with wavenumbers in column 1 and optical depth(s) (for some layers) in the following column(s).
* pickled optical depth
* [ netcdf formatted optical depth file ]
NOTES:
* If no output file is specified, only a summary 'statistics' is given !!!
WARNING:
oDepth does NOT know the type of optical depth (delta or accumulated ...) given in the input file!
CAUTION: mode='t' for oDepth -> transmission is inconsistent with mode='t' for total/sum oDepth
in the lbl2od and ac2od modules
Classes | ||||||||||
|
Functions | ||
|
Data | ||
punctuation = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~' simpleNames = {'Altitude': 'z', 'Altitudes': 'z', 'Density': 'air', 'HGT': 'z', 'Height': 'z', 'Heights': 'z', 'PRE': 'p', 'Press': 'p', 'Pressure': 'p', 'Pressures': 'p', ...} |