primary_beam
¶
API documentation for primary_beam.c
.
Functions to calculate the parallactic angle, and fill in primary beam settings requested for the simulation, based on settings in woden_settings
and the sky model cropped_src
Functions
-
beam_settings_t *fill_primary_beam_settings(woden_settings_t *woden_settings, double *lsts)¶
Given the settings specified in
woden_settings
, populate abeam_settings_t
andsource_t
struct with appropriate attributes to be used in primary beam modelling.If using a
GAUSS_BEAM
orMWA_ANALY
primary beam, calculate the hour angle and declination of the pointing centre for all times steps, and for all components in sky modelcropped_src
.- Todo:
For all sky simulations, there can be millions of components, so calculating parallactic angle can be expensive. Consider multi-threading this somehow
- Parameters:
*cropped_src – [inout] A populated
source_t
sky model*woden_settings – [in] A populated
woden_settings_t
struct*lsts – [in] All local sidereal times in the simulation
- Returns:
beam_settings
- a populatedbeam_settings_t
struct containing attributes necessary to simulate the requested beam response