orca.calibration.delay_pipeline
Delay calibration pipeline.
This module provides the delay calibration pipeline for OVRO-LWA data. Combines measurement sets across all frequencies to solve for per-antenna delays using Cygnus A as the calibrator.
- The pipeline:
Selects optimal MS per frequency based on LST proximity to Cyg A transit.
Concatenates and combines spectral windows with mstransform.
Flags RFI and bad antennas.
Generates Cyg A model and solves for delays.
Produces QA plots showing delay solutions per antenna.
Example
>>> from orca.calibration.delay_pipeline import run_delay_pipeline
>>> run_delay_pipeline('2024-01-15')
Functions
|
Find the measurement set closest to target LST. |
|
Copy directory tree, removing destination if it exists. |
|
Run delay calibration for all frequencies >= 41 MHz for a given date. |
Module Contents
- orca.calibration.delay_pipeline.closest_ms_by_lst(ms_list, target_lst_rad)[source]
Find the measurement set closest to target LST.
- Parameters:
ms_list – List of measurement set paths.
target_lst_rad – Target LST in radians.
- Returns:
Path to the MS with LST closest to target.
- orca.calibration.delay_pipeline.copytree(src, dst)[source]
Copy directory tree, removing destination if it exists.
- Parameters:
src – Source directory path.
dst – Destination directory path.
- orca.calibration.delay_pipeline.run_delay_pipeline(obs_date, ref_lst=20.00554072 / 24 * 2 * 3.14159265359, tol_min=1)[source]
Run delay calibration for all frequencies >= 41 MHz for a given date.
- This function:
Selects the best MS for each frequency based on proximity to a reference LST.
Copies selected MS files to NVMe.
Concatenates and combines SPWs using mstransform.
Flags RFI using AOFlagger and known bad antennas.
Generates a model (Cyg A only) and applies it.
Runs gaincal to solve for delays.
- Outputs:
CASA delay calibration table at /lustre/pipeline/calibration/delay/<DATE>/
A QA PDF showing per-antenna delays.
Cleans up NVMe temporary files.