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

logger

Functions

apply_pb_correction(→ Optional[str])

Apply primary beam correction and save a new .pbcorr.fits file.

Module Contents

orca.transform.pb_correction.logger[source]
orca.transform.pb_correction.apply_pb_correction(fits_path: str) str | None[source]

Apply primary beam correction and save a new .pbcorr.fits file.

Does NOT overwrite the original. Checks the header PBCORR keyword 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.