ARTS
2.4.0(git:4fb77825)
|
Radiation field calculations. More...
Go to the source code of this file.
Functions | |
void | error_in_integrate (const String &error_msg, const Numeric &value_that_should_be_unity) |
Throws an error if integration values are bad. More... | |
Numeric | test_integrate_convolved (const Eigen::Ref< Eigen::VectorXcd > F, const Vector &f) |
Integrate the line shape. More... | |
Numeric | test_integrate_zenith (const Vector &cosza, const Array< Index > &sorted_index) |
Integrate cos(za) over the angles. More... | |
Numeric | integrate_convolved (const RadiationVector &I, const Eigen::VectorXcd &F, const Vector &f) |
Convolve intensity and line shape and integrate. More... | |
Numeric | integrate_convolved (const TransmissionMatrix &T, const Eigen::VectorXcd &F, const Vector &f) |
Convolve transmission and line shape and integrate. More... | |
Numeric | integrate_zenith (const VectorView j, const Vector &cosza, const Array< Index > &sorted_index) |
Convolve source function with 1D sphere and integrate. More... | |
Index | grid_index_from_gp (const GridPos &gp) |
Get a discrete position from grid pos. More... | |
void | sorted_index_of_ppath_field (ArrayOfArrayOfIndex &sorted_index, ArrayOfVector &cosza, const ArrayOfPpath &ppath_field) |
Get sorting of zenith angles in field of ppath. More... | |
Throws an error if integration values are bad.
[in] | error_msg | Error message to print |
[in] | value_that_should_be_unity | Check value |
Definition at line 30 of file radiation_field.cc.
References abs.
Get a discrete position from grid pos.
Assumes the grid pos has been set to extend over the path
[in] | gp | Grid position |
Definition at line 100 of file radiation_field.cc.
References GridPos::fd, and GridPos::idx.
Referenced by sorted_index_of_ppath_field().
Numeric integrate_convolved | ( | const RadiationVector & | I, |
const Eigen::VectorXcd & | F, | ||
const Vector & | f | ||
) |
Convolve intensity and line shape and integrate.
f must be sorted and in same order as F and I
F must be normalized
[in] | I | Intensity vector |
[in] | F | Line shape normalized |
[in] | f | Frequency grid |
Definition at line 61 of file radiation_field.cc.
References ConstVectorView::nelem().
Numeric integrate_convolved | ( | const TransmissionMatrix & | T, |
const Eigen::VectorXcd & | F, | ||
const Vector & | f | ||
) |
Convolve transmission and line shape and integrate.
f must be sorted and in same order as F and T
F must be normalized
Only consider [0, 0] position of T
[in] | T | Transmission matrix |
[in] | F | Line shape normalized |
[in] | f | Frequency grid |
Definition at line 74 of file radiation_field.cc.
References ConstVectorView::nelem().
Numeric integrate_zenith | ( | const VectorView | j, |
const Vector & | cosza, | ||
const Array< Index > & | sorted_index | ||
) |
Convolve source function with 1D sphere and integrate.
[in] | j | Source vector |
[in] | cosza | cos of zenith angle |
[in] | sorted_index | Order of zenith angles |
Definition at line 87 of file radiation_field.cc.
References ConstVectorView::nelem().
void sorted_index_of_ppath_field | ( | ArrayOfArrayOfIndex & | sorted_index, |
ArrayOfVector & | cosza, | ||
const ArrayOfPpath & | ppath_field | ||
) |
Get sorting of zenith angles in field of ppath.
[out] | sorted_index | Order of zenith angles |
[out] | cosza | cos of zenith angle |
[in] | ppath_field | As WSV |
Definition at line 107 of file radiation_field.cc.
References data, DEG2RAD, get_sorted_indexes(), grid_index_from_gp(), max, Absorption::nelem(), and ARTS::Var::ppath_field().
Integrate the line shape.
f must be sorted and in same order as F
Return should be 1.0 for a full line shape
[in] | F | Line shape |
[in] | f | Frequency grod |
Definition at line 39 of file radiation_field.cc.
References ConstVectorView::nelem().
Integrate cos(za) over the angles.
sorted_index must be in same order as cosza
Return should be 1.0 for a full set of zenith angles
[in] | cosza | cos of zenith angle |
[in] | sorted_index | Order of zenith angles |
Definition at line 50 of file radiation_field.cc.
References ConstVectorView::nelem().