orca.transform.pb_correction
Primary beam correction for OVRO-LWA FITS images.
Uses the extractor_pb_75 package (installed on the calim cluster) to
apply a beam model correction. The beam model H5 path is taken from
orca.resources.subband_config.
Ported from the standalone pb_correct.py script into the orca package.
Attributes
Functions
|
Apply primary beam correction and save a new |
Module Contents
- orca.transform.pb_correction.apply_pb_correction(fits_path: str) str | None[source]
Apply primary beam correction and save a new
.pbcorr.fitsfile.Does NOT overwrite the original. Checks the header
PBCORRkeyword to prevent double-application.- Parameters:
fits_path – Path to the input FITS image.
- Returns:
Path to the corrected output file, or None on failure / skip.