Bases: omnifit.spectrum.spectrum.BaseSpectrum
A class specialized in representing absorption spectra of the type often used in ice spectroscopy.
The functionality of this class is otherwise identical to BaseSpectrum, except it contains an additional method for plotting the optical depth spectrum in either microns and kayser units, both of which it stores as additional attributes. Upon initialisation it uses the kayser units as its x axis units.
Attributes
All the attributes stored in BaseSpectrum, plus the following: | |
wn | (astropy.units.Quantity) The data on the x-axis of the spectrum, expressed in kayser (reciprocal wavenumber) units. |
wl | (astropy.units.Quantity) The data on the x-axis of the spectrum, expressed in microns. |
od | (astropy.units.Quantity) The data on the y-axis spectrum, expressed as optical depth units (using omnifit.utils.unit_od). |
Constructor for the AbsorptionSpectrum class.
Parameters: |
**kwargs : Arguments, optional
|
---|
Methods Summary
plotod(ax,in_wl=False,**kwargs) | Plot the optical depth spectrum as either a function of reciprocal wavenumber or wavelength to the given axis. |
Methods Documentation
Plot the optical depth spectrum as either a function of reciprocal wavenumber or wavelength to the given axis.
Parameters: | axis : matplotlib.axis
in_wl : bool, optional
**kwargs : Arguments, optional
|
---|