Home | Trees | Indices | Help |
---|
|
The MolReader class.
Inherits from the Reader class.
Provides methods to manage molecular spectroscopic data (excitation levels, Einstein A coefficients, transitions, etc). The only exception to this is the collisional rate data.
Subclasses provide the read and parse methods that are code-specific:
The level populations are read with PopReader for MCP/ALI, and MlineReader for GASTRoNOoM. The collision rates are read with CollisReader for GASTRoNOoM, and LamdaReader for MCP/ALI.
|
|||
new empty dictionary |
|
||
float/array |
|
||
float/array |
|
||
array |
|
||
int/array |
|
||
int/array |
|
||
array |
|
||
float/array |
|
||
float/array |
|
||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Initialize an MolReader object. The filename and additional args/kwargs are passed to the Reader parent class, where the dict is made and the filename is stored. Additional args/kwargs are used for the dict creation. Note that this is the only class directly inheriting from Reader that does not have its own read method (unlike PopReader and CollisReader). This is because it is always combined with a different type of class in multiple inheritance, depending on the input type of the spectroscopy (GASTRoNOoM versus Lamda)
|
Return the frequencies for the <nline> included transitions. In case a single frequency is requested via index, the frequency is extracted from the array.
|
Return the Einstein A coefficients for the <nline> included transitions. In case a single Einstein coefficient is requested via index, the value is extracted from the array.
|
Return the indices of the transitions read from the molecular spectroscopy data. A specific index (or array of indices) can be requested by specifying the lower and upper level index. LamdaReader first inherits from MolReader, so the default will be itype 'trans' for LamdaReader.
|
Return the indices of the upper states of the <nline> included transitions. These are NOT the quantum numbers! Especially for CO-type molecules, the J-level is equal to level_index-1. In case a single upper level is requested via index, the level index is extracted from the array.
|
Return the indices of the lower states of the <nline> included transitions. These are NOT the quantum numbers! Especially for CO-type molecules, the J-level is equal to level_index-1. In case a single lower level is requested via index, the level index is extracted from the array.
|
Return the indices of the excitation levels read from the molecular spectroscopy data.
|
Return the weights of the <ny_up+ny_low> excitation levels. In case a single weight is requested via index, the weight value is extracted from the array.
|
Return the energies of the <ny_up+ny_low> excitation levels. In case a single energy level is requested via index the energy value is extracted from the array.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:58 2016 | http://epydoc.sourceforge.net |