Home | Trees | Indices | Help |
---|
|
The PopReader class.
Inherits from the Reader class.
Provides methods to manage level populations calculated with radiative transfer such as through GASTRoNOoM and MCP/ALI. Provides basic methods for reading level populations.
Subclasses provide the read and parse methods that are code-specific, in case the basic methods do not apply:
Typically spectroscopic information is not available here but is given in MolReader objects. Collision rates are given in CollisReader objects. For MCP/ALI those are combined in LamdaReader.
|
|||
new empty dictionary |
|
||
|
|||
|
|||
|
|||
|
|||
array |
|
||
array |
|
||
array |
|
||
|
|||
interpolator |
|
||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Initialize an PopReader 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 of the parent of Reader. Note that the filename can be given as None, or may not be an existing file. In this case, nothing is read, and the user can set the impact parameter and the level populations manually with setP and setPop.
|
Read the level populations as a function of impact parameter. Each level is stored as an index according to the column from which it was read. |
Set the number of levels. Usually the highest level index.
|
Instead of reading the impact parameters, set them explicitly.
|
Instead of reading the populations, set them here per level.
|
Return the impact parameter grid.
|
Return the level populations for a set of level indices. Note that this is the level index, not lower J. For CO, the J quantum number would be index-1. Note that the array approach is not used because that makes indexing (0-based for python, 1-based for fortran) more confusing and prone to mistakes. Hence, a dictionary explicity index-key approach is preferred. This is internal only. If an index is given as an iterable, an array is still returened with shape = (len(index),len(self['p'])) for ease of use. This includes when all level populations are requested, i.e. when index is None. If one wants to use the dictionary itself, self['pop'] is of course available.
|
Return the indices of the excitation levels included in the level pops.
|
Set the interpolator for the level populations. Additional arguments can be passed to the interpolator object.
|
Get the interpolator for a given level index.
|
Plot the level populations for all included levels.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:58 2016 | http://epydoc.sourceforge.net |