26 #ifndef gas_abs_lookup_h 27 #define gas_abs_lookup_h 66 const Index& p_interp_order,
67 const Index& t_interp_order,
68 const Index& h2o_interp_order,
69 const Index& f_interp_order,
74 const Numeric& extpolfac )
const;
95 Index& abs_lookup_is_adapted,
104 const Vector& abs_nls_pert,
105 const Agenda& abs_xsec_agenda,
112 const Index& abs_p_interp_order,
113 const Index& abs_t_interp_order,
114 const Index& abs_nls_interp_order,
115 const bool ignore_errors,
117 const Agenda& abs_xsec_agenda,
128 const Index& abs_lookup_is_adapted,
129 const Index& abs_p_interp_order,
130 const Index& abs_t_interp_order,
131 const Index& abs_nls_interp_order,
132 const Agenda& abs_xsec_agenda,
140 const Index& abs_lookup_is_adapted,
141 const Index& abs_p_interp_order,
142 const Index& abs_t_interp_order,
143 const Index& abs_nls_interp_order,
144 const Index& mc_seed,
145 const Agenda& abs_xsec_agenda,
276 #endif // gas_abs_lookup_h INDEX Index
The type to use for all integer numbers and indices.
friend void abs_lookupCalc(Workspace &ws, GasAbsLookup &abs_lookup, Index &abs_lookup_is_adapted, const ArrayOfArrayOfSpeciesTag &abs_species, const ArrayOfArrayOfSpeciesTag &abs_nls, const Vector &f_grid, const Vector &abs_p, const Matrix &abs_vmrs, const Vector &abs_t, const Vector &abs_t_pert, const Vector &abs_nls_pert, const Agenda &abs_xsec_agenda, const Verbosity &verbosity)
WORKSPACE METHOD: abs_lookupCalc.
Vector nls_pert
The vector of perturbations for the VMRs of the nonlinear species.
Vector t_pert
The vector of temperature perturbations [K].
Declarations having to do with the four output streams.
friend Numeric calc_lookup_error(Workspace &ws, const GasAbsLookup &al, const Index &abs_p_interp_order, const Index &abs_t_interp_order, const Index &abs_nls_interp_order, const bool ignore_errors, const Agenda &abs_xsec_agenda, const Numeric &local_p, const Numeric &local_t, const Vector &local_vmrs, const Verbosity &verbosity)
Compare lookup and LBL calculation.
friend void xml_read_from_stream(istream &is_xml, GasAbsLookup &gal, bifstream *pbifs, const Verbosity &verbosity)
Reads GasAbsLookup from XML input stream.
ArrayOfIndex nonlinear_species
The species tags with non-linear treatment.
void Adapt(const ArrayOfArrayOfSpeciesTag ¤t_species, ConstVectorView current_f_grid, const Verbosity &verbosity)
Adapt lookup table to current calculation.
Vector log_p_grid
The natural log of the pressure grid.
friend void xml_write_to_stream(ostream &os_xml, const GasAbsLookup &gal, bofstream *pbofs, const String &name, const Verbosity &verbosity)
Writes GasAbsLookup to XML output stream.
Tensor4 xsec
Absorption cross sections.
Matrix vmrs_ref
The reference VMR profiles.
Vector f_grid
The frequency grid [Hz].
Binary output file stream class.
friend void abs_lookupTestAccMC(Workspace &ws, const GasAbsLookup &abs_lookup, const Index &abs_lookup_is_adapted, const Index &abs_p_interp_order, const Index &abs_t_interp_order, const Index &abs_nls_interp_order, const Index &mc_seed, const Agenda &abs_xsec_agenda, const Verbosity &verbosity)
WORKSPACE METHOD: abs_lookupTestAccMC.
friend void nca_write_to_file(const int ncid, const GasAbsLookup &gal, const Verbosity &)
Writes a GasAbsLookup table to a NetCDF file.
An absorption lookup table.
const Vector & GetFgrid() const
NUMERIC Numeric
The type to use for all floating point numbers.
Declarations required for the calculation of absorption coefficients.
Vector t_ref
The reference temperature profile [K].
Vector p_grid
The pressure grid for the table [Pa].
This can be used to make arrays out of anything.
Header file for interpolation_poly.cc.
void Extract(Matrix &sga, const Index &p_interp_order, const Index &t_interp_order, const Index &h2o_interp_order, const Index &f_interp_order, const Numeric &p, const Numeric &T, ConstVectorView abs_vmrs, ConstVectorView new_f_grid, const Numeric &extpolfac) const
Extract scalar gas absorption coefficients from the lookup table.
friend void abs_lookupTestAccuracy(Workspace &ws, const GasAbsLookup &abs_lookup, const Index &abs_lookup_is_adapted, const Index &abs_p_interp_order, const Index &abs_t_interp_order, const Index &abs_nls_interp_order, const Agenda &abs_xsec_agenda, const Verbosity &verbosity)
WORKSPACE METHOD: abs_lookupTestAccuracy.
A constant view of a Vector.
Binary output file stream class.
const Vector & GetPgrid() const
friend void nca_read_from_file(const int ncid, GasAbsLookup &gal, const Verbosity &)
Reads a GasAbsLookup table from a NetCDF file.
ArrayOfGridPosPoly fgp_default
Frequency grid positions.
ArrayOfArrayOfSpeciesTag species
The species tags for which the table is valid.
ostream & operator<<(ostream &os, const GasAbsLookup &gal)
Output operatior for GasAbsLookup.