Go to the documentation of this file.
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,
Implementation of gridded fields.
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.
Index Species(const Index i) const
Return CIA species index.
void AppendDataset(const Vector &freq, const ArrayOfNumeric &temp, const ArrayOfVector &cia)
Append dataset to mdata.
void ReadFromCIA(const String &filename, const Verbosity &verbosity)
Read CIA catalog file.
Array< CIARecord > ArrayOfCIARecord
This can be used to make arrays out of anything.
void SetMoleculeName(const Index i, const String &name)
Set each molecule name (from a string) that is associated with this CIARecord.
Index DatasetCount() const
Return number of datasets in this record.
NUMERIC Numeric
The type to use for all floating point numbers.
Binary output file stream class.
friend void xml_read_from_stream(istream &is_xml, CIARecord &cr, bifstream *pbifs, const Verbosity &verbosity)
Reads CIARecord from XML input stream.
ArrayOfGriddedField2 mdata
The data itself, directly from the HITRAN file.
ConstVectorView FrequencyGrid(Index dataset) const
Return frequency grid for given dataset.
ConstVectorView TemperatureGrid(Index dataset) const
Return temperatur grid for given dataset.
const GriddedField2 & Dataset(Index dataset) const
Return CIA dataset.
const ArrayOfGriddedField2 & Data() const
Return CIA data.
ostream & operator<<(ostream &os, const CIARecord &cr)
Output operator for CIARecord.
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.
CIA data for a single pair of molecules.
void SetSpecies(const Index first, const Index second)
Set CIA species.
INDEX Index
The type to use for all integer numbers and indices.
String MoleculeName(const Index i) const
Return each molecule name (as a string) that is associated with this CIARecord.
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.
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.
A constant view of a Vector.
Index nelem() const
Number of elements.
This file contains the definition of String, the ARTS string class.
The global header file for ARTS.
Index mspecies[2]
The pair of molecules associated with these CIA data.