From 04882b5afa1347c99cb3439dd2b2db1be605ec1c Mon Sep 17 00:00:00 2001 From: Frits Sweijen <fritssweijen@hotmail.com> Date: Fri, 29 Sep 2023 13:45:02 +0000 Subject: [PATCH] Reference based on channel frequency instead of REF_FREQUENCY in sort_times_into_freqGroups.py --- scripts/sort_times_into_freqGroups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sort_times_into_freqGroups.py b/scripts/sort_times_into_freqGroups.py index cd4a358f..1d77c941 100755 --- a/scripts/sort_times_into_freqGroups.py +++ b/scripts/sort_times_into_freqGroups.py @@ -140,7 +140,7 @@ def main(MSfile, numSB=10, DP3fill=True, stepname=None, mergeLastGroup=False, tr for ms in time_groups[time]['files']: # Get the frequency info sw = pt.table(ms+'::SPECTRAL_WINDOW', ack=False) - freq = sw.col('REF_FREQUENCY')[0] + freq = sw.col('CHAN_FREQ')[0][0] if first: file_bandwidth = sw.col('TOTAL_BANDWIDTH')[0] nchans = sw.col('CHAN_WIDTH')[0].shape[0] -- GitLab