ARTS
2.3.1285(git:92a29ea9-dirty)
|
Monte Carlo Antenna implementation. More...
Go to the source code of this file.
Functions | |
Numeric | ran_gaussian (Rng &rng, const Numeric sigma) |
ran_gaussian. More... | |
Numeric | ran_uniform (Rng &rng) |
ran_uniform. More... | |
void | rotmat_enu (MatrixView R_ant2enu, ConstVectorView prop_los) |
rotmat_enu. More... | |
void | rotmat_stokes (MatrixView R_pra, const Index &stokes_dim, const Numeric &f1_dir, const Numeric &f2_dir, ConstMatrixView R_f1, ConstMatrixView R_f2) |
rotmat_stokes. More... | |
ostream & | operator<< (ostream &os, const MCAntenna &) |
Variables | |
const Numeric | PI |
const Numeric | DEG2RAD |
const Numeric | RAD2DEG |
ostream& operator<< | ( | ostream & | os, |
const MCAntenna & | |||
) |
Definition at line 247 of file mc_antenna.cc.
Referenced by MCAntenna::G().
ran_gaussian.
Returns the gaussian random deviate. Draw a random normal (Gaussian) deviate. Polar (Box-Mueller) method; See Knuth v2, 3rd ed, p122.
[in] | rng | Rng random number generator instance. |
[in] | sigma | Standard deviation parameter for gaussian distribution. |
Definition at line 38 of file mc_antenna.cc.
References Rng::draw(), and sqrt().
Referenced by MCAntenna::draw_los(), MCAntenna::G(), and psd_cloudice_MH97().
ran_uniform.
*** FIXMEDOC ***
Definition at line 55 of file mc_antenna.cc.
References Rng::draw().
Referenced by MCAntenna::G().
void rotmat_enu | ( | MatrixView | R_ant2enu, |
ConstVectorView | prop_los | ||
) |
rotmat_enu.
Calculates rotation matrix from antenna frame to ENU frame. The columns of the rotation matrix are the v, h, and k components of the propagating wave in the ENU frame.
[out] | R_ant2enu | rotation matrix from antenna frame to ENU frame. |
[in] | prop_los | los (zenith and azimuth). |
Definition at line 63 of file mc_antenna.cc.
References DEG2RAD.
Referenced by MCAntenna::G(), MCGeneral(), and MCRadar().
void rotmat_stokes | ( | MatrixView | R_pra, |
const Index & | stokes_dim, | ||
const Numeric & | f1_dir, | ||
const Numeric & | f2_dir, | ||
ConstMatrixView | R_f1, | ||
ConstMatrixView | R_f2 | ||
) |
rotmat_stokes.
Calculates the PRA matrix for the stokes vector to account for polarization rotation from ENU frame to antenna frame. Designed to handle sign properly for radiometer and radar (both tx and rx) using the bs_dir argument which (1 = away from sensor, -1 = into sensor), based on Mishchenko's convention for third Stokes. The assumption is that the polarization basis vectors have magnitude of one; therefore, a check is not made for the purpose of computational efficiency.
[out] | R_pra | rotation matrix. |
[in] | stokes_dim | number of stokes vector elements to consider. |
[in] | f1_dir | propagation direction of polarization basis 1 (-1.0 or 1.0). |
[in] | f2_dir | propgation direction of polarization basis 2 (-1.0 or 1.0). |
[in] | R_f1 | rotation matrix (into ENU) for basis f1. |
[in] | R_f2 | photon rotation (into ENU) for basis f2. |
Definition at line 86 of file mc_antenna.cc.
References joker.
Referenced by MCAntenna::G(), MCGeneral(), and MCRadar().
const Numeric DEG2RAD |
Referenced by MCAntenna::draw_los(), and rotmat_enu().
const Numeric PI |
const Numeric RAD2DEG |
Referenced by MCAntenna::draw_los(), and MCAntenna::return_los().