ARTS
2.3.1285(git:92a29ea9-dirty)
|
Workspace methods for HITRAN CIA data. More...
#include "absorption.h"
#include "arts.h"
#include "auto_md.h"
#include "cia.h"
#include "file.h"
#include "messages.h"
#include "physics_funcs.h"
#include "xml_io.h"
Go to the source code of this file.
Functions | |
void | abs_xsec_per_speciesAddCIA (ArrayOfMatrix &abs_xsec_per_species, ArrayOfArrayOfMatrix &dabs_xsec_per_species_dx, const ArrayOfArrayOfSpeciesTag &abs_species, const ArrayOfRetrievalQuantity &jacobian_quantities, const ArrayOfIndex &abs_species_active, const Vector &f_grid, const Vector &abs_p, const Vector &abs_t, const Matrix &abs_vmrs, const ArrayOfCIARecord &abs_cia_data, const Numeric &T_extrapolfac, const Index &robust, const Verbosity &verbosity) |
WORKSPACE METHOD: abs_xsec_per_speciesAddCIA. More... | |
void | CIARecordReadFromFile (CIARecord &cia_record, const String &species_tag, const String &filename, const Verbosity &verbosity) |
WORKSPACE METHOD: CIARecordReadFromFile. More... | |
void | abs_cia_dataAddCIARecord (ArrayOfCIARecord &abs_cia_data, const CIARecord &cia_record, const Index &clobber, const Verbosity &) |
WORKSPACE METHOD: abs_cia_dataAddCIARecord. More... | |
void | abs_cia_dataReadFromCIA (ArrayOfCIARecord &abs_cia_data, const ArrayOfArrayOfSpeciesTag &abs_species, const String &catalogpath, const Verbosity &verbosity) |
WORKSPACE METHOD: abs_cia_dataReadFromCIA. More... | |
void | abs_cia_dataReadFromXML (ArrayOfCIARecord &abs_cia_data, const ArrayOfArrayOfSpeciesTag &abs_species, const String &filename, const Verbosity &verbosity) |
WORKSPACE METHOD: abs_cia_dataReadFromXML. More... | |
void | CIAInfo (const String &catalogpath, const ArrayOfString &cia_tags, const Verbosity &verbosity) |
WORKSPACE METHOD: CIAInfo. More... | |
Variables | |
const Numeric | SPEED_OF_LIGHT |
void abs_cia_dataAddCIARecord | ( | ArrayOfCIARecord & | abs_cia_data, |
const CIARecord & | cia_record, | ||
const Index & | clobber, | ||
const Verbosity & | verbosity | ||
) |
WORKSPACE METHOD: abs_cia_dataAddCIARecord.
Takes CIARecord as input and appends the results in the appropriate place.
If CIARecord has same species as species in abs_cia_data, then the array position is used to append all of the CIARecord into the array. If clobber evaluates as true, cia_record overwrites the appropriate abs_cia_data. If species in cia_record are not in abs_cia_data, the CIARecord is pushed back.
[in,out] | abs_cia_data | WS Input/Output |
[in] | cia_record | Generic Input |
[in] | clobber | Generic Input (Default: "0") |
Definition at line 295 of file m_cia.cc.
References cia_get_index(), and CIARecord::Species().
Referenced by abs_cia_dataAddCIARecord_g().
void abs_cia_dataReadFromCIA | ( | ArrayOfCIARecord & | abs_cia_data, |
const ArrayOfArrayOfSpeciesTag & | abs_species, | ||
const String & | catalogpath, | ||
const Verbosity & | verbosity | ||
) |
WORKSPACE METHOD: abs_cia_dataReadFromCIA.
Read data from a CIA data file for all CIA molecules defined in abs_species.
The units in the HITRAN file are: Frequency: cm^(-1) Binary absorption cross-section: cm^5 molec^(-2)
Upon reading we convert this to the ARTS internal SI units of Hz and m^5 molec^(-2).
[out] | abs_cia_data | WS Output |
[in] | abs_species | WS Input |
[in] | catalogpath | Generic Input |
Definition at line 313 of file m_cia.cc.
References cia_get_index(), CIASecond, iso(), list_directory(), Array< base >::nelem(), Species, species_name_from_species_index(), and SpeciesTag::TYPE_CIA.
Referenced by abs_cia_dataReadFromCIA_g(), and CIAInfo().
void abs_cia_dataReadFromXML | ( | ArrayOfCIARecord & | abs_cia_data, |
const ArrayOfArrayOfSpeciesTag & | abs_species, | ||
const String & | filename, | ||
const Verbosity & | verbosity | ||
) |
WORKSPACE METHOD: abs_cia_dataReadFromXML.
Read data from a CIA XML file and check that all CIA tags defined in abs_species are present in the file.
The units of the data are described in abs_cia_dataReadFromCIA.
[out] | abs_cia_data | WS Output |
[in] | abs_species | WS Input |
[in] | filename | Generic Input (Default: "") |
Definition at line 401 of file m_cia.cc.
References cia_get_index(), CIASecond, i, iso(), Array< base >::nelem(), Species, species_name_from_species_index(), _CS_basic_sstream_base< _CS_cT, _CS_Tr, _CS_Al >::str(), SpeciesTag::TYPE_CIA, and xml_read_from_file().
Referenced by abs_cia_dataReadFromXML_g().
void abs_xsec_per_speciesAddCIA | ( | ArrayOfMatrix & | abs_xsec_per_species, |
ArrayOfArrayOfMatrix & | dabs_xsec_per_species_dx, | ||
const ArrayOfArrayOfSpeciesTag & | abs_species, | ||
const ArrayOfRetrievalQuantity & | jacobian_quantities, | ||
const ArrayOfIndex & | abs_species_active, | ||
const Vector & | f_grid, | ||
const Vector & | abs_p, | ||
const Vector & | abs_t, | ||
const Matrix & | abs_vmrs, | ||
const ArrayOfCIARecord & | abs_cia_data, | ||
const Numeric & | T_extrapolfac, | ||
const Index & | robust, | ||
const Verbosity & | verbosity | ||
) |
WORKSPACE METHOD: abs_xsec_per_speciesAddCIA.
Calculate absorption cross sections per tag group for HITRAN CIA continua.
This interpolates the cross sections from abs_cia_data.
The robust option is intended only for testing. Do not use for normal runs, since subsequent functions will not be able to deal with NAN values.
[in,out] | abs_xsec_per_species | WS Input/Output |
[in,out] | dabs_xsec_per_species_dx | WS Input/Output |
[in] | abs_species | WS Input |
[in] | jacobian_quantities | WS Input |
[in] | abs_species_active | WS Input |
[in] | f_grid | WS Input |
[in] | abs_p | WS Input |
[in] | abs_t | WS Input |
[in] | abs_vmrs | WS Input |
[in] | abs_cia_data | WS Input |
[in] | T_extrapolfac | Generic Input (Default: "0.5") |
[in] | robust | Generic Input (Default: "0") |
Definition at line 41 of file m_cia.cc.
References cia_get_index(), SpeciesTag::CIADataset(), SpeciesTag::CIASecond(), CREATE_OUTS, do_frequency_jacobian(), do_temperature_jacobian(), equivalent_propmattype_indexes(), CIARecord::Extract(), find_first_species_tg(), frequency_perturbation(), i, CIARecord::MoleculeName(), SpeciesTag::Name(), ConstMatrixView::ncols(), Array< base >::nelem(), ConstVectorView::nelem(), ConstMatrixView::nrows(), Vector::resize(), SpeciesTag::Species(), CIARecord::Species(), _CS_basic_sstream_base< _CS_cT, _CS_Tr, _CS_Al >::str(), supports_CIA(), temperature_perturbation(), SpeciesTag::Type(), and SpeciesTag::TYPE_CIA.
Referenced by ARTS::Agenda::abs_xsec_agenda_standard_with_cia(), and abs_xsec_per_speciesAddCIA_g().
void CIAInfo | ( | const String & | catalogpath, |
const ArrayOfString & | cia_tags, | ||
const Verbosity & | verbosity | ||
) |
WORKSPACE METHOD: CIAInfo.
Display information about the given CIA tags. The CIA tags shown are in the same format as needed by abs_speciesSet.
[in] | catalogpath | Generic Input |
[in] | cia_tags | Generic Input |
Definition at line 452 of file m_cia.cc.
References abs_cia_dataReadFromCIA(), CREATE_OUT1, i, Array< base >::nelem(), Print(), and _CS_basic_sstream_base< _CS_cT, _CS_Tr, _CS_Al >::str().
Referenced by CIAInfo_g().
void CIARecordReadFromFile | ( | CIARecord & | cia_record, |
const String & | species_tag, | ||
const String & | filename, | ||
const Verbosity & | verbosity | ||
) |
WORKSPACE METHOD: CIARecordReadFromFile.
Reads CIARecord from Hitran-style file.
[out] | cia_record | Generic output |
[in] | species_tag | Generic Input |
[in] | filename | Generic Input |
Definition at line 274 of file m_cia.cc.
References SpeciesTag::CIASecond(), CIARecord::ReadFromCIA(), CIARecord::SetSpecies(), SpeciesTag::Species(), _CS_basic_sstream_base< _CS_cT, _CS_Tr, _CS_Al >::str(), SpeciesTag::Type(), and SpeciesTag::TYPE_CIA.
Referenced by CIARecordReadFromFile_g().
const Numeric SPEED_OF_LIGHT |