ska_sdp_e2e_batch_continuum_imaging.pipelines.service.calibration_service module

class ska_sdp_e2e_batch_continuum_imaging.pipelines.service.calibration_service.SelfcalSolutions(facet_region_file, solutions_file)[source]

Bases: object

Data class for storing self-calibration solution file paths.

facet_region_file

Path to the generated facet region file.

Type:

os.PathLike

solution_file

Path to the generated calibration solution file.

Type:

os.PathLike

facet_region_file: PathLike
solutions_file: PathLike
ska_sdp_e2e_batch_continuum_imaging.pipelines.service.calibration_service.get_inst_env_vars(global_parameters)[source]

Get the environment variables required for the INSTRunner.

Parameters:

global_parameters (dict) -- Global parameters for the pipeline execution.

Returns:

A dictionary of environment variables for the INSTRunner.

Return type:

dict

ska_sdp_e2e_batch_continuum_imaging.pipelines.service.calibration_service.instrumental_calibration(scans, calibration_configuration, output_dir, sdm_path, global_configuration)[source]

Perform instrumental calibration using the INSTRunner.

Parameters:
ska_sdp_e2e_batch_continuum_imaging.pipelines.service.calibration_service.instrumental_target_calibration(scans, complex_gain_calibration, ionospheric_calibration, global_comfiguration, field_id, output_path, sdm_path)[source]

Perform a complex gain and ionospheric calibration.

Parameters:
  • scans (list of os.PathLike) -- List of scans to be processed.

  • complex_gain_calibration (ComplexGainCalibration) -- Configuration settings for complex gain calibration.

  • ionospheric_calibration (IonosphericCalibration) -- Configuration settings for ionospheric calibration.

  • global_comfiguration (GlobalParameterConfig) -- Global pipeline configuration parameters.

  • field_id (str) -- The identifier for the field being calibrated.

  • output_path (os.PathLike) -- Path to the base output directory.

  • sdm_path (os.PathLike) -- Path to the Science Data Model.

Returns:

The result of the final calibration application step.

Return type:

Any

ska_sdp_e2e_batch_continuum_imaging.pipelines.service.calibration_service.self_calibration(scans, calibration_configuration, output_dir)[source]

Execute self-calibration using the RapthorRunner.

Parameters:
  • scans (list of os.PathLike) -- List of scans to be processed.

  • calibration_configuration (SelfCalibration) -- Configuration settings for self-calibration loops.

  • output_dir (os.PathLike) -- Path to the output directory.

Returns:

Container holding paths to facet regions and solution files.

Return type:

SelfcalSolutions

ska_sdp_e2e_batch_continuum_imaging.pipelines.service.calibration_service.ical_target_calibration(scans, calibration_configuration, ionospheric_calibration, global_comfiguration, field_id, output_dir, sdm_path)[source]

Perform iterative direction independent calibration on a target field.

Parameters:
  • scans (list of os.PathLike) -- List of scans to be processed.

  • calibration_configuration (SelfCalibration) -- Configuration settings for the self-calibration loops.

  • ionospheric_calibration (IonosphericCalibration) -- Configuration settings for ionospheric calibration.

  • global_comfiguration (GlobalParameterConfig) -- Global pipeline configuration parameters.

  • field_id (str) -- The identifier for the field being calibrated.

  • output_path (os.PathLike) -- Path to the base output directory.

  • sdm_path (os.PathLike) -- Path to the Science Data Model.

Returns:

The path to the calibrated visibility data.

Return type:

os.PathLike