Stellar Models (taurex.stellar
)¶
Base¶
-
class
Star
(temperature=5000, radius=1.0, distance=1, magnitudeK=10.0, mass=1.0, metallicity=1.0)[source]¶ Bases:
taurex.data.fittable.Fittable
,taurex.log.logger.Logger
,taurex.output.writeable.Writeable
,taurex.data.citation.Citable
A base class that holds information on the star in the model. Its implementation is a star that has a blackbody spectrum.
- Parameters
temperature (float, optional) – Stellar temperature in Kelvin
radius (float, optional) – Stellar radius in Solar radius
metallicity (float, optional) – Metallicity in solar values
mass (float, optional) – Stellar mass in solar mass
distance (float, optional) – Distance from Earth in pc
magnitudeK (float, optional) – Maginitude in K band
-
initialize
(wngrid)[source]¶ Initializes the blackbody spectrum on the given wavenumber grid
- Parameters
wngrid (
array
) – Wavenumber grid cm-1 to compute black body spectrum
-
property
mass
¶
-
property
radius
¶ Radius in metres
- Returns
R
- Return type
float
-
property
spectralEmissionDensity
¶ Spectral emmision density
- Returns
sed
- Return type
array
-
property
temperature
¶ Blackbody temperature in Kelvin
- Returns
T
- Return type
float
Blackbody¶
-
class
BlackbodyStar
(temperature=5000, radius=1.0, distance=1, magnitudeK=10.0, mass=1.0, metallicity=1.0)[source]¶ Bases:
taurex.data.stellar.star.Star
Alias for the base star type
PHOENIX¶
-
class
PhoenixStar
(temperature=5000, radius=1.0, metallicity=1.0, mass=1.0, distance=1, magnitudeK=10.0, phoenix_path=None, retro_version_file=None)[source]¶ Bases:
taurex.data.stellar.star.BlackbodyStar
A star that uses the PHOENIX synthetic stellar atmosphere spectrums.
These spectrums are read from
.gits.gz
files in a directory given byphoenix_path
Each file must contain the spectrum for one temperature- Parameters
phoenix_path (str, required) – Path to folder containing phoenix
fits.gz
filestemperature (float, optional) – Stellar temperature in Kelvin
radius (float, optional) – Stellar radius in Solar radius
metallicity (float, optional) – Metallicity in solar values
mass (float, optional) – Stellar mass in solar mass
distance (float, optional) – Distance from Earth in pc
magnitudeK (float, optional) – Maginitude in K band
- Raises
Exception – Raised when no phoenix path is defined
-
BIBTEX_ENTRIES
= ['\n @article{ refId0,\n author = {{Husser, T.-O.} and {Wende-von Berg, S.} and {Dreizler, S.} and {Homeier, D.} and {Reiners, A.} and {Barman, T.} and {Hauschildt, P. H.}},\n title = {A new extensive library of PHOENIX stellar atmospheres and\n synthetic spectra},\n DOI= "10.1051/0004-6361/201219058",\n url= "https://doi.org/10.1051/0004-6361/201219058",\n journal = {A\\&A},\n year = 2013,\n volume = 553,\n pages = "A6",\n month = "",\n }\n ']¶
-
initialize
(wngrid)[source]¶ Initializes and interpolates the spectral emission density to the current stellar temperature and given wavenumber grid
- Parameters
wngrid (
array
) – Wavenumber grid to interpolate the SED to
-
property
mass
¶ Mass of star in solar mass
- Returns
M
- Return type
float
-
property
spectralEmissionDensity
¶ Spectral emmision density
- Returns
sed
- Return type
array
-
property
temperature
¶ Effective Temperature in Kelvin
- Returns
T
- Return type
float