| |
- ceil(...)
- ceil(x)
Return the ceiling of x as an Integral.
This is the smallest integer >= x.
- wfPeakHeight(wgtFct, verbose=False)
- Locate the maximum altitude of the weighting function.
- wfPlot(wgtFct, wavenumber=None, nLevels=None, verbose=False)
- Plot weighting functions at specific wavenumber(s).
Arguments:
----------
wgtFct: a subclassed 2D np.array with len(vGrid) rows and len(sGrid) columns;
attributes: wavenumber interval, sGrid (distance [cm] to observer), and angle
wavenumber: wavenumber(s) of interest
if a single integer n is given, plot for n uniformly spaced wavenumber
if float(s) are given, pick the wgtFct(s) next to these wavenumber(s)
if unspecified, try a color contour plot
-------------------------> ? Interval then zoom contour ? <-------------------------
nLevels: number of contour levels (default: choose automatically)
verbose: flag, if True annotate plot
NOTE:
this function plots weighting function vs altitude, not distance!
If you want to plot vs distance, you can try to give atmos['z']/cosdg(angle) as 3. argument
- wfRead(wfFile, xLimits=None, commentChar='#')
- Read weighting functions vs. wavenumber and distance from file.
wfFile: the ascii tabular or pickled data file
xLimits: wavenumber interval to return a subset of the data; default None, i.e. read all
RETURNS:
--------
wgtFct an wfArray instance with a 2D matrix of weighting functions (wavenumber vs distance)
and some attributes
- wfSave(wgtFct, outFile=None, atmos=None, transposeWF=False, commentChar='#')
- Write weighting functions vs. wavenumber or distance to file.
Arguments:
----------
wgtFct: a subclassed 2D np.array with len(vGrid) rows and len(sGrid) columns;
attributes: wavenumber interval, sGrid (distance [cm] to observer), and angle
outFile: if unspecified, write to standard output
atmos: optional: save atmospheric data in file header
transposeWF: save the transposed weighting function
default: wavenumber as very first column, further columns for altitude levels
commentChar: default '#'
NOTE:
this function saves weighting function vs distance, not altitude!
|