Package ComboCode :: Package cc :: Package tools :: Package io :: Module Atmosphere :: Class Atmosphere
[hide private]
[frames] | no frames]

Class Atmosphere

source code


Reading stellar model atmospheres.

Instance Methods [hide private]
 
__init__(self, modeltype, filename=None)
Initializing an Atmosphere() object.
source code
list[string]
getModelList(self)
Retrieve a list of models available in the modelgrids folder for the requested model type.
source code
 
setModelGrid(self, index)
Set the model atmosphere to be read, identified by the index in the model list.
source code
 
readModelGrid(self)
Read the model atmosphere fits file.
source code
pyfits.NP_pyfits.Header()
getHeader(self)
Return the main header of the fits file.
source code
recarray
getModelGrid(self)
Return the TEFF and LOGG grid for this model.
source code
recarray
getModel(self, teff, logg)
Return the model atmosphere for given effective temperature and log g.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, modeltype, filename=None)
(Constructor)

source code 

Initializing an Atmosphere() object.

The stellar model atmospheres are read from a given folder and the preferred model is chosen after initialisation.

The location of the model atmospheres is taken from Path.dat.

Parameters:
  • modeltype (string) - Type of model atmosphere (any from IVSDATA folder)
  • filename (string) - The filename of the model atmosphere in the modelgrids folder. If None, the filename can be set later.

    (default: None)

Overrides: object.__init__

getModelList(self)

source code 

Retrieve a list of models available in the modelgrids folder for the requested model type.

When setting a model, the model is identified by its index in this list.

Returns: list[string]
The filepaths available for given modeltype.

setModelGrid(self, index)

source code 

Set the model atmosphere to be read, identified by the index in the model list.

Once set here, or if given upon initialisation of the Atmosphere() object, the model cannot be changed for this instance.

getHeader(self)

source code 

Return the main header of the fits file.

Returns: pyfits.NP_pyfits.Header()
The header information

getModelGrid(self)

source code 

Return the TEFF and LOGG grid for this model.

Returns: recarray
the grid values of the teff and logg parameters

getModel(self, teff, logg)

source code 

Return the model atmosphere for given effective temperature and log g.

Not yet scaled to the distance!

Units returned are (micron,Jy)

Parameters:
  • teff (float) - the stellar effective temperature
  • logg (float) - the log g value
Returns: recarray
The model spectrum in (micron,Jy)