blackbody¶
-
ChiantiPy.tools.sources.
blackbody
(temperature, variable, hnu=1)[source] [edit on github]¶ Calculate the blackbody photon distribution as a function of energy (
hnu
= 1) or as a function of wavelength (hnu
= 0) in units of \(\mathrm{photons}\,\mathrm{cm}^{-2}\,\mathrm{s}^{-1}\,\mathrm{str}^{-1}\,\mathrm{erg}^{-1}\)Parameters: temperature :
float64
Temperature at which to calculate the blackbody photon distribution
variable :
ndarray
Either energy (in erg) or wavelength (in angstrom)
hnu :
int
If 1, calculate distribution as a function of energy. Otherwise, calculate it as a function of wavelength
Returns: {‘photons’, ‘temperature’, ‘energy’} or {‘photons’, ‘temperature’, ‘wvl’} :
dict