CoolDwarf.opac.opal package¶
Subpackages¶
Submodules¶
CoolDwarf.opac.opal.opac module¶
This module provides helper utilities for reading and parsing opal formated opacity files.
- class CoolDwarf.opac.opal.opac.OPALHighTempOpacity(X, Z)¶
Bases:
object
Methods
parse
()Parse the 126 tables out of a properly formated opal opacity table.
interpolate
kappa
kappaLogRT
- interpolate(dataframes)¶
- kappa(temp, density, log=False)¶
- kappaLogRT(logT, logR)¶
- parse()¶
Parse the 126 tables out of a properly formated opal opacity table. This idetifies all lines starting with Table # after the summary section and uses those to index where the tables begin. Given that opal opacity tables are not square and that numpy can only handel rectangular data all rows are padded to the length of the longest row with np.nan. Therefore, nan(s) should be interprited as locations where the opacity table was undefined.