ska_sdp_e2e_batch_continuum_imaging.pipelines.service.visibility_service module

ska_sdp_e2e_batch_continuum_imaging.pipelines.service.visibility_service.prepare_visibilities(scans, averager, preflagger, output_dir, sdm_path)[source]

Prepare visibility data by averaging and flagging.

Parameters:
  • scans (list[os.PathLike]) -- Paths to the scans to be processed.

  • averager (AveragerStep) -- Configuration for data averaging.

  • preflagger (PreFlaggerStep) -- Configuration for data flagging.

  • output_dir (os.PathLike) -- Directory for storing the processed output.

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

Returns:

The result of the BppRunner execution.

Return type:

Any

ska_sdp_e2e_batch_continuum_imaging.pipelines.service.visibility_service.apply_calibration(scans, from_field, calibration_purpose, output_dir, sdm_path)[source]

Apply calibration solutions to the visibility data.

Parameters:
  • scans (list[os.PathLike]) -- Paths to the scans to be processed.

  • from_field (str) -- Source field from which to apply calibration.

  • calibration_purpose ({'bandpass', 'gains', 'ionosphere'}) -- The intended purpose of the calibration.

  • output_dir (os.PathLike) -- Directory for storing the calibrated output.

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

Returns:

The result of the BppRunner execution.

Return type:

Any

ska_sdp_e2e_batch_continuum_imaging.pipelines.service.visibility_service.prepare_with_apply(scans, averager, preflagger, from_field, calibration_purpose, output_dir, sdm_path)[source]

Prepare visibilities and apply calibration in a single step.

Parameters:
  • scans (list[os.PathLike]) -- Path to the scans to be procsessed.

  • averager (AveragerStep) -- Configuration for data averaging.

  • preflagger (PreFlaggerStep) -- Configuration for data flagging.

  • from_field (str) -- Source field from which to apply calibration.

  • calibration_purpose ({'bandpass', 'gains', 'ionosphere'}) -- The intended purpose of the calibration.

  • output_dir (os.PathLike) -- Directory for storing the output files.

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

Returns:

The result of the BppRunner execution.

Return type:

Any