Go to the documentation of this file.
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);
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.
Verbosity verbosity(Workspace &ws) noexcept
void ReadFromCIA(const String &filename, const Verbosity &verbosity)
Read CIA catalog file.
Array< CIARecord > ArrayOfCIARecord
Implementation of Matrix, Vector, and such stuff.
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.
ArrayOfGriddedField2 & Data()
Return CIA data.
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.
Vector f_grid(Workspace &ws) noexcept
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.
void AppendDataset(const CIARecord &c2)
Append other CIARecord to this.