120 assert(dataset >= 0);
123 return mdata[dataset].get_numeric_grid(0);
131 assert(dataset >= 0);
134 return mdata[dataset].get_numeric_grid(1);
142 assert(dataset >= 0);
145 return mdata[dataset];
183 const Index& dataset,
203 const Index& dataset,
209 const Vector freqvec(1, frequency);
211 Extract(result, freqvec, temperature, dataset, T_extrapolfac, robust,
INDEX Index
The type to use for all integer numbers and indices.
ostream & operator<<(ostream &os, const CIARecord &cr)
Output operator for CIARecord.
const ArrayOfGriddedField2 & Data() const
Return CIA data.
Index nelem() const
Number of elements.
friend void xml_read_from_stream(istream &is_xml, CIARecord &cr, bifstream *pbifs, const Verbosity &verbosity)
Reads CIARecord from XML input stream.
void ReadFromCIA(const String &filename, const Verbosity &verbosity)
Read CIA catalog file.
ArrayOfGriddedField2 mdata
The data itself, directly from the HITRAN file.
Index DatasetCount() const
Return number of datasets in this record.
const GriddedField2 & Dataset(Index dataset) const
Return CIA dataset.
void cia_interpolation(VectorView result, ConstVectorView frequency, const Numeric &temperature, const GriddedField2 &cia_data, const Numeric &T_extrapolfac, const Index &robust, const Verbosity &verbosity)
Interpolate CIA data.
void Extract(VectorView result, ConstVectorView f_grid, const Numeric &temperature, const Index &dataset, const Numeric &T_extrapolfac, const Index &robust, const Verbosity &verbosity) const
Vector version of extract.
void AppendDataset(const Vector &freq, const ArrayOfNumeric &temp, const ArrayOfVector &cia)
Append dataset to mdata.
ConstVectorView FrequencyGrid(Index dataset) const
Return frequency grid for given dataset.
The global header file for ARTS.
Index mspecies[2]
The pair of molecules associated with these CIA data.
Binary output file stream class.
ConstVectorView TemperatureGrid(Index dataset) const
Return temperatur grid for given dataset.
NUMERIC Numeric
The type to use for all floating point numbers.
Array< CIARecord > ArrayOfCIARecord
Numeric Extract(const Numeric &frequency, const Numeric &temperature, const Index &dataset, const Numeric &T_extrapolfac, const Index &robust, const Verbosity &verbosity) const
Scalar version of extract.
void SetMoleculeName(const Index i, const String &name)
Set each molecule name (from a string) that is associated with this CIARecord.
This can be used to make arrays out of anything.
void SetSpecies(const Index first, const Index second)
Set CIA species.
A constant view of a Vector.
String MoleculeName(const Index i) const
Return each molecule name (as a string) that is associated with this CIARecord.
CIA data for a single pair of molecules.
Implementation of gridded fields.
Index cia_get_index(const ArrayOfCIARecord &cia_data, const Index sp1, const Index sp2)
Get the index in cia_data for the two given species.
Index Species(const Index i) const
Return CIA species index.
This file contains the definition of String, the ARTS string class.