ac2od
index
../src3/ac2od.py

ac2od
 
 Read absorption coefficient file and integrate over vertical path through atmosphere.
 
 usage:
 ac2od  [options]  ac_file
 
 -h               help
 -c     char      comment character(s) used in input,output file (default '#')
 -o     string    output file for saving of optical depth (if not given: write to StdOut)
                  (if the output file's extension ends with ".nc", ".ncdf" or ".netcdf",
                   a netcdf file is generated, otherwise the file is ascii tabular or pickled)
 
 -m     char      mode: 'c' ---> cumulative optical depth
                        'd' ---> difference (delta) optical depth (default)
                        'r' ---> reverse cumulative optical depth
                        't' ---> total optical depth
 
--BoA   float     bottom-of-atmosphere altitude [km]  (compute opt.depth only for levels above)
--ToA   float     top-of-atmosphere altitude [km]     (compute opt.depth only for levels below)
 -x     Interval  lower,upper wavenumbers (comma separated pair of floats [no blanks!],
                                           default set according to wavenumber range of absorption coefficients)
 
 -i     char      interpolation method   [default: '2' two-point Lagrange,  choices are one of "234lqc"]
--nm              on output write optical depth versus wavelength [nm] (default: wavenumber 1/cm)
--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)
                  (if xFormat or yFormat is an empty string, netcdf or pickled format will be used)

 
Modules
       
numpy

 
Functions
       
ac2dod(acList, verbose=True)
Integrate absorption coefficient along vertical path thru atmosphere layer-by-layer and return delta optical depths.
 
ARGUMENTS
---------
 
acList:      a list of subclassed numpy arrays with the absorption coefficients,
             including z, p, T, and wavenumber grid information as attributes (similar to xsArray)
verbose      boolean flag
 
RETURNS:
--------
dodList      a list of delta (layer) optical depths
             (instances of odArray: subclassed numpy arrays with the layer optical depths
             including z, p, T, and wavenumber grid information as attributes (similar to xsArray)
 
NOTE:        the optDepth list has one element less than the acList:
             each ac is defined for a level (altitude, pressure, ...)
             each od is defined for a layer (altitude interval, ...)
             Accordingly, the z, p, ... attributes of od are actually pairs (z and p intervals etc.)

 
Data