orca.flagging.flag_bad_ants =========================== .. py:module:: orca.flagging.flag_bad_ants .. autoapi-nested-parse:: 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 --------- .. autoapisummary:: orca.flagging.flag_bad_ants.flag_ants_from_postcal_autocorr orca.flagging.flag_bad_ants.flag_bad_ants orca.flagging.flag_bad_ants.plot_autos orca.flagging.flag_bad_ants.main Module Contents --------------- .. py:function:: flag_ants_from_postcal_autocorr(msfile: str, tavg: bool = False, thresh: float = 4) -> Optional[str] Generates a text file containing the bad antennas. DOES NOT ACTUALLY APPLY FLAGS. CURRENTLY SHOULD ONLY BE RUN ON SINGLE SPW MSs. :param msfile: :param tavg: If set to True, will time average before evaluating flags. :param thresh: Threshold to use for flagging. Default is 4. :returns: Path to the text file with the list of antennas to flag. .. py:function:: flag_bad_ants(msfile: str, debug: bool = False) -> str Generates a text file containing the bad antennas. DOES NOT ACTUALLY APPLY FLAGS. :param msfile: msfile to generate :returns: Path to the text file with list of antennas to flag. .. py:function:: plot_autos(msfile: str) Plot autocorrelations, grouped by ARX board. .. py:function:: main()