StellarSpectrum¶
- class kelp.StellarSpectrum(wavelength, spectral_flux_density)[source] [edit on github]¶
Bases:
object
- Parameters:
Methods Summary
from_blackbody
(T_s)Return PHOENIX model stellar spectrum for a star with a given effective temperature
T_s
and surface gravitylog_g
.from_phoenix
(T_s[, log_g, cache])Return PHOENIX model stellar spectrum for a star with a given effective temperature
T_s
and surface gravitylog_g
.from_zeros
([size])Construct a stellar spectrum with all zeros as the wavelength and spectrum arrays.
plot
([ax])Plot the stellar spectrum.
Methods Documentation
- classmethod from_blackbody(T_s)[source] [edit on github]¶
Return PHOENIX model stellar spectrum for a star with a given effective temperature
T_s
and surface gravitylog_g
.- Parameters:
- T_sint
Effective temperature
- log_gfloat
Surface gravity
- classmethod from_phoenix(T_s, log_g=4.5, cache=False)[source] [edit on github]¶
Return PHOENIX model stellar spectrum for a star with a given effective temperature
T_s
and surface gravitylog_g
.- Parameters:
- T_sint
Effective temperature
- log_gfloat
Surface gravity
- cachebool
Cache the retrieved stellar spectrum.
- classmethod from_zeros(size=10)[source] [edit on github]¶
Construct a stellar spectrum with all zeros as the wavelength and spectrum arrays.
This effectively turns off the custom stellar spectrum feature.