#include <mc_antenna.h>
Public Member Functions | |
MCAntenna () | |
void | set_pencil_beam (void) |
makes the antenna pattern a pencil beam | |
void | set_gaussian (const Numeric &za_sigma, const Numeric &aa_sigma) |
makes the antenna pattern a 2D gaussian specified by za and aa standard deviations | |
void | set_gaussian_fwhm (const Numeric &za_fwhm, const Numeric &aa_fwhm) |
makes the antenna pattern a 2D gaussian specified by za and aa FWHM | |
void | set_lookup (ConstVectorView &za_grid, ConstVectorView &aa_grid, ConstMatrixView &G_lookup) |
makes the antenna pattern use a 2D lookup table to define the antenna response | |
AType | get_type (void) const |
returns the antenna type | |
void | draw_los (VectorView &sampled_rte_los, Rng &rng, ConstVectorView bore_sight_los) const |
draws a line of sight by sampling the antenna response function | |
Private Attributes | |
AType | atype |
Numeric | sigma_aa |
Numeric | sigma_za |
Vector | aa_grid |
Vector | za_grid |
Matrix | G_lookup |
This class provides the means of sampling various types of 2D antenna functions..
Definition at line 56 of file mc_antenna.h.
MCAntenna::MCAntenna | ( | ) | [inline] |
Definition at line 63 of file mc_antenna.h.
void MCAntenna::set_pencil_beam | ( | void | ) |
makes the antenna pattern a pencil beam
Definition at line 88 of file mc_antenna.cc.
References atype, and ATYPE_PENCIL_BEAM.
Referenced by mc_antennaSetPencilBeam(), and RteCalcMC().
makes the antenna pattern a 2D gaussian specified by za and aa standard deviations
Givees the MCAntenna object a 2D gaussian response function
za_sigma | The std. dev. parameter for zenith angle | |
aa_sigma | The std. dev. parameter for azimuthal angle. |
Definition at line 100 of file mc_antenna.cc.
References atype, ATYPE_GAUSSIAN, sigma_aa, and sigma_za.
Referenced by mc_antennaSetGaussian().
makes the antenna pattern a 2D gaussian specified by za and aa FWHM
Givees the MCAntenna object a 2D gaussian response function
za_fwhm | The full width half maximum zenith angle | |
aa_fwhm | The full width half maximum azimuthal angle. |
Definition at line 116 of file mc_antenna.cc.
References atype, ATYPE_GAUSSIAN, sigma_aa, and sigma_za.
Referenced by mc_antennaSetGaussianByFWHM().
void MCAntenna::set_lookup | ( | ConstVectorView & | za_grid_, | |
ConstVectorView & | aa_grid_, | |||
ConstMatrixView & | G_lookup_ | |||
) |
makes the antenna pattern use a 2D lookup table to define the antenna response
The lookup antenna type is not yet implemented
za_grid_ | zenith angle grid for the antenna response lookup table | |
aa_grid_ | azimuthal angle grid for the antenna response lookup table | |
G_lookup_ | the lookup table data |
Definition at line 134 of file mc_antenna.cc.
References aa_grid, atype, ATYPE_LOOKUP, G_lookup, and za_grid.
AType MCAntenna::get_type | ( | void | ) | const |
returns the antenna type
Definition at line 150 of file mc_antenna.cc.
References atype.
Referenced by mc_IWP_cloud_opt_pathCalc().
void MCAntenna::draw_los | ( | VectorView & | sampled_rte_los, | |
Rng & | rng, | |||
ConstVectorView | bore_sight_los | |||
) | const |
draws a line of sight by sampling the antenna response function
sampled_rte_los | Output: The sampled line of sight | |
rng | a random number generator | |
bore_sight_los | the bore sight LOS |
Definition at line 167 of file mc_antenna.cc.
References atype, ATYPE_GAUSSIAN, ATYPE_PENCIL_BEAM, ran_gaussian(), sigma_aa, and sigma_za.
Referenced by mc_IWP_cloud_opt_pathCalc(), MCGeneral(), and MCIPA().
AType MCAntenna::atype [private] |
Definition at line 57 of file mc_antenna.h.
Referenced by draw_los(), get_type(), set_gaussian(), set_gaussian_fwhm(), set_lookup(), and set_pencil_beam().
Numeric MCAntenna::sigma_aa [private] |
Definition at line 58 of file mc_antenna.h.
Referenced by draw_los(), set_gaussian(), and set_gaussian_fwhm().
Numeric MCAntenna::sigma_za [private] |
Definition at line 58 of file mc_antenna.h.
Referenced by draw_los(), set_gaussian(), and set_gaussian_fwhm().
Vector MCAntenna::aa_grid [private] |
Vector MCAntenna::za_grid [private] |
Matrix MCAntenna::G_lookup [private] |