orca.flagging.flag_bad_bls ========================== .. py:module:: orca.flagging.flag_bad_bls .. autoapi-nested-parse:: 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 --------- .. autoapisummary:: orca.flagging.flag_bad_bls.flag_bad_bls orca.flagging.flag_bad_bls.main Module Contents --------------- .. py:function:: flag_bad_bls(msfile: str, usedatacol: bool = False) -> Optional[str] 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. :param msfile: Path to the measurement set. :param 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'. .. py:function:: main()