ska_sdp_wflow_pointing_offset.read_data module

Functions for reading data from Measurement Sets and pulling static channel-dependent static RFI mask from the SKA Telescope Model Data Repository

ska_sdp_wflow_pointing_offset.read_data.read_batch_visibilities(ms_all_files, apply_mask=False, use_source_offset_column=False, rfi_filename=None, start_freq=None, end_freq=None, fit_to_vis=False, num_chunks=16)[source]

Extracts parameters from multiple measurement sets required for computing the pointing offsets.

Parameters:
  • ms_all_files – List of all measurement set files to be loaded

  • apply_mask – Apply RFI mask?

  • use_source_offset_column – Read on-sky offsets in cross-elevation and elevation from the SOURCE_OFFSET column of the pointing sub-tables? If False, antenna pointings in azimuth and elevation are read from the TARGET column of the pointing table and the on-sky offsets in cross-elevation and elevation are computed thereafter.

  • rfi_filename – Name of RFI mask file (in .h5)

  • start_freq – Start frequency for selection in MHz. If no selection needed, use None

  • end_freq – End frequency for selection in MHz. If no selection needed, use None

  • fit_to_vis – Fit primary beam to cross-correlation visibility amplitudes instead of the antenna gain amplitudes

Returns:

List of Visibility, list of on-sky offsets in cross-elevation and elevation, list of katpoint Antennas, the reference timestamp, commanded pointings at all timestamps, and list of track duration