| |
- convolve_grating(vGrid, yValues, resolve=1000.0, what='i', vExt=5.0)
- Convolve spectra with a Gaussian spectral response function of fixed resolving power.
ARGUMENTS:
----------
vGrid: the wavenumber grid of the monochromatic (high resolution) spectra
yValues: a rank-1 spectrum or rank-2 array (matrix) of spectra
resolve: resolving power R = nu/dNu = lambda/dLambda
vExt: left and right wing cutoff for Gauss response function in units of width
what: type of spectra: 'i' or 'r' radiance (default)
't' transmission
'o' optical depth (see note)
RETURNS:
--------
the spectrum/spectra convolved with a Gaussian response function
NOTE:
-----
* In case of transmission, the convolution uses absorption = 1-transmission
* In case of optical depth, this is transformed to 1-transmission = 1-exp(-od)
before the convolution and transformed back afterwards
* In contrast to the (old) gaussedSpec etc routines, the new grid is set automatically
|