ARTS  2.4.0(git:4fb77825)
gas_abs_lookup.cc File Reference

Implementation of scalar gas absorption lookup table functions. More...

#include "gas_abs_lookup.h"
#include <cfloat>
#include <cmath>
#include "check_input.h"
#include "interpolation.h"
#include "interpolation_poly.h"
#include "logic.h"
#include "messages.h"
#include "physics_funcs.h"

Go to the source code of this file.

Functions

void find_new_grid_in_old_grid (ArrayOfIndex &pos, ConstVectorView old_grid, ConstVectorView new_grid, const Verbosity &verbosity)
 Find positions of new grid points in old grid. More...
 
ostream & operator<< (ostream &os, const GasAbsLookup &)
 Output operatior for GasAbsLookup. More...
 

Detailed Description

Implementation of scalar gas absorption lookup table functions.

Author
Stefan Buehler sbueh.nosp@m.ler@.nosp@m.ltu.s.nosp@m.e
Date
Thu Sep 19 17:25:07 2002

Definition in file gas_abs_lookup.cc.

Function Documentation

◆ find_new_grid_in_old_grid()

void find_new_grid_in_old_grid ( ArrayOfIndex pos,
ConstVectorView  old_grid,
ConstVectorView  new_grid,
const Verbosity verbosity 
)

Find positions of new grid points in old grid.

Throw a runtime error if the frequencies of the new grid are not found in the old grid.

Comparison of Numerics is a bit tricky, we use a multiple of DBL_EPSILON here (scaled by the frequencies being compared).

Return values
posPositions of new grid points in old grid.
Parameters
old_gridThe old grid.
new_gridThe new grid.

Definition at line 48 of file gas_abs_lookup.cc.

References abs, CREATE_OUT3, max, Array< base >::nelem(), and ConstVectorView::nelem().

◆ operator<<()

ostream& operator<< ( ostream &  os,
const GasAbsLookup  
)

Output operatior for GasAbsLookup.

Definition at line 1141 of file gas_abs_lookup.cc.