Bases: omnifit.spectrum.spectrum.AbsorptionSpectrum
A class specialized in representing CDE-corrected absorption spectra.
The functionality of this class is otherwise identical to AbsorptionSpectrum (and by extension, BaseSpectrum), except it contains an additional method for plotting the complex refractive index data, which it also stores in additional attributes as part of the class instance. Also stored are various additional data returned by the CDE correction, as documented below.
Attributes
All the attributes stored in AbsorptionSpectrum, plus the following: | |
m | (numpy.ndarray) The complex refractive index spectrum of the data. |
cabs | (numpy.ndarray) The spectrum of the absorption cross section of the simulated grain. |
cabs_vol | (numpy.ndarray) The spectrum of the absorption cross section of the simulated grain, normalized by the volume distribution of the grain. This parameter is the equivalent of optical depth in most cases. |
cscat_vol | (numpy.ndarray) The spectrum of the scattering cross section of the simulated grain, normalized by the volume distribution of the grain. |
ctot | (numpy.ndarray) The spectrum of the total cross section of the simulated grain. |
Constructor for the CDESpectrum class.
Parameters: | wn : astropy.units.Quantity or numpy.ndarray
m : numpy.ndarray
**kwargs : Arguments, optional
|
---|
Methods Summary
plotnk(ax_n,ax_k,**kwargs) | Plot the complex refractive indices as function of wavenumber to the two given matplotlib axes. |
Methods Documentation
Plot the complex refractive indices as function of wavenumber to the two given matplotlib axes.
Parameters: | ax_n : matplotlib.axis
ax_k : matplotlib.axis
**kwargs : Arguments, optional
|
---|