ska_sdp_e2e_batch_continuum_imaging.pipelines.utilities.ms_reader module

ska_sdp_e2e_batch_continuum_imaging.pipelines.utilities.ms_reader.read_ms_field_id(ms_path)[source]

Read field ID from measurement set.

Parameters:

ms_path (str) -- Absolute path to the measurement set.

Returns:

field_id -- Field ID of the measurement set.

Return type:

str

ska_sdp_e2e_batch_continuum_imaging.pipelines.utilities.ms_reader.read_ms_scan_intent(ms_path)[source]

Read scan intent from measurement set. By default, it checks the SCAN table for the SCAN_INTENT column. If the SCAN table does not exist, it checks the STATE table for the OBS_MODE column. MSv3 and MSv4 would have SCAN_INTENT in SCAN table, while older versions would have OBS_MODE in STATE table.

Parameters:

ms_path (str) -- Absolute path to the measurement set.

Returns:

scan_intent -- Scan intent of the measurement set.

Return type:

str

ska_sdp_e2e_batch_continuum_imaging.pipelines.utilities.ms_reader.read_min_time(ms_path)[source]

Read the minimum time from a MeasurementSet table.

Parameters:

ms_path (str) -- The file system path to the MeasurementSet directory.

Returns:

The minimum value found among the unique entries in the 'TIME' column.

Return type:

float