Home | Trees | Indices | Help |
---|
|
Toolbox for Transitions, used in various applications concerning GASTRoNOoM.
Author: R. Lombaert
|
|||
Transition A class to deal with transitions in GASTRoNOoM. |
|
|||
(list[float],list[float]) |
|
||
list[Transition()] |
|
||
list[Transition()] |
|
||
|
|||
Transition() |
|
||
(model_id,molec_id,trans_id,path_gastronoom) |
|
||
Transition() |
|
||
|
|||
list[Transition()] |
|
||
tuple[Transition()] |
|
|
|||
__package__ =
|
|
Get the line strengths from Transition() objects, either from data or from models defined by the mode. Additional keywords for the functions that return LSs from the Transition() object can be passed along as **kwargs. Modes:
For data: Blended lines are returned as negative. If a line is in a blend, but not attributed a line strength, the line strength of the 'main component' is returned, also as a negative value. For now no errors for any mode, except mode==dint or cint.
|
Select a transition from a list of Star() objects based on a given criterion. Different modes are possible: 'index' and 'sample'. The former returns a transition with given list-index in the Star()['GAS_LINES'] which should always return the same transition for every object. The latter returns all transitions that are equal to the a given sample transition (ie following the equality rules of a Transition() object).
|
Extract a list a of unique transitions included in a list of Star() objects and sort them. A selection can be made on data type, which is either a telescope or instrument, or all, or all unresolved, or all resolved. The list of transitions is copied to make sure no funky references mess with the original transitions. The data can be reset, since data do not uniquely identify a transition object. However, in some cases it is useful to keep the data in the object if the extracted list will always work for the same Star() object.
|
Update telescope.spec file. This method checks for requested transitions that are not yet present in .spec file of the telescope, and adds them.
|
Create a Transition instance based on a Star object and a standard CC input line, with 11 or 12 entries in a list. This method assumes the Transition definition has been screened by DataIO.checkEntryInfo. If the 12th entry is not present, n_quad is taken from the Star() object. It is set to 100 if no Star() object is given. If a star object is not given, the method creates Molecule() objects itself For now only 12C16O, 13C16O, 1H1H16O and p1H1H16O are possible.
|
Return the modelids for a given model folder, as well as path_gastronoom.
|
Make a Transition() based on the filename of a Sphinx file. For this, information is taken from the Molecule() model database and the sphinx file has to be associated with a molecule available there. Information is also be pulled from the sph database, but can be turned off.
|
Reconstruct a sphinx database based on existing model_ids, presence of sph2 files and inclusion in the mline database. Not based at first on the cooling database because it is possible different mline or sphinx models with different ids exist for the same cooling id.
|
Make Transition() objects from a Radiat file of a molecule, within a given wavelength/frequency range. Requires a Molecule() object to work!
|
Check uniqueness of a list of transitions. Same transitions are replaced by a single transition with all datafiles from the originals. Based on the parameters of the transitions. If they are the same, only one transition is added to the output list, but the datafiles are all included. Datafiles do not identify a transition!
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:56 2016 | http://epydoc.sourceforge.net |