Go to the documentation of this file.
58 const Index& mytrantag,
59 const Index& hitrantag,
81 #endif // ifndef NDEBUG
117 const Index& qcoefftype) {
194 #endif // #ifndef NDEBUG
248 const Index isotopologue)
const;
266 const Index isotopologue,
277 const Index isotopologue)
const {
308 if(species >= 0 and isotopologue >= 0 and
376 const String& species_name,
430 #endif // absorption_h
void fillSpeciesAuxDataWithIsotopologueRatiosFromSpeciesData(SpeciesAuxData &sad)
Fill SpeciesAuxData with default isotopologue ratios from species data.
Implementation of gridded fields.
Class to map energy levels.
const Numeric & Mass() const
Mass of the isotopologue.
void Isotopologue(Index iso)
Set the Isotopologue.
Class to identify and match lines by their quantum numbers.
SpeciesAuxData()
Default constructor.
ArrayOfRetrievalQuantity jacobian_quantities(Workspace &ws) noexcept
Array< GriddedField1 > AuxData
void xsec_species(Matrix &xsec, Matrix &source, Matrix &phase, ArrayOfMatrix &dxsec_dx, ArrayOfMatrix &dsource_dx, ArrayOfMatrix &dphase_dx, const ArrayOfRetrievalQuantity &jacobian_quantities, const ArrayOfIndex &jacobian_propmat_positions, const Vector &f_grid, const Vector &abs_p, const Vector &abs_t, const EnergyLevelMap &abs_nlte, const Matrix &abs_vmrs, const ArrayOfArrayOfSpeciesTag &abs_species, const AbsorptionLines &band, const Numeric &isot_ratio, const SpeciesAuxData::AuxType &partfun_type, const ArrayOfGriddedField1 &partfun_data)
Cross-section algorithm.
IsotopologueRecord(const IsotopologueRecord &)=default
Array< IsotopologueRecord > misotopologue
Isotopologue data.
IsotopologueRecord & operator=(IsotopologueRecord &&)=default
Contains the absorption namespace.
Verbosity verbosity(Workspace &ws) noexcept
SpeciesRecord(const char name[], const Index degfr, const Array< IsotopologueRecord > &isotopologue)
The constructor used in define_species_data.
Vector y(Workspace &ws) noexcept
const Index & Isotopologueindex() const
@ AT_ISOTOPOLOGUE_QUANTUM
bool ReadFromStream(String &artsid, istream &is, Index nparams, const Verbosity &verbosity)
Read parameters from input stream (only for version 1 format).
void checkIsotopologueRatios(const ArrayOfArrayOfSpeciesTag &abs_species, const SpeciesAuxData &isoratios)
Check that isotopologue ratios for the given species are correctly defined.
const Vector & GetCoeff() const
Return the partition function coefficients.
void SetPartitionFctCoeff(const ArrayOfNumeric &qcoeff, const ArrayOfNumeric &temp_range, const Index &qcoefftype)
Index species_index_from_species_name(String name)
Return species index for given species name.
void setParam(const Index species, const Index isotopologue, const AuxType auxtype, const ArrayOfGriddedField1 &auxdata)
Set parameter.
@ AT_PARTITIONFUNCTION_TFIELD
const ArrayOfGriddedField1 & getParam(const Index species, const Index isotopologue) const
Return a constant reference to the parameters.
Array< Array< AuxType > > ArrayOfArrayOfAuxType
This file contains the definition of Array.
Array< IsotopologueRecord > & Isotopologue()
Auxiliary data for isotopologues.
ostream & operator<<(ostream &os, const SpeciesRecord &sr)
Output operator for SpeciesRecord.
SpecIsoMap(const Index &speciesindex, const Index &isotopologueindex)
Matrix abs_vmrs(Workspace &ws) noexcept
Index GetCoeffType() const
Return the partition function coefficient types.
Implementation of Matrix, Vector, and such stuff.
const Index & HitranTag() const
HITRAN-96 tag numbers for all isotopologues.
A tag group can consist of the sum of several of these.
@ AT_PARTITIONFUNCTION_COEFF
ArrayOfArrayOfAuxType mparam_type
Numeric getIsotopologueRatio(const SpeciesTag &st) const
Returns mparams[st.Species()][st.Isotopologue()][0].data[0] if st.Isotopologue() > 0,...
Numeric wavenumber_to_joule(Numeric e)
A little helper function to convert energy from units of wavenumber (cm^-1) to Joule (J).
const SpeciesRecord & SpeciesDataOfBand(const AbsorptionLines &band)
Returns the species data.
void Species(Index sp)
Set the Species.
Declarations having to do with the four output streams.
SpeciesRecord()
Default constructor.
const AuxType & getParamType(const Index species, const Index isotopologue) const
Return a constant reference to the parameter types.
bool validIndex(Index species, Index isotopologue) const
Returns true if species and isotopologue are valid.
const Numeric & Abundance() const
Normal abundance ( = isotopologue ratio).
void fillSpeciesAuxDataWithPartitionFunctionsFromSpeciesData(SpeciesAuxData &sad)
Fill SpeciesAuxData with default partition functions from species data.
ArrayOfArrayOfSpeciesTag abs_species(Workspace &ws) noexcept
const ArrayOfIndex & JplTags() const
JPL tag numbers for all isotopologues.
Routines for setting up the jacobian.
NUMERIC Numeric
The type to use for all floating point numbers.
const Index & Speciesindex() const
Vector f_grid(Workspace &ws) noexcept
Index nisotopologues(const Index species) const
Returns number of isotopologues for a certain species.
String FullName(Index k) const
Return a copy of the full name of the k:th isotopologue.
Array< Array< AuxData > > ArrayOfArrayOfAuxData
const AuxType & getParamType(const QuantumIdentifier &qid) const
Return a constant reference to the parameter types.
Contains the lookup data for one species.
void checkPartitionFunctions(const ArrayOfArrayOfSpeciesTag &abs_species, const SpeciesAuxData &partfun)
Check that partition functions for the given species are correctly defined.
IsotopologueRecord(IsotopologueRecord &&)=default
Vector abs_t(Workspace &ws) noexcept
Index mdegfr
Degrees of freedom.
const Vector & GetCoeffGrid() const
Return the partition function coefficients.
const String & Name() const
Isotopologue name.
const Array< IsotopologueRecord > & Isotopologue() const
String mname
Species name.
IsotopologueRecord()=default
Default constructor.
void set_vmr_from_first_species(Vector &vmr, const String &species_name, const ArrayOfArrayOfSpeciesTag &abs_species, const Matrix &abs_vmrs)
set_abs_from_first_species.
Contains the lookup data for one isotopologue.
IsotopologueRecord(const String &name, const Numeric &abundance, const Numeric &mass, const Index &mytrantag, const Index &hitrantag, const ArrayOfIndex &jpltags)
Constructor that sets the values.
const Index & MytranTag() const
MYTRAN2 tag numbers for all isotopologues.
const String & Name() const
ArrayOfGriddedField1 & Data(const Index species, const Index isotopologue)
Returns value for one isotopologue.
ArrayOfArrayOfAuxData mparams
Index setParamType(const Index species, const Index isotopologue, Index type)
Sets type for one isotopologue if type is valid (returns 0 if valid)
Index nspecies() const
Returns number of species.
String species_name_from_species_index(const Index spec_ind)
Return species name for given species index.
void InitFromSpeciesData()
const ArrayOfGriddedField1 & getParam(const QuantumIdentifier &qid) const
Return a constant reference to the parameters.
IsotopologueRecord & operator=(const IsotopologueRecord &)=default
@ AT_PARTITIONFUNCTION_COEFF_VIBROT
INDEX Index
The type to use for all integer numbers and indices.
Vector abs_p(Workspace &ws) noexcept
String getTypeString(const Index species, const Index isotopologue) const
Return a parameter type as string.
Index nelem() const
Number of elements.
This file contains the definition of String, the ARTS string class.
bool isContinuum() const
Check if isotopologue is actually a continuum.
EnergyLevelMap abs_nlte(Workspace &ws) noexcept