pysme.atmosphere package¶
Subpackages¶
Submodules¶
pysme.atmosphere.atmosphere module¶
Handles reading and interpolation of atmopshere (grid) data
- exception pysme.atmosphere.atmosphere.AtmosphereError[source]¶
Bases:
RuntimeError
Something went wrong with the atmosphere interpolation
- class pysme.atmosphere.atmosphere.Atmosphere(*args, **kwargs)[source]¶
Bases:
Collection
Atmosphere structure contains all information to describe the solar atmosphere i.e. temperature etc in the different layers as well as stellar parameters and abundances
- property citation_info¶
citation for this atmosphere
- Type:
str
- property depth¶
flag that determines whether to use RHOX or TAU for calculations
- Type:
str
- property dtype¶
- property geom¶
the geometry of the atmopshere model
- Type:
str
- property height¶
height of the spherical model
- Type:
array
- property interp¶
flag that determines whether to use RHOX or TAU for interpolation
- Type:
str
- property logg¶
surface gravity in log10(cgs)
- Type:
float
- property lonh¶
?
- Type:
float
- property method¶
whether the data source is a grid or a fixed atmosphere
- Type:
str
- property monh¶
metallicity
- Type:
float
- property names¶
- property ndep¶
- property opflag¶
opacity flags
- Type:
array of size (20,)
- property radius¶
radius of the spherical model
- Type:
float
- property rho¶
density profile
- Type:
array
- property rhox¶
mass column density
- Type:
array
- property source¶
datafile name of this data, or atmosphere grid/file
- Type:
str
- property tau¶
continuum optical depth
- Type:
array
- property teff¶
effective temperature in Kelvin
- Type:
float
- property temp¶
temperature profile in Kelvin
- Type:
array
- property vturb¶
turbulence velocity in km/s
- Type:
float
- property wlstd¶
wavelength standard deviation
- Type:
float
- property xna¶
number density of atoms in 1/cm**3
- Type:
array
- property xne¶
number density of electrons in 1/cm**3
- Type:
array
- class pysme.atmosphere.atmosphere.AtmosphereGrid(natmo, npoints, **kwargs)[source]¶
Bases:
recarray
A grid of atmospheres, used for the interpolation of model atmospheres. Each entry represents one atmosphere model.
- property abund_format¶
format of the Abundance field, as defined by the Abund class
- Type:
str
- property citation_info¶
Citation text to cite in your papers
- Type:
str
- property depth¶
flag that determines whether to use RHOX or TAU for calculations
- Type:
str
- property geom¶
the geometry of the atmopshere model
- Type:
str
- property interp¶
flag that determines whether to use RHOX or TAU for interpolation
- Type:
str
- property method¶
whether the data source is a grid or a fixed atmosphere
- Type:
str
- property ndep¶
- property source¶
datafile name of this data
- Type:
str
pysme.atmosphere.interpolation module¶
pysme.atmosphere.krzfile module¶
- class pysme.atmosphere.krzfile.KrzFile(filename, source=None)[source]¶
Bases:
Atmosphere
Read .krz atmosphere files
pysme.atmosphere.savfile module¶
- class pysme.atmosphere.savfile.SavFile(filename, source=None, lfs=None)[source]¶
Bases:
AtmosphereGrid
IDL savefile atmosphere grid