ARTS 2.5.4 (git: 31ce4f0e)
mc_interp.h File Reference

Interpolation classes and functions created for use within Monte Carlo scattering simulations. More...

#include "array.h"
#include "arts.h"
#include "interpolation.h"
#include "matpackI.h"
#include "optproperties.h"
#include "ppath.h"

Go to the source code of this file.

Classes

class  SLIData2
 A 2D sequential linear interpolation (SLI) lookup table This class holds the gridded for 2D SLI as well as the interpolate member function for retrieving interpolated values. More...
 

Functions

void interp (MatrixView tia, ConstVectorView itw, const ArrayOfMatrix &a, const GridPos &tc)
 interp. More...
 
void interp (VectorView tia, ConstVectorView itw, const ArrayOfVector &a, const GridPos &tc)
 interp. More...
 
void interp_scat_angle_temperature (VectorView pha_mat_int, Numeric &theta_rad, const SingleScatteringData &scat_data_single, const Numeric &za_sca, const Numeric &aa_sca, const Numeric &za_inc, const Numeric &aa_inc, const Numeric &rtp_temperature)
 interp_scat_angle_temperature. More...
 

Detailed Description

Interpolation classes and functions created for use within Monte Carlo scattering simulations.

Author
Cory Davis cory@.nosp@m.met..nosp@m.ed.ac.nosp@m..uk
Date
2005-02-28
Author
Cory Davis cory@.nosp@m.met..nosp@m.ed.ac.nosp@m..uk
Date
2005-02-28

FIXMEDOC ***: interp_scat_angle_temperature (check)

Definition in file mc_interp.h.

Function Documentation

◆ interp() [1/2]

void interp ( MatrixView  tia,
ConstVectorView  itw,
const ArrayOfMatrix a,
const GridPos tc 
)

interp.

Red 1D Interpolate.

This is a slight modifiaction of Stefan's code to do 1_D interpolation to get a Matrix from an array of Matrices.

The dimension of itw must be consistent with the dimension of the interpolation (2^n).

Parameters
[out]tiaInterpolated value.
[in]itwInterpolation weights.
[in]aThe field to interpolate.(ArrayOfMatrix).
[in]tcThe grid position for the column dimension.
Author
Cory Davis (modified original code by Stefan Buehler)
Date
2003-06-19

Definition at line 69 of file mc_interp.cc.

References a, ARTS_ASSERT, DEBUG_ONLY, Constant::e, GridPos::idx, is_same_within_epsilon(), is_size(), ConstMatrixView::ncols(), ConstMatrixView::nrows(), and ConstVectorView::sum().

Referenced by interp_scat_angle_temperature().

◆ interp() [2/2]

void interp ( VectorView  tia,
ConstVectorView  itw,
const ArrayOfVector a,
const GridPos tc 
)

interp.

Red 1D Interpolate.

This is a slight modifiaction of Stefan's code to do 1_D interpolation to get a Vector from an array of Vectors.

The dimension of itw must be consistent with the dimension of the interpolation (2^n).

Parameters
[out]tiaInterpolated value.
[in]itwInterpolation weights.
[in]aThe field to interpolate.(ArrayOfVector).
[in]tcThe grid position for the column dimension.
Author
Cory Davis (modified original code by Stefan Buehler)
Date
2003-06-19

Definition at line 95 of file mc_interp.cc.

References a, ARTS_ASSERT, DEBUG_ONLY, Constant::e, GridPos::idx, is_same_within_epsilon(), is_size(), ConstVectorView::nelem(), and ConstVectorView::sum().

◆ interp_scat_angle_temperature()

void interp_scat_angle_temperature ( VectorView  pha_mat_int,
Numeric theta_rad,
const SingleScatteringData scat_data_single,
const Numeric za_sca,
const Numeric aa_sca,
const Numeric za_inc,
const Numeric aa_inc,
const Numeric rtp_temperature 
)

interp_scat_angle_temperature.

Returns the interpolated phase matrix for given incident and scattered directions.

Parameters
[out]pha_mat_intInterpolated phase matrix
[out]theta_radScattering angle defined by inc and sca direct.
[in]scat_data_singleA monochromatic SingleScatteringData object.
[in]za_scaZenith angle of scattering direction.
[in]aa_scaAzimuth angle of scattering direction.
[in]za_incZenith angle of incident direction.
[in]aa_incAzimuth angle of incident direction.
[in]rtp_temperatureAs the WSV.
Author
Cory Davis
Date
2005-02-28

Definition at line 116 of file mc_interp.cc.

References abs, ARTS_ASSERT, DEG2RAD, Constant::e, gridpos(), interp(), interpweights(), joker, ConstTensor7View::ncols(), ConstVectorView::nelem(), SingleScatteringData::pha_mat_data, PI, RAD2DEG, SingleScatteringData::T_grid, and SingleScatteringData::za_grid.