radInt
index
radInt.py

radInt
radiation intensity

 
Classes
       
numpy.ndarray(builtins.object)
riArray

 
class riArray(numpy.ndarray)
    A subclassed numpy array of radiance intensity with xLimits, z, ... attributes added.
 
Furthermore, some convenience functions are implemented:
*  dx:       return wavenumber grid point spacing
*  grid:     return a numpy array with the uniform wavenumber grid
*  regrid:   return a riArray with the ri data interpolated to a new grid (same xLimits!)
#  truncate: return a riArray with the wavenumber range (xLimits) truncated
#  convolve: return a riArray of radiance convolved with a spectral response function
#  kelvin:   return a numpy array of equivalent brightness temperatures
 
  Methods defined here:
__array_finalize__(self, obj)
None.
__eq__(self, other)
Compare radiance/intensity including its attributes.
(For p and od relative differences < 0.1% are seen as 'equal')
__str__(self)
Return str(self).
convolve(self, hwhm=1.0, srf='Box')
Return a radiance / intensity convolved with a spectral response function of half width @ half maximum.
dx(self)
Return wavenumber grid point spacing.
kelvin(self, grid=False)
Return equivalent brightness temperature ndarray (optionally with wavenumber grid).
grid(self)
Setup a uniform, equidistant wavenumber grid of len(self).
info(self)
Return basic information (z, p, T, wavenumber and radiance range).
regrid(self, new, method='l', yOnly=False)
Interpolate absorption coefficients to (usually denser) uniform, equidistant wavenumber grid.
truncate(self, xLimits)
Return a radiance / intensity in a truncated (smaller) wavenumber interval.

 
Functions
       
ceil(...)
ceil(x)
 
Return the ceiling of x as an Integral.
This is the smallest integer >= x.
riPlot(radi, mue=False, kelvin=False)
Quicklook plot radiance intensity vs. wavenumber.
 
ARGUMENTS:
----------
 
radi:          radiance intensity spectrum (along with attributes) or a list thereof
mue:           flag:  plot radiance vs. wavelength [mue] (default False)
kelvin:        flag:  plot equ. brightness temperature vs. wavenumber (default False)
riRead(riFile, commentChar='#')
Read radiance intensity vs. wavenumber along with some attributes from file.
riSave(radi, outFile=None, info=None, commentChar='#')
Write radiance intensity vs. wavenumber along with some attributes to file.
 
ARGUMENTS:
----------
 
radi:          radiance intensity spectrum (along with attributes) or a list thereof
outFile:       destination file, stdout if unspecified
info:          information string to be included in file header (default None)
commentChar    character to be used for comment lines in file header
               default empty string "", i.e. pickle radiance(s)

 
Data
        punctuation = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'