Package ComboCode :: Package cc :: Package tools :: Package readers :: Module LamdaReader :: Class LamdaReader
[hide private]
[frames] | no frames]

Class LamdaReader

source code


A Reader for Lamda molecular data files.

For more information on the Lamda molecular data files, see: http://home.strw.leidenuniv.nl/~moldata/ Lamda files are the input spectroscopic and collisional data files for MCP/ALI.

Provides methods to manage molecular spectroscopic data (excitation levels, Einstein A coefficients, transitions, etc) through inheritance from the MolReader class, and methods to manage collisional rate data through inheritance from the CollisReader class.

Note that both parents have methods getTI, getTUpper, getTLower. It functions the same, and the default will be MolReader's method. If you want to retrieve trans indices for the collision rates, specify the itype as 'coll_trans'.

Instance Methods [hide private]
new empty dictionary

__init__(self, fn, *args, **kwargs)
Creating a LamdaReader object ready for reading Lamda molecular data.
source code
 
read(self)
Read the Lamda file, including molecular spectroscopy and collision rates.
source code

Inherited from cc.tools.readers.MolReader.MolReader: getLEnergy, getLI, getLWeight, getTEinsteinA, getTFrequency, getTI, getTLower, getTUpper

Inherited from cc.tools.readers.CollisReader.CollisReader: getInterp, getRates, getTemp, plotCollis, setInterp

Inherited from cc.tools.readers.SpectroscopyReader.SpectroscopyReader: get

Inherited from cc.tools.readers.Reader.Reader: getFile, readFile

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fn, *args, **kwargs)
(Constructor)

source code 

Creating a LamdaReader object ready for reading Lamda molecular data.

A full filename is required.

Additional args/kwargs are used for the dict creation of the parent of Reader.

Parameters:
  • fn (string) - The lamda data filename, including filepath.
Returns:
new empty dictionary

Overrides: object.__init__

read(self)

source code 

Read the Lamda file, including molecular spectroscopy and collision rates.

Each level and transition is stored as an index, following the prescription of MolReader and CollisReader.

Overrides: cc.tools.readers.CollisReader.CollisReader.read