orca.flagging.flag_bad_bls

Baseline flagging based on cross-hand visibility statistics.

Identifies bad baselines by analyzing cross-hand (XY, YX) correlation amplitudes. Baselines with excessive cross-hand power are flagged.

Functions

flag_bad_bls

Identify and write bad baselines to a text file.

Functions

flag_bad_bls(→ Optional[str])

Flag bad baselines using the visibilities.

main()

Module Contents

orca.flagging.flag_bad_bls.flag_bad_bls(msfile: str, usedatacol: bool = False) str | None[source]

Flag bad baselines using the visibilities.

Identifies baselines with anomalously high cross-hand (XY, YX) correlation amplitudes and writes them to a text file. Does NOT apply flags directly to the measurement set.

Parameters:
  • msfile – Path to the measurement set.

  • usedatacol – If True, use DATA column; otherwise use CORRECTED_DATA.

Returns:

Path to the text file listing baselines to flag, or None if no bad baselines were found. Format is one baseline per line as ‘ant1&ant2’.

orca.flagging.flag_bad_bls.main()[source]