woden_settings

API documentation for woden_settings.c.

Methods to read in simulation parameters from a .json file and prepare settings into a woden_settings_t struct

Author

J.L.B. Line

Functions

int read_json_settings(const char *filename, woden_settings_t *woden_settings)

Takes a path to .json WODEN parameter file, and populates a woden_settings_t struct with the contents of filename.

For what can be included in the .json file, see the documentation for

Todo:

Work out how to link the print_help function here

Parameters
  • *filename[in] Path to a WODEN *.json settings file

  • *woden_settings[inout] A pointer to a populated woden_settings_t struct

Returns

Integer where 0 if read was successful, 1 if failed

float *setup_lsts_and_phase_centre(woden_settings_t *woden_settings)

Creates and returns an array of LST values for all time steps in the simulation based on the settings in woden_settings

Also sets woden_settings->num_visis to the overall number of visiblities (baselines*freqs*time_steps) and takes the sine and cosine of the declination of the phase centre and stores in woden_settings->sdec0, woden_settings->cdec0

Parameters

*woden_settings[inout] A pointer to a populated woden_settings_t struct

Returns

lsts Array of all LSTs in the simulation (radians)