ARTS
2.3.1285(git:92a29ea9-dirty)
|
Auxiliary data for isotopologues. More...
#include <absorption.h>
Public Types | |
enum | AuxType { AT_NONE, AT_ISOTOPOLOGUE_RATIO, AT_ISOTOPOLOGUE_QUANTUM, AT_PARTITIONFUNCTION_TFIELD, AT_PARTITIONFUNCTION_COEFF, AT_PARTITIONFUNCTION_COEFF_VIBROT, AT_FINAL_ENTRY } |
typedef Array< Array< AuxType > > | ArrayOfArrayOfAuxType |
typedef Array< GriddedField1 > | AuxData |
typedef Array< Array< AuxData > > | ArrayOfArrayOfAuxData |
Public Member Functions | |
SpeciesAuxData () | |
Default constructor. More... | |
void | InitFromSpeciesData () |
Index | nspecies () const |
Returns number of species. More... | |
Index | nisotopologues (const Index species) const |
Returns number of isotopologues for a certain species. More... | |
const ArrayOfGriddedField1 & | getParam (const Index species, const Index isotopologue) const |
Return a constant reference to the parameters. More... | |
Numeric | getIsotopologueRatio (const SpeciesTag &st) const |
Returns mparams[st.Species()][st.Isotopologue()][0].data[0] if st.Isotopologue() > 0, else 1. More... | |
Numeric | getIsotopologueRatio (const QuantumIdentifier &qid) const |
Returns mparams[qid.Species()][qid.Isotopologue()][0].data[0]. More... | |
const ArrayOfGriddedField1 & | getParam (const QuantumIdentifier &qid) const |
Return a constant reference to the parameters. More... | |
String | getTypeString (const Index species, const Index isotopologue) const |
Return a parameter type as string. More... | |
void | setParam (const Index species, const Index isotopologue, const AuxType auxtype, const ArrayOfGriddedField1 &auxdata) |
Set parameter. More... | |
void | setParam (const String &artstag, const String &auxtype, const ArrayOfGriddedField1 &auxdata) |
Set parameter by ARTS tag. More... | |
const AuxType & | getParamType (const Index species, const Index isotopologue) const |
Return a constant reference to the parameter types. More... | |
const AuxType & | getParamType (const QuantumIdentifier &qid) const |
Return a constant reference to the parameter types. More... | |
bool | ReadFromStream (String &artsid, istream &is, Index nparams, const Verbosity &verbosity) |
Read parameters from input stream (only for version 1 format). More... | |
ArrayOfGriddedField1 & | Data (const Index species, const Index isotopologue) |
Returns value for one isotopologue. More... | |
Index | setParamType (const Index species, const Index isotopologue, Index type) |
Sets type for one isotopologue if type is valid (returns 0 if valid) More... | |
bool | validIndex (Index species, Index isotopologue) const |
Returns true if species and isotopologue are valid. More... | |
Private Attributes | |
ArrayOfArrayOfAuxData | mparams |
ArrayOfArrayOfAuxType | mparam_type |
Auxiliary data for isotopologues.
Definition at line 217 of file absorption.h.
typedef Array<Array<AuxData> > SpeciesAuxData::ArrayOfArrayOfAuxData |
Definition at line 231 of file absorption.h.
typedef Array<Array<AuxType> > SpeciesAuxData::ArrayOfArrayOfAuxType |
Definition at line 229 of file absorption.h.
typedef Array<GriddedField1> SpeciesAuxData::AuxData |
Definition at line 230 of file absorption.h.
Enumerator | |
---|---|
AT_NONE | |
AT_ISOTOPOLOGUE_RATIO | |
AT_ISOTOPOLOGUE_QUANTUM | |
AT_PARTITIONFUNCTION_TFIELD | |
AT_PARTITIONFUNCTION_COEFF | |
AT_PARTITIONFUNCTION_COEFF_VIBROT | |
AT_FINAL_ENTRY |
Definition at line 219 of file absorption.h.
|
inline |
Default constructor.
Definition at line 234 of file absorption.h.
|
inline |
Returns value for one isotopologue.
Definition at line 293 of file absorption.h.
Numeric SpeciesAuxData::getIsotopologueRatio | ( | const SpeciesTag & | st | ) | const |
Returns mparams[st.Species()][st.Isotopologue()][0].data[0] if st.Isotopologue() > 0, else 1.
Definition at line 150 of file absorption.cc.
References data, getParam(), SpeciesTag::Isotopologue(), and SpeciesTag::Species().
Referenced by abs_xsec_per_speciesAddLines(), and zeeman_on_the_fly().
Numeric SpeciesAuxData::getIsotopologueRatio | ( | const QuantumIdentifier & | qid | ) | const |
Returns mparams[qid.Species()][qid.Isotopologue()][0].data[0].
Definition at line 157 of file absorption.cc.
References data, getParam(), QuantumIdentifier::Isotopologue(), and QuantumIdentifier::Species().
const ArrayOfGriddedField1 & SpeciesAuxData::getParam | ( | const Index | species, |
const Index | isotopologue | ||
) | const |
Return a constant reference to the parameters.
Definition at line 145 of file absorption.cc.
References mparams.
Referenced by abs_xsec_per_speciesAddLines(), atmfields_checkedCalc(), checkIsotopologueRatios(), getIsotopologueRatio(), nlte_collision_factorsCalcFromCoeffs(), operator<<(), xml_write_to_stream(), and zeeman_on_the_fly().
|
inline |
Return a constant reference to the parameters.
Definition at line 257 of file absorption.h.
References QuantumIdentifier::Isotopologue(), and QuantumIdentifier::Species().
|
inline |
Return a constant reference to the parameter types.
Definition at line 276 of file absorption.h.
Referenced by abs_xsec_per_speciesAddLines(), atmfields_checkedCalc(), and zeeman_on_the_fly().
|
inline |
Return a constant reference to the parameter types.
Definition at line 282 of file absorption.h.
References QuantumIdentifier::Isotopologue(), and QuantumIdentifier::Species().
Return a parameter type as string.
Definition at line 161 of file absorption.cc.
References AT_FINAL_ENTRY, and mparam_type.
Referenced by operator<<(), and xml_write_to_stream().
void SpeciesAuxData::InitFromSpeciesData | ( | ) |
Definition at line 59 of file absorption.cc.
References AT_NONE, iso(), mparam_type, mparams, and global_data::species_data.
Referenced by fillSpeciesAuxDataWithIsotopologueRatiosFromSpeciesData(), fillSpeciesAuxDataWithPartitionFunctionsFromSpeciesData(), and xml_read_from_stream().
Returns number of isotopologues for a certain species.
Definition at line 242 of file absorption.h.
Referenced by atmfields_checkedCalc(), checkIsotopologueRatios(), checkPartitionFunctions(), operator<<(), and xml_write_to_stream().
|
inline |
Returns number of species.
Definition at line 239 of file absorption.h.
Referenced by atmfields_checkedCalc(), checkIsotopologueRatios(), checkPartitionFunctions(), operator<<(), and xml_write_to_stream().
bool SpeciesAuxData::ReadFromStream | ( | String & | artsid, |
istream & | is, | ||
Index | nparams, | ||
const Verbosity & | verbosity | ||
) |
Read parameters from input stream (only for version 1 format).
Definition at line 167 of file absorption.cc.
References CREATE_OUT3, i, SpeciesRecord::Isotopologue(), SpeciesRecord::Name(), my_basic_string< charT >::nelem(), Array< base >::nelem(), global_data::species_data, and SpecIsoMap::Speciesindex().
Referenced by xml_read_from_stream().
void SpeciesAuxData::setParam | ( | const Index | species, |
const Index | isotopologue, | ||
const AuxType | auxtype, | ||
const ArrayOfGriddedField1 & | auxdata | ||
) |
Set parameter.
Definition at line 76 of file absorption.cc.
References mparam_type, and mparams.
Referenced by fillSpeciesAuxDataWithIsotopologueRatiosFromSpeciesData(), and fillSpeciesAuxDataWithPartitionFunctionsFromSpeciesData().
void SpeciesAuxData::setParam | ( | const String & | artstag, |
const String & | auxtype, | ||
const ArrayOfGriddedField1 & | auxdata | ||
) |
Set parameter by ARTS tag.
Definition at line 84 of file absorption.cc.
References AT_FINAL_ENTRY, i, SpeciesRecord::Isotopologue(), SpeciesRecord::Name(), Array< base >::nelem(), global_data::species_data, SpecIsoMap::Speciesindex(), and _CS_basic_sstream_base< _CS_cT, _CS_Tr, _CS_Al >::str().
|
inline |
Sets type for one isotopologue if type is valid (returns 0 if valid)
Definition at line 296 of file absorption.h.
Returns true if species and isotopologue are valid.
Definition at line 307 of file absorption.h.
|
private |
Definition at line 318 of file absorption.h.
Referenced by getTypeString(), InitFromSpeciesData(), and setParam().
|
private |
Definition at line 317 of file absorption.h.
Referenced by getParam(), InitFromSpeciesData(), and setParam().