ARTS 2.5.11 (git: 725533f0)
|
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. | |
Numeric | test_integrate_convolved (const Eigen::Ref< Eigen::VectorXcd > &F, const Vector &f) |
Integrate the line shape. | |
Numeric | test_integrate_zenith (const Vector &cosza, const Array< Index > &sorted_index) |
Integrate cos(za) over the angles. | |
Numeric | integrate_convolved (const RadiationVector &I, const Eigen::VectorXcd &F, const Vector &f) |
Convolve intensity and line shape and integrate. | |
Numeric | integrate_convolved (const TransmissionMatrix &T, const Eigen::VectorXcd &F, const Vector &f) |
Convolve transmission and line shape and integrate. | |
Numeric | integrate_zenith (const ConstVectorView &j, const Vector &cosza, const Array< Index > &sorted_index) |
Convolve source function with 1D sphere and integrate. | |
Index | grid_index_from_gp (const GridPos &gp) |
Get a discrete position from grid pos. | |
void | sorted_index_of_ppath_field (ArrayOfArrayOfIndex &sorted_index, ArrayOfVector &cosza, const ArrayOfPpath &ppath_field) |
Get sorting of zenith angles in field of ppath. | |
void error_in_integrate | ( | const String & | error_msg, |
const Numeric & | value_that_should_be_unity | ||
) |
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 13 of file radiation_field.cc.
References ARTS_USER_ERROR_IF.
Referenced by line_irradianceCalcForSingleSpeciesNonOverlappingLinesPseudo2D().
Index grid_index_from_gp | ( | const GridPos & | gp | ) |
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 80 of file radiation_field.cc.
References GridPos::fd, and GridPos::idx.
Referenced by line_irradianceCalcForSingleSpeciesNonOverlappingLinesPseudo2D(), and 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 41 of file radiation_field.cc.
Referenced by line_irradianceCalcForSingleSpeciesNonOverlappingLinesPseudo2D().
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 54 of file radiation_field.cc.
Numeric integrate_zenith | ( | const ConstVectorView & | 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 67 of file radiation_field.cc.
Referenced by line_irradianceCalcForSingleSpeciesNonOverlappingLinesPseudo2D().
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 86 of file radiation_field.cc.
References Conversion::cosd(), get_sorted_indexes(), and grid_index_from_gp().
Referenced by line_irradianceCalcForSingleSpeciesNonOverlappingLinesPseudo2D().
Numeric test_integrate_convolved | ( | const Eigen::Ref< Eigen::VectorXcd > & | F, |
const Vector & | f | ||
) |
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 19 of file radiation_field.cc.
Referenced by line_irradianceCalcForSingleSpeciesNonOverlappingLinesPseudo2D().
Numeric test_integrate_zenith | ( | const Vector & | cosza, |
const Array< Index > & | sorted_index | ||
) |
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 30 of file radiation_field.cc.
Referenced by line_irradianceCalcForSingleSpeciesNonOverlappingLinesPseudo2D().