pytmosph3r.planetary_system.star.star_spectrum
Module Contents
- class SpectrumStar(spectrum: exo_k.Spectrum, radius: float | astropy.units.Quantity = 695700000.0, mass: None | float | astropy.units.Quantity = None, **kwargs)[source]
Bases:
pytmosph3r.planetary_system.star.base.BaseStar
SpectrumStar allow to provide a custom flux at the star surface.
With this kind of spectrum, it only makes sense to define the bolometric luminosity over the given wavenumbers range. Indeed, we have no way to get the energy distributed outside the range.
- Parameters:
radius (float, optional) – Stellar radius in`m`
mass (float, optional) – Stellar mass in kg
- classmethod fromBolometricLuminosity(bolometric_luminosity: astropy.units.Quantity, spectrum: exo_k.Spectrum, radius: astropy.units.Quantity, mass: astropy.units.Quantity)[source]
Create a SpectrumStar object from a bolometric luminosity and spectrum.
- Parameters:
bolometric_luminosity (Quantity['power']) – Bolometric luminosity of the star when integrated on the spectrum range.
spectrum (Spectrum) – Spectrum of the star.
radius (Quantity['length']) – Stellar radius [Length].
mass (Quantity['mass']) – Stellar mass [Mass].
- Returns:
An object behaving as a Star, with a custom flux.