From 28c8aa3a38a0a3b2e65cbe4e30d14f4c71dd0794 Mon Sep 17 00:00:00 2001 From: AK <kutkin@gmail.com> Date: Wed, 11 Aug 2021 12:20:10 +0000 Subject: [PATCH] fixed ddcal not using config --- imcal.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/imcal.py b/imcal.py index 1972bef..3571699 100755 --- a/imcal.py +++ b/imcal.py @@ -198,7 +198,7 @@ def dical(msin, srcdb, msout=None, h5out=None, solint=1, startchan=0, split_ncha return msout -def ddecal(msin, srcdb, msout=None, h5out=None, solint=1, nfreq=15, +def ddecal(msin, srcdb, msout=None, h5out=None, solint=120, nfreq=30, startchan=0, nchan=0, mode='diagonal', uvlambdamin=500, subtract=True): """ Perform direction dependent calibration with DPPP """ h5out = h5out or os.path.split(msin)[0] + '/ddcal.h5' @@ -416,8 +416,7 @@ def main(msin, outbase=None, cfgfile='imcal.yml'): # DDE calibration + peeling everything if (not os.path.exists(ddsub)): - ddsub, h5out = ddecal(dical3, clustered_sdb, msout=ddsub, h5out=h5_dd, - solint=120, mode='diagonal') + ddsub, h5out = ddecal(dical3, clustered_sdb, msout=ddsub, h5out=h5_dd, **cfg['ddcal']) # view the solutions and save figure view_sols(h5_dd) -- GitLab