orca.transform.precalflag

Pre-calibration flagging based on autocorrelation power.

Identifies dead or malfunctioning antennas before calibration by analyzing autocorrelation power levels relative to the array median.

Functions

is_fft_overflow

Check for FFT overflow conditions (not yet implemented).

find_dead_ants

Identify antennas with abnormally low power.

Attributes

logger

DEAD_POWER_THRESHOLD

Functions

is_fft_overflow(→ bool)

Check if the measurement set shows signs of FFT overflow.

find_dead_ants(→ List[int])

Identify antennas with abnormally low power.

Module Contents

orca.transform.precalflag.logger[source]
orca.transform.precalflag.DEAD_POWER_THRESHOLD = 0.1[source]
orca.transform.precalflag.is_fft_overflow(ms: str) bool[source]

Check if the measurement set shows signs of FFT overflow.

Parameters:

ms – Path to the measurement set.

Returns:

True if overflow detected, False otherwise.

Raises:

NotImplementedError – Function not yet implemented.

orca.transform.precalflag.find_dead_ants(ms: str) List[int][source]

Identify antennas with abnormally low power.

Compares each antenna’s total autocorrelation power to the array median for core and outrigger antennas separately.

Parameters:

ms – Path to the measurement set.

Returns:

Sorted list of antenna indices with power below threshold.