orca.flagging.flag_bad_ants

Antenna flagging based on autocorrelation statistics.

Identifies bad antennas by analyzing post-calibration autocorrelation amplitudes and time-series variability. Core and outrigger antennas are evaluated separately with appropriate thresholds.

Functions

flag_ants_from_postcal_autocorr

Identify bad antennas from post-calibration autocorrelation data.

flag_bad_ants

Identify bad antennas from raw autocorrelation statistics.

Functions

flag_ants_from_postcal_autocorr(→ Optional[str])

Generates a text file containing the bad antennas.

flag_bad_ants(→ str)

Generates a text file containing the bad antennas.

plot_autos(msfile)

Plot autocorrelations, grouped by ARX board.

main()

Module Contents

orca.flagging.flag_bad_ants.flag_ants_from_postcal_autocorr(msfile: str, tavg: bool = False, thresh: float = 4) str | None[source]

Generates a text file containing the bad antennas. DOES NOT ACTUALLY APPLY FLAGS. CURRENTLY SHOULD ONLY BE RUN ON SINGLE SPW MSs.

Parameters:
  • msfile

  • tavg – If set to True, will time average before evaluating flags.

  • thresh – Threshold to use for flagging. Default is 4.

Returns:

Path to the text file with the list of antennas to flag.

orca.flagging.flag_bad_ants.flag_bad_ants(msfile: str, debug: bool = False) str[source]

Generates a text file containing the bad antennas. DOES NOT ACTUALLY APPLY FLAGS.

Parameters:

msfile – msfile to generate

Returns:

Path to the text file with list of antennas to flag.

orca.flagging.flag_bad_ants.plot_autos(msfile: str)[source]

Plot autocorrelations, grouped by ARX board.

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