ska_sdp_wflow_pointing_offset.export_data module

Functions for exporting pointing offset data to text file

ska_sdp_wflow_pointing_offset.export_data.create_metadata(metadata_file_path)[source]

Create SDP dataproduct metadata file based on the ska-sdp-dataproduct-metadata library

Parameters:

metadata_file_path – file (full path) to metadata file

ska_sdp_wflow_pointing_offset.export_data.export_pointing_offset_data(filename, offsets, visibility)[source]

Writes the results of the pointing offset calibration to a text file.

Parameters:
  • filename – Output filename

  • offsets – A dictionary of the weighted-average pointing offsets output by array_data_func.weighted_average()

  • visibility – Visibility object

Returns:

True-Success, False-Failed

ska_sdp_wflow_pointing_offset.export_data.export_pointingtable_to_hdf5(pointing_table: PointingTable, results_file_hdf: str | PathLike)[source]

Export a PointingTable to an HDF5 file.

Parameters

pointing_tablePointingTable

The pointing table to be written to disk.

results_file_hdfstr or os.PathLike

Path to the output HDF5 file.

Notes

This function is a thin wrapper around ska_sdp_datamodels.calibration.export_pointingtable_to_hdf5 that adds a description of the data fields as HDF5 attributes.

ska_sdp_wflow_pointing_offset.export_data.make_results_dir_name(results_dir_base: str, scan_ids: Sequence[int | str]) str[source]

Generate the name of the results directory for an SDP Pipeline run.

Parameters:
  • results_dir_base – base results directory

  • scan_ids – sequence of scan IDs

Returns:

Generated directory name