ARTS 2.5.11 (git: 725533f0)
|
#include "mc_interp.h"
#include "arts_constants.h"
#include "arts_conversions.h"
#include "logic.h"
#include "montecarlo.h"
Go to the source code of this file.
Functions | |
ostream & | operator<< (ostream &os, const SLIData2 &) |
void | interp (MatrixView tia, ConstVectorView itw, const ArrayOfMatrix &a, const GridPos &tc) |
interp. | |
void | interp (VectorView tia, ConstVectorView itw, const ArrayOfVector &a, const GridPos &tc) |
interp. | |
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. | |
Variables | |
constexpr Numeric | DEG2RAD =Conversion::deg2rad(1) |
constexpr Numeric | RAD2DEG =Conversion::rad2deg(1) |
constexpr Numeric | PI =Constant::pi |
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).
[out] | tia | Interpolated value. |
[in] | itw | Interpolation weights. |
[in] | a | The field to interpolate.(ArrayOfMatrix). |
[in] | tc | The grid position for the column dimension. |
Definition at line 52 of file mc_interp.cc.
References a, ARTS_ASSERT, DEBUG_ONLY, and GridPos::idx.
Referenced by interp_scat_angle_temperature(), and SLIData2::interpolate().
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).
[out] | tia | Interpolated value. |
[in] | itw | Interpolation weights. |
[in] | a | The field to interpolate.(ArrayOfVector). |
[in] | tc | The grid position for the column dimension. |
Definition at line 78 of file mc_interp.cc.
References a, ARTS_ASSERT, DEBUG_ONLY, and GridPos::idx.
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.
[out] | pha_mat_int | Interpolated phase matrix |
[out] | theta_rad | Scattering angle defined by inc and sca direct. |
[in] | scat_data_single | A monochromatic SingleScatteringData object. |
[in] | za_sca | Zenith angle of scattering direction. |
[in] | aa_sca | Azimuth angle of scattering direction. |
[in] | za_inc | Zenith angle of incident direction. |
[in] | aa_inc | Azimuth angle of incident direction. |
[in] | rtp_temperature | As the WSV. |
Definition at line 99 of file mc_interp.cc.
References ARTS_ASSERT, DEG2RAD, gridpos(), interp(), interpweights(), SingleScatteringData::pha_mat_data, PI, RAD2DEG, SingleScatteringData::T_grid, and SingleScatteringData::za_grid.
ostream & operator<< | ( | ostream & | os, |
const SLIData2 & | sli | ||
) |
Definition at line 47 of file mc_interp.cc.
|
inlineconstexpr |
Definition at line 19 of file mc_interp.cc.
Referenced by interp_scat_angle_temperature().
|
inlineconstexpr |
Definition at line 21 of file mc_interp.cc.
Referenced by interp_scat_angle_temperature().
|
inlineconstexpr |
Definition at line 20 of file mc_interp.cc.
Referenced by interp_scat_angle_temperature().