ARTS 2.5.11 (git: 725533f0)
xsec_fit.h File Reference

Methods and classes for HITRAN absorption cross section data. More...

#include "array.h"
#include "arts.h"
#include "bifstream.h"
#include "gridded_fields.h"
#include "matpack_data.h"
#include "messages.h"
#include "mystring.h"
#include "species.h"
#include <memory>

Go to the source code of this file.

Classes

class  XsecRecord
 Hitran crosssection class. More...
 

Typedefs

using ArrayOfXsecRecord = Array< XsecRecord >
 

Functions

Index hitran_xsec_get_index (const ArrayOfXsecRecord &xsec_data, Species::Species species)
 Get the index in xsec_fit_data for the given species.
 
std::shared_ptr< XsecRecordhitran_xsec_get_data (const std::vector< std::shared_ptr< XsecRecord > > &xsec_data, const Species::Species species)
 Get the index in xsec_fit_data for the given species.
 

Detailed Description

Methods and classes for HITRAN absorption cross section data.

Author
Oliver Lemke olive.nosp@m.r.le.nosp@m.mke@u.nosp@m.ni-h.nosp@m.ambur.nosp@m.g.de
Date
2018-01-08

Definition in file xsec_fit.h.

Typedef Documentation

◆ ArrayOfXsecRecord

Definition at line 137 of file xsec_fit.h.

Function Documentation

◆ hitran_xsec_get_data()

std::shared_ptr< XsecRecord > hitran_xsec_get_data ( const std::vector< std::shared_ptr< XsecRecord > > &  xsec_data,
const Species::Species  species 
)

Get the index in xsec_fit_data for the given species.

Parameters
[in]xsec_fit_dataHitran Xsec data array
[in]speciesSpecies name
Returns
Correct CIA record or nullptr if not found.

Definition at line 225 of file xsec_fit.cc.

◆ hitran_xsec_get_index()

Index hitran_xsec_get_index ( const ArrayOfXsecRecord xsec_data,
const Species::Species  species 
)

Get the index in xsec_fit_data for the given species.

Parameters
[in]xsec_fit_dataHitran Xsec data array
[in]speciesSpecies name
Returns
Index of this species in xsec_fit_data. -1 if not found.

Definition at line 210 of file xsec_fit.cc.

References Array< base >::nelem().

Referenced by abs_xsec_per_speciesAddXsecFit(), and propmat_clearskyAddXsecFit().