diff --git a/demo/04_ssins.py b/demo/04_ssins.py index 9e136f3..8cabd0a 100755 --- a/demo/04_ssins.py +++ b/demo/04_ssins.py @@ -1,4 +1,8 @@ #!/usr/bin/env python + +# identify RFI using ssins +# details: https://github.com/mwilensky768/SSINS + from pyuvdata import UVData from SSINS import SS, INS, MF import os @@ -28,6 +32,24 @@ def get_parser(): action="store_true", help="skip flagging of edge channels, quack time", ) + group_uvd_read.add_argument( + "--remove-coarse-band", + default=False, + action="store_true", + help="Correct coarse PFB passband (resolution must be > 10kHz)", + ) + group_uvd_read.add_argument( + "--correct-van-vleck", + default=False, + action="store_true", + help="Correct van vleck quantization artifacts in legacy correlator. slow!", + ) + group_uvd_read.add_argument( + "--include-flagged-ants", + default=False, + action="store_true", + help="Include flagged antenna when reading raw files", + ) # arguments for UVData.select() group_uvd_sel = parser.add_argument_group("UVData.select") @@ -322,9 +344,9 @@ def main(): args.files, read_data=True, diff=(not args.no_diff), # difference timesteps - remove_coarse_band=False, # does not work with low freq res - correct_van_vleck=False, # slow - remove_flagged_ants=True, # remove flagged antennas + remove_coarse_band=args.remove_coarse_band, # does not work with low freq res + correct_van_vleck=args.correct_van_vleck, # slow + remove_flagged_ants=(not args.include_flagged_ants), # remove flagged antennas flag_init=(not args.no_flag_init), ) diff --git a/demo/04_ssins.sh b/demo/04_ssins.sh index 1d5938e..065273c 100755 --- a/demo/04_ssins.sh +++ b/demo/04_ssins.sh @@ -1,6 +1,5 @@ #!/bin/bash -# identify RFI using ssins -# details: https://github.com/mwilensky768/SSINS +# wrapper for 04_ssins.py # ### # # ENV #