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, source_t *cropped_src, double *lsts)¶
Given the settings specified in
woden_settings, populate abeam_settings_tandsource_tstruct with appropriate attributes to be used in primary beam modelling.If using a
GAUSS_BEAMorMWA_ANALYprimary 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_tsky model*woden_settings – [in] A populated
woden_settings_tstruct*lsts – [in] All local sidereal times in the simulation
- Returns
beam_settings- a populatedbeam_settings_tstruct containing attributes necessary to simulate the requested beam response