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
|
Generates a text file containing the bad antennas. |
|
Generates a text file containing the bad antennas. |
|
Plot autocorrelations, grouped by ARX board. |
|
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.