woden¶
API documentation for woden.c.
Functions
-
int run_woden(woden_settings_t *woden_settings, visibility_set_t *visibility_sets, source_catalogue_t *cropped_sky_models, array_layout_t *array_layout, user_precision_t *sbf)¶
Runs the WODEN simulation with the provided settings and data.
woden_settingscontains settings indicating what kind of simulation is to be run.cropped_sky_modelscontains the sky model, chunked into pieces that should fit on the CPU/GPU.array_layouthold the array layout, andsbfholds the shapelet basis functions. All should be fully initialised before calling this function. The intention is to call thisrun_wodenfunction fromrun_woden.py, so see that for how to set up the input parameters.visibility_setsshould be an array ofvisibility_set_tstructs, one for each coarse band. Within eachvisibility_set, the following arrays should be allocated:visibility_set->us_metres
visibility_set->vs_metres
visibility_set->ws_metres
visibility_set->sum_visi_XX_real
visibility_set->sum_visi_XX_imag
visibility_set->sum_visi_XY_real
visibility_set->sum_visi_XY_imag
visibility_set->sum_visi_YX_real
visibility_set->sum_visi_YX_imag
visibility_set->sum_visi_YY_real
visibility_set->sum_visi_YY_imag
as these hold the outputs of the simulation.
All other members of
visibility_setwill be populated/freed by this function.- Parameters:
woden_settings – Pointer to the settings structure for WODEN.
visibility_sets – Pointer to the visibility sets structure.
cropped_sky_models – Pointer to the source catalogue structure containing cropped sky models.
array_layout – Pointer to the array layout structure.
sbf – Pointer to the shapelet basis functions array
- Returns:
An integer indicating the success or failure of the simulation.