111 assert(dataset >= 0);
114 return mdata[dataset].get_numeric_grid(0);
120 assert(dataset >= 0);
123 return mdata[dataset].get_numeric_grid(1);
129 assert(dataset >= 0);
132 return mdata[dataset];
167 const Index& dataset,
186 const Index& dataset,
191 const Vector freqvec(1, frequency);
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.
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.
void AppendDataset(const CIARecord &c2)
Append other CIARecord to this.
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
Implementation of Matrix, Vector, and such stuff.
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.
ArrayOfGriddedField2 & Data()
Return CIA data.