PHOENIX tools¶
“PHOENIX is a general-purpose state-of-the-art stellar and planetary atmosphere code” developed at the Hamburger Sternwarte (PHOENIX home).
Here, we merely provide a number of routines to support work with the output.
- PyAstronomy.pyasl.phoenixUtils.decomposeFilename(fn)¶
Decompose PHOENIX filename.
- Parameters
- fnstring
The filename.
- Returns
- Parametersdictionary
- A dictionary with the following keys:
teff: The effective temperature in K
logg: Log(g [cm/s**2])
met: Metallicity (M/H)
fn: Complete filename
notParsed: Part of the filename not parsed for teff, logg, and metallicity.
Note that None is returned if the filename could not be parsed.
- PyAstronomy.pyasl.phoenixUtils.readUnit7(fn, minwl=None, maxwl=None)¶
Read PHOENIX Unit 7 files.
The documentation of the PHOENIX output files may be found in the PHOENIX manual (Sect. PHOENIX files): http://www.hs.uni-hamburg.de/EN/For/ThA/phoenix/manual.html.
- Parameters
- fnstring
Filename. Name ending in .gz will be treated as gzipped files.
- minwlfloat, optional
Minimum wavelength to be considered [A].
- maxwlfloat, optional
Maximum wavelength to be considered [A].
- Returns
- Model spectrumarray
Array with 4 column. 1) The wavelength [A], 2) log10 of the flux [erg/s/cm^2/cm], 3) log10 of the Planck flux [erg/s/cm^2/cm] function, 4) log10(flux(tau_std(2))) [erg/s/cm^2/cm].
- PyAstronomy.pyasl.phoenixUtils.readDTable(fn, sort=None)¶
Read a table with numbers in d-format.
In d-format, a number, e.g., looks 1.3d-3.
- Parameters
- fnstring
Filename.
- sortint, optional
If given, the table will be sorted with respect to that column. The first columns is 0.
- Returns
- tablearray
An array with as many columns and rows as the table read from file.