ARTS  2.0.49
mc_interp.cc File Reference

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

#include "mc_interp.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)
 Red 1D Interpolate. More...
 
void interp (VectorView tia, ConstVectorView itw, const ArrayOfVector &a, const GridPos &tc)
 Red 1D Interpolate. More...
 
void interp_scat_angle_temperature (VectorView pha_mat_int, Numeric &theta_rad, const SingleScatteringData &scat_data, const Numeric &za_sca, const Numeric &aa_sca, const Numeric &za_inc, const Numeric &aa_inc, const Numeric &rte_temperature)
 
void interpTArray (Matrix &T, Vector &K_abs, Numeric &temperature, MatrixView &K, Vector &rte_pos, Vector &rte_los, VectorView &pnd_vec, const ArrayOfMatrix &TArray, const ArrayOfMatrix &ext_matArray, const ArrayOfVector &abs_vecArray, const Vector &t_ppath, const Matrix &pnd_ppath, const Vector &cum_l_step, const Numeric &pathlength, const Index &stokes_dim, const Ppath &ppath)
 interpTarray 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

Definition in file mc_interp.cc.

Function Documentation

◆ interp() [1/2]

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

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 111 of file mc_interp.cc.

References DEBUG_ONLY, GridPos::idx, is_same_within_epsilon(), is_size(), ConstMatrixView::ncols(), ConstMatrixView::nrows(), ConstVectorView::sum(), and sum_check_epsilon.

Referenced by interp_scat_angle_temperature(), SLIData2::interpolate(), and interpTArray().

◆ interp() [2/2]

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

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 158 of file mc_interp.cc.

References DEBUG_ONLY, GridPos::idx, is_same_within_epsilon(), is_size(), Array< base >::nelem(), ConstVectorView::nelem(), ConstVectorView::sum(), and sum_check_epsilon.

◆ interp_scat_angle_temperature()

void interp_scat_angle_temperature ( VectorView  pha_mat_int,
Numeric theta_rad,
const SingleScatteringData scat_data,
const Numeric za_sca,
const Numeric aa_sca,
const Numeric za_inc,
const Numeric aa_inc,
const Numeric rte_temperature 
)

◆ interpTArray()

void interpTArray ( Matrix T,
Vector K_abs,
Numeric temperature,
MatrixView K,
Vector rte_pos,
Vector rte_los,
VectorView pnd_vec,
const ArrayOfMatrix TArray,
const ArrayOfMatrix ext_matArray,
const ArrayOfVector abs_vecArray,
const Vector t_ppath,
const Matrix pnd_ppath,
const Vector cum_l_step,
const Numeric pathlength,
const Index stokes_dim,
const Ppath ppath 
)

interpTarray

Interpolates several arrays calculated by TarrayCalc to give values at a given pathlength

Parameters
[out]Ttransmittance matrix ( I may have made this term up ).
[out]K_absabsorption coefficient vector
[out]temperaturetemperature
[out]Kextinction matrix at interpolation point
[out]rte_posposition at pathlength along ppath
[out]rte_losLOS at pathlength along ppath
[in]pnd_vecpnd vector
[in]TArrayarray of transmittance matrices
[in]ext_matArrayarray of extinction matrices
[in]abs_vecArrayarray of absorption coefficients
[in]t_ppatharray of temperatures
[in]pnd_ppatharray of pressures
[in]cum_l_stepvector of cumulative pathlengths
[in]pathlengthpathlength at which to calculate above values
[in]stokes_dimlength of Stokes vector
[in]ppaththe Ppath
Author
Cory Davis
Date
2003-06-19

Definition at line 290 of file mc_interp.cc.

References gridpos(), interp(), interpweights(), is_diagonal(), joker, Ppath::los, matrix_exp_p30(), mult(), ConstVectorView::nelem(), and Ppath::pos.

◆ operator<<()

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

Definition at line 78 of file mc_interp.cc.