ratt-ru / CubiCal

A fast radio interferometric calibration suite.
GNU General Public License v2.0
18 stars 13 forks source link

Got unexpected behavior after dE solution #411

Closed Arnab-half-blood-prince closed 4 years ago

Arnab-half-blood-prince commented 4 years ago

Hi, I have been trying to peel a few bright sources with dE solution. This is uGMRT 300-500 MHz data set. I identified the bright sources in the FoV and created a model of those sources using wsclean predict mode and write it to DIR1 data column. And then, I construct another model with the whole sky and write it to the model data column.

However, after G,dE solution I got an unexpected amp vs freq jump of the corrected data column. The images before and after 3GC are attached. The parset used for cubical is also attached. Any idea what goes wrong? Screenshot from 2020-10-10 09-05-19 Screenshot from 2020-10-10 10-22-13

[data] _Help = Visibility data options ms = column = DATA time-chunk = 80 freq-chunk = 256 rebin-time = 1 rebin-freq = 1 chunk-by = SCAN_NUMBER chunk-by-jump = 1 single-chunk = single-tile = -1 normalize = 0

[sel] _Help = Data selection options field = 0 ddid = None taql = chan = diag = False

[out] _Help = Options for output products dir = peeling name = peeling.cc-out/peeling overwrite = False backup = 1 mode = sr apply-solver-flags = False column = CORRECTED_DATA derotate = None model-column = MODEL_OUT weight-column = reinit-column = False subtract-model = 0 subtract-dirs = 1 correct-dir = 0 plots = 1 casa-gaintables = True

[model] _Help = Calibration model options list = MODEL_DATA+-DIR1_DATA:DIR1_DATA ddes = auto beam-pattern = None beam-l-axis = None beam-m-axis = None feed-rotate = auto pa-rotate = False

[montblanc] _Help = Montblanc simulation options device-type = CPU dtype = double mem-budget = 1024 verbosity = WARNING threads = 0 pa-rotate = None

[weight] _Help = Weighting options column = WEIGHT_SPECTRUM fill-offdiag = False legacy-v1-2 = False

[flags] _Help = General flagging options apply = -cubical auto-init = legacy save = 0 save-legacy = auto reinit-bitflags = False warn-thr = 0.3 see-no-evil = 0

[degridding] Help = Options for the degridder. Only in use when predicting from DicoModels using DDFacet OverS = 11 Support = 7 Nw = 100 wmax = 0.0 Padding = 1.7 NDegridBand = 16 MaxFacetSize = 0.25 MinNFacetPerAxis = 1 NProcess = 8 BeamModel = None NBand = 0 FITSFile = beam$(corr)_$(reim).fits FITSFeed = None FITSFeedSwap = False DtBeamMin = 5.0 FITSParAngleIncDeg = 5.0 FITSLAxis = -X FITSMAxis = Y FITSVerbosity = 0 FeedAngle = 0.0 FlipVisibilityHands = 0

[postmortem] _Help = Options for "postmortem" flagging based on solution statistics enable = False tf-chisq-median = 1.2 tf-np-median = 0.5 time-density = 0.5 chan-density = 0.5 ddid-density = 0.5

[madmax] _Help = Options for the "Mad Max" flagger enable = 1 residuals = 0 estimate = corr diag = True offdiag = True threshold = 10 global-threshold = 12 plot = 1 plot-frac-above = 0.01 plot-bl = flag-ant = 0 flag-ant-thr = 5

[sol] _Help = Solution options which apply at the solver level jones = G,DE precision = 32 delta-g = 1e-06 delta-chi = 1e-06 chi-int = 5 last-rites = True stall-quorum = 0.99 term-iters = 50,90 flag-divergence = 0 min-bl = 200.0 max-bl = 0 subset =

[bbc] Help = Options for baseline-based corrections (a.k.a. BBCs, a.k.a. interferometer gains). load-from = compute-2x2 = False apply-2x2 = False save-to = {out[name]}-BBC-field{sel[field]}-ddid_{sel[ddid]}.parmdb per-chan = True plot = True

[dist] _Help = Parallelization and distribution options ncpu = 32 nworker = 0 nthread = 0 max-chunks = 8 min-chunks = 0 pin = 0 pin-io = False pin-main = io safe = True

[log] _Help = Options related to logging memory = True stats = chi2:.3f stats-warn = chi2:10 boring = True append = False verbose = 0 file-verbose = None

[debug] _Help = Debugging options for the discerning masochist pdb = False panic-amplitude = 0.0 stop-before-solver = False escalate-warnings = 0

[misc] _Help = Miscellaneous options random-seed = None parset-version = 0.1

[g] Help = Options for G-Jones term label = G solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 0 fix-dirs = update-type = full estimate-pzd = False time-int = 30 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.1 clip-high = 10 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

[de] Help = Options for G-Jones term label = dE solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 1 fix-dirs = 0 update-type = full estimate-pzd = False time-int = 80 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.0 clip-high = 1000000 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

bennahugo commented 4 years ago

It is likely due to the very large left over RFI. Look at the divergent chi^2 as a hint. Try increasing your frequency interval to the entire band, or run a flagger afterwards to cull the UV points at which the solutions blew up due to the RFI presence.

Also do note that you of course need multiple columns to peel multiple sources right? Alternatively you can use ddfacet to make a model and a ds9 regions file created using my auto dde tagger bennahugo/catdagger to predict these models on the fly.

On Sat, 10 Oct 2020, 06:58 Arnab Chakraborty, notifications@github.com wrote:

Hi, I have been trying to peel a few bright sources with dE solution. This is uGMRT 300-500 MHz data set. I identified the bright sources in the FoV and created a model of those sources using wsclean predict mode and write it to DIR1 data column. And then, I construct another model with the whole sky and write it to the model data column.

However, after G,dE solution I got an unexpected amp vs freq jump of the corrected data column. The images before and after 3GC are attached. The parset used for cubical is also attached. Any idea what goes wrong? [image: Screenshot from 2020-10-10 09-05-19] https://user-images.githubusercontent.com/20695190/95646157-36500580-0ae3-11eb-98ed-fefc127c5909.png [image: Screenshot from 2020-10-10 10-22-13] https://user-images.githubusercontent.com/20695190/95646159-37813280-0ae3-11eb-8f50-74fa5902c1ee.png

[data] _Help = Visibility data options ms = column = DATA time-chunk = 80 freq-chunk = 256 rebin-time = 1 rebin-freq = 1 chunk-by = SCAN_NUMBER chunk-by-jump = 1 single-chunk = single-tile = -1 normalize = 0

[sel] _Help = Data selection options field = 0 ddid = None taql = chan = diag = False

[out] _Help = Options for output products dir = peeling name = peeling.cc-out/peeling overwrite = False backup = 1 mode = sr apply-solver-flags = False column = CORRECTED_DATA derotate = None model-column = MODEL_OUT weight-column = reinit-column = False subtract-model = 0 subtract-dirs = 1 correct-dir = 0 plots = 1 casa-gaintables = True

[model] _Help = Calibration model options list = MODEL_DATA+-DIR1_DATA:DIR1_DATA ddes = auto beam-pattern = None beam-l-axis = None beam-m-axis = None feed-rotate = auto pa-rotate = False

[montblanc] _Help = Montblanc simulation options device-type = CPU dtype = double mem-budget = 1024 verbosity = WARNING threads = 0 pa-rotate = None

[weight] _Help = Weighting options column = WEIGHT_SPECTRUM fill-offdiag = False legacy-v1-2 = False

[flags] _Help = General flagging options apply = -cubical auto-init = legacy save = 0 save-legacy = auto reinit-bitflags = False warn-thr = 0.3 see-no-evil = 0

[degridding]

Help = Options for the degridder. Only in use when predicting from DicoModels using DDFacet OverS = 11 Support = 7 Nw = 100 wmax = 0.0 Padding = 1.7 NDegridBand = 16 MaxFacetSize = 0.25 MinNFacetPerAxis = 1 NProcess = 8 BeamModel = None NBand = 0 FITSFile = beam$(corr)_$(reim).fits FITSFeed = None FITSFeedSwap = False DtBeamMin = 5.0 FITSParAngleIncDeg = 5.0 FITSLAxis = -X FITSMAxis = Y FITSVerbosity = 0 FeedAngle = 0.0 FlipVisibilityHands = 0

[postmortem] _Help = Options for "postmortem" flagging based on solution statistics enable = False tf-chisq-median = 1.2 tf-np-median = 0.5 time-density = 0.5 chan-density = 0.5 ddid-density = 0.5

[madmax] _Help = Options for the "Mad Max" flagger enable = 1 residuals = 0 estimate = corr diag = True offdiag = True threshold = 10 global-threshold = 12 plot = 1 plot-frac-above = 0.01 plot-bl = flag-ant = 0 flag-ant-thr = 5

[sol] _Help = Solution options which apply at the solver level jones = G,DE precision = 32 delta-g = 1e-06 delta-chi = 1e-06 chi-int = 5 last-rites = True stall-quorum = 0.99 term-iters = 50,90 flag-divergence = 0 min-bl = 200.0 max-bl = 0 subset =

[bbc]

Help = Options for baseline-based corrections (a.k.a. BBCs, a.k.a. interferometer gains). load-from = compute-2x2 = False apply-2x2 = False save-to = {out[name]}-BBC-field{sel[field]}-ddid_{sel[ddid]}.parmdb per-chan = True plot = True

[dist] _Help = Parallelization and distribution options ncpu = 32 nworker = 0 nthread = 0 max-chunks = 8 min-chunks = 0 pin = 0 pin-io = False pin-main = io safe = True

[log] _Help = Options related to logging memory = True stats = chi2:.3f stats-warn = chi2:10 boring = True append = False verbose = 0 file-verbose = None

[debug] _Help = Debugging options for the discerning masochist pdb = False panic-amplitude = 0.0 stop-before-solver = False escalate-warnings = 0

[misc] _Help = Miscellaneous options random-seed = None parset-version = 0.1

[g]

Help = Options for G-Jones term label = G solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 0 fix-dirs = update-type = full estimate-pzd = False time-int = 30 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.1 clip-high = 10 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

[de]

Help = Options for G-Jones term label = dE solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 1 fix-dirs = 0 update-type = full estimate-pzd = False time-int = 80 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.0 clip-high = 1000000 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ratt-ru/CubiCal/issues/411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4RE6T4FCIJ3YZXLMXKMD3SJ7SWRANCNFSM4SKZ3CCQ .

bennahugo commented 4 years ago

It is also worth plotting the quotient to see how well your model fits the data.

On Sat, 10 Oct 2020, 10:21 Benna Hugo, bennahugo@gmail.com wrote:

It is likely due to the very large left over RFI. Look at the divergent chi^2 as a hint. Try increasing your frequency interval to the entire band, or run a flagger afterwards to cull the UV points at which the solutions blew up due to the RFI presence.

Also do note that you of course need multiple columns to peel multiple sources right? Alternatively you can use ddfacet to make a model and a ds9 regions file created using my auto dde tagger bennahugo/catdagger to predict these models on the fly.

On Sat, 10 Oct 2020, 06:58 Arnab Chakraborty, notifications@github.com wrote:

Hi, I have been trying to peel a few bright sources with dE solution. This is uGMRT 300-500 MHz data set. I identified the bright sources in the FoV and created a model of those sources using wsclean predict mode and write it to DIR1 data column. And then, I construct another model with the whole sky and write it to the model data column.

However, after G,dE solution I got an unexpected amp vs freq jump of the corrected data column. The images before and after 3GC are attached. The parset used for cubical is also attached. Any idea what goes wrong? [image: Screenshot from 2020-10-10 09-05-19] https://user-images.githubusercontent.com/20695190/95646157-36500580-0ae3-11eb-98ed-fefc127c5909.png [image: Screenshot from 2020-10-10 10-22-13] https://user-images.githubusercontent.com/20695190/95646159-37813280-0ae3-11eb-8f50-74fa5902c1ee.png

[data] _Help = Visibility data options ms = column = DATA time-chunk = 80 freq-chunk = 256 rebin-time = 1 rebin-freq = 1 chunk-by = SCAN_NUMBER chunk-by-jump = 1 single-chunk = single-tile = -1 normalize = 0

[sel] _Help = Data selection options field = 0 ddid = None taql = chan = diag = False

[out] _Help = Options for output products dir = peeling name = peeling.cc-out/peeling overwrite = False backup = 1 mode = sr apply-solver-flags = False column = CORRECTED_DATA derotate = None model-column = MODEL_OUT weight-column = reinit-column = False subtract-model = 0 subtract-dirs = 1 correct-dir = 0 plots = 1 casa-gaintables = True

[model] _Help = Calibration model options list = MODEL_DATA+-DIR1_DATA:DIR1_DATA ddes = auto beam-pattern = None beam-l-axis = None beam-m-axis = None feed-rotate = auto pa-rotate = False

[montblanc] _Help = Montblanc simulation options device-type = CPU dtype = double mem-budget = 1024 verbosity = WARNING threads = 0 pa-rotate = None

[weight] _Help = Weighting options column = WEIGHT_SPECTRUM fill-offdiag = False legacy-v1-2 = False

[flags] _Help = General flagging options apply = -cubical auto-init = legacy save = 0 save-legacy = auto reinit-bitflags = False warn-thr = 0.3 see-no-evil = 0

[degridding]

Help = Options for the degridder. Only in use when predicting from DicoModels using DDFacet OverS = 11 Support = 7 Nw = 100 wmax = 0.0 Padding = 1.7 NDegridBand = 16 MaxFacetSize = 0.25 MinNFacetPerAxis = 1 NProcess = 8 BeamModel = None NBand = 0 FITSFile = beam$(corr)_$(reim).fits FITSFeed = None FITSFeedSwap = False DtBeamMin = 5.0 FITSParAngleIncDeg = 5.0 FITSLAxis = -X FITSMAxis = Y FITSVerbosity = 0 FeedAngle = 0.0 FlipVisibilityHands = 0

[postmortem] _Help = Options for "postmortem" flagging based on solution statistics enable = False tf-chisq-median = 1.2 tf-np-median = 0.5 time-density = 0.5 chan-density = 0.5 ddid-density = 0.5

[madmax] _Help = Options for the "Mad Max" flagger enable = 1 residuals = 0 estimate = corr diag = True offdiag = True threshold = 10 global-threshold = 12 plot = 1 plot-frac-above = 0.01 plot-bl = flag-ant = 0 flag-ant-thr = 5

[sol] _Help = Solution options which apply at the solver level jones = G,DE precision = 32 delta-g = 1e-06 delta-chi = 1e-06 chi-int = 5 last-rites = True stall-quorum = 0.99 term-iters = 50,90 flag-divergence = 0 min-bl = 200.0 max-bl = 0 subset =

[bbc]

Help = Options for baseline-based corrections (a.k.a. BBCs, a.k.a. interferometer gains). load-from = compute-2x2 = False apply-2x2 = False save-to = {out[name]}-BBC-field{sel[field]}-ddid_{sel[ddid]}.parmdb per-chan = True plot = True

[dist] _Help = Parallelization and distribution options ncpu = 32 nworker = 0 nthread = 0 max-chunks = 8 min-chunks = 0 pin = 0 pin-io = False pin-main = io safe = True

[log] _Help = Options related to logging memory = True stats = chi2:.3f stats-warn = chi2:10 boring = True append = False verbose = 0 file-verbose = None

[debug] _Help = Debugging options for the discerning masochist pdb = False panic-amplitude = 0.0 stop-before-solver = False escalate-warnings = 0

[misc] _Help = Miscellaneous options random-seed = None parset-version = 0.1

[g]

Help = Options for G-Jones term label = G solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 0 fix-dirs = update-type = full estimate-pzd = False time-int = 30 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.1 clip-high = 10 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

[de]

Help = Options for G-Jones term label = dE solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 1 fix-dirs = 0 update-type = full estimate-pzd = False time-int = 80 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.0 clip-high = 1000000 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ratt-ru/CubiCal/issues/411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4RE6T4FCIJ3YZXLMXKMD3SJ7SWRANCNFSM4SKZ3CCQ .

bennahugo commented 4 years ago

See https://github.com/ska-sa/vermeerkat/blob/5a1ed70ac401e8267b3407c2c92b77c3649df15a/vermeerkat/plugins/INTROSPECT/image.py#L513 for an example on how to use

On Sat, 10 Oct 2020, 10:22 Benna Hugo, bennahugo@gmail.com wrote:

It is also worth plotting the quotient to see how well your model fits the data.

On Sat, 10 Oct 2020, 10:21 Benna Hugo, bennahugo@gmail.com wrote:

It is likely due to the very large left over RFI. Look at the divergent chi^2 as a hint. Try increasing your frequency interval to the entire band, or run a flagger afterwards to cull the UV points at which the solutions blew up due to the RFI presence.

Also do note that you of course need multiple columns to peel multiple sources right? Alternatively you can use ddfacet to make a model and a ds9 regions file created using my auto dde tagger bennahugo/catdagger to predict these models on the fly.

On Sat, 10 Oct 2020, 06:58 Arnab Chakraborty, notifications@github.com wrote:

Hi, I have been trying to peel a few bright sources with dE solution. This is uGMRT 300-500 MHz data set. I identified the bright sources in the FoV and created a model of those sources using wsclean predict mode and write it to DIR1 data column. And then, I construct another model with the whole sky and write it to the model data column.

However, after G,dE solution I got an unexpected amp vs freq jump of the corrected data column. The images before and after 3GC are attached. The parset used for cubical is also attached. Any idea what goes wrong? [image: Screenshot from 2020-10-10 09-05-19] https://user-images.githubusercontent.com/20695190/95646157-36500580-0ae3-11eb-98ed-fefc127c5909.png [image: Screenshot from 2020-10-10 10-22-13] https://user-images.githubusercontent.com/20695190/95646159-37813280-0ae3-11eb-8f50-74fa5902c1ee.png

[data] _Help = Visibility data options ms = column = DATA time-chunk = 80 freq-chunk = 256 rebin-time = 1 rebin-freq = 1 chunk-by = SCAN_NUMBER chunk-by-jump = 1 single-chunk = single-tile = -1 normalize = 0

[sel] _Help = Data selection options field = 0 ddid = None taql = chan = diag = False

[out] _Help = Options for output products dir = peeling name = peeling.cc-out/peeling overwrite = False backup = 1 mode = sr apply-solver-flags = False column = CORRECTED_DATA derotate = None model-column = MODEL_OUT weight-column = reinit-column = False subtract-model = 0 subtract-dirs = 1 correct-dir = 0 plots = 1 casa-gaintables = True

[model] _Help = Calibration model options list = MODEL_DATA+-DIR1_DATA:DIR1_DATA ddes = auto beam-pattern = None beam-l-axis = None beam-m-axis = None feed-rotate = auto pa-rotate = False

[montblanc] _Help = Montblanc simulation options device-type = CPU dtype = double mem-budget = 1024 verbosity = WARNING threads = 0 pa-rotate = None

[weight] _Help = Weighting options column = WEIGHT_SPECTRUM fill-offdiag = False legacy-v1-2 = False

[flags] _Help = General flagging options apply = -cubical auto-init = legacy save = 0 save-legacy = auto reinit-bitflags = False warn-thr = 0.3 see-no-evil = 0

[degridding]

Help = Options for the degridder. Only in use when predicting from DicoModels using DDFacet OverS = 11 Support = 7 Nw = 100 wmax = 0.0 Padding = 1.7 NDegridBand = 16 MaxFacetSize = 0.25 MinNFacetPerAxis = 1 NProcess = 8 BeamModel = None NBand = 0 FITSFile = beam$(corr)_$(reim).fits FITSFeed = None FITSFeedSwap = False DtBeamMin = 5.0 FITSParAngleIncDeg = 5.0 FITSLAxis = -X FITSMAxis = Y FITSVerbosity = 0 FeedAngle = 0.0 FlipVisibilityHands = 0

[postmortem] _Help = Options for "postmortem" flagging based on solution statistics enable = False tf-chisq-median = 1.2 tf-np-median = 0.5 time-density = 0.5 chan-density = 0.5 ddid-density = 0.5

[madmax] _Help = Options for the "Mad Max" flagger enable = 1 residuals = 0 estimate = corr diag = True offdiag = True threshold = 10 global-threshold = 12 plot = 1 plot-frac-above = 0.01 plot-bl = flag-ant = 0 flag-ant-thr = 5

[sol] _Help = Solution options which apply at the solver level jones = G,DE precision = 32 delta-g = 1e-06 delta-chi = 1e-06 chi-int = 5 last-rites = True stall-quorum = 0.99 term-iters = 50,90 flag-divergence = 0 min-bl = 200.0 max-bl = 0 subset =

[bbc]

Help = Options for baseline-based corrections (a.k.a. BBCs, a.k.a. interferometer gains). load-from = compute-2x2 = False apply-2x2 = False save-to = {out[name]}-BBC-field{sel[field]}-ddid_{sel[ddid]}.parmdb per-chan = True plot = True

[dist] _Help = Parallelization and distribution options ncpu = 32 nworker = 0 nthread = 0 max-chunks = 8 min-chunks = 0 pin = 0 pin-io = False pin-main = io safe = True

[log] _Help = Options related to logging memory = True stats = chi2:.3f stats-warn = chi2:10 boring = True append = False verbose = 0 file-verbose = None

[debug] _Help = Debugging options for the discerning masochist pdb = False panic-amplitude = 0.0 stop-before-solver = False escalate-warnings = 0

[misc] _Help = Miscellaneous options random-seed = None parset-version = 0.1

[g]

Help = Options for G-Jones term label = G solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 0 fix-dirs = update-type = full estimate-pzd = False time-int = 30 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.1 clip-high = 10 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

[de]

Help = Options for G-Jones term label = dE solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 1 fix-dirs = 0 update-type = full estimate-pzd = False time-int = 80 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.0 clip-high = 1000000 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ratt-ru/CubiCal/issues/411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4RE6T4FCIJ3YZXLMXKMD3SJ7SWRANCNFSM4SKZ3CCQ .

IanHeywood commented 4 years ago

From the parset it looks like this is based on this recipe, which is set up to peel a single dominant problem source. So echoing what @bennahugo said, if you've got several DDE-limited problem sources in a single model column then there's going to be tension in the solution and this won't work very well. I'd also try a facet-based scheme for this.

I also dial back CubiCal's ability to flag the data somewhat, mainly by having that extremely high clip-high parameter on the dE term. The downside of this is that data have to be relatively clean and the model has to be a good match to begin with. Going from 10 Jy to 200 kJy suggests this might not be the case.

Not also that the above parset operates on the DATA column, so if you have done rounds of self-cal and your intention was to use the resulting CORRECTED_DATA column as the starting point then there'll be some shuffling required.

To add to Ben's suggestions, you could also try plotting the solutions: https://github.com/ratt-ru/CubiCal/tree/master/cubical/bin

Arnab-half-blood-prince commented 4 years ago

@bennahugo Thanks for pointing this out. Yes, I think this is mainly due to RFI. I have checked catdagger. I was not aware of the fact that for each dE source there needs to be a separate model column. I will work on this.

@IanHeywood Thanks for pointing this out. Yes, I was following your oxkat recipes. Although that is tuned for MeerKat, I am trying to modify it for uGMRT. I copied the corrected data to data column after the last selfcal and then started working on that. I will check regarding a more improved model and mitigating RFI and try to solve the DD issues.

bennahugo commented 4 years ago

Also I won't put a UV cutoff on a target field if there is any extended flux in the field. I've seen cases where this introduce massive flux suppression

On Sat, 10 Oct 2020, 10:21 Benna Hugo, bennahugo@gmail.com wrote:

It is likely due to the very large left over RFI. Look at the divergent chi^2 as a hint. Try increasing your frequency interval to the entire band, or run a flagger afterwards to cull the UV points at which the solutions blew up due to the RFI presence.

Also do note that you of course need multiple columns to peel multiple sources right? Alternatively you can use ddfacet to make a model and a ds9 regions file created using my auto dde tagger bennahugo/catdagger to predict these models on the fly.

On Sat, 10 Oct 2020, 06:58 Arnab Chakraborty, notifications@github.com wrote:

Hi, I have been trying to peel a few bright sources with dE solution. This is uGMRT 300-500 MHz data set. I identified the bright sources in the FoV and created a model of those sources using wsclean predict mode and write it to DIR1 data column. And then, I construct another model with the whole sky and write it to the model data column.

However, after G,dE solution I got an unexpected amp vs freq jump of the corrected data column. The images before and after 3GC are attached. The parset used for cubical is also attached. Any idea what goes wrong? [image: Screenshot from 2020-10-10 09-05-19] https://user-images.githubusercontent.com/20695190/95646157-36500580-0ae3-11eb-98ed-fefc127c5909.png [image: Screenshot from 2020-10-10 10-22-13] https://user-images.githubusercontent.com/20695190/95646159-37813280-0ae3-11eb-8f50-74fa5902c1ee.png

[data] _Help = Visibility data options ms = column = DATA time-chunk = 80 freq-chunk = 256 rebin-time = 1 rebin-freq = 1 chunk-by = SCAN_NUMBER chunk-by-jump = 1 single-chunk = single-tile = -1 normalize = 0

[sel] _Help = Data selection options field = 0 ddid = None taql = chan = diag = False

[out] _Help = Options for output products dir = peeling name = peeling.cc-out/peeling overwrite = False backup = 1 mode = sr apply-solver-flags = False column = CORRECTED_DATA derotate = None model-column = MODEL_OUT weight-column = reinit-column = False subtract-model = 0 subtract-dirs = 1 correct-dir = 0 plots = 1 casa-gaintables = True

[model] _Help = Calibration model options list = MODEL_DATA+-DIR1_DATA:DIR1_DATA ddes = auto beam-pattern = None beam-l-axis = None beam-m-axis = None feed-rotate = auto pa-rotate = False

[montblanc] _Help = Montblanc simulation options device-type = CPU dtype = double mem-budget = 1024 verbosity = WARNING threads = 0 pa-rotate = None

[weight] _Help = Weighting options column = WEIGHT_SPECTRUM fill-offdiag = False legacy-v1-2 = False

[flags] _Help = General flagging options apply = -cubical auto-init = legacy save = 0 save-legacy = auto reinit-bitflags = False warn-thr = 0.3 see-no-evil = 0

[degridding]

Help = Options for the degridder. Only in use when predicting from DicoModels using DDFacet OverS = 11 Support = 7 Nw = 100 wmax = 0.0 Padding = 1.7 NDegridBand = 16 MaxFacetSize = 0.25 MinNFacetPerAxis = 1 NProcess = 8 BeamModel = None NBand = 0 FITSFile = beam$(corr)_$(reim).fits FITSFeed = None FITSFeedSwap = False DtBeamMin = 5.0 FITSParAngleIncDeg = 5.0 FITSLAxis = -X FITSMAxis = Y FITSVerbosity = 0 FeedAngle = 0.0 FlipVisibilityHands = 0

[postmortem] _Help = Options for "postmortem" flagging based on solution statistics enable = False tf-chisq-median = 1.2 tf-np-median = 0.5 time-density = 0.5 chan-density = 0.5 ddid-density = 0.5

[madmax] _Help = Options for the "Mad Max" flagger enable = 1 residuals = 0 estimate = corr diag = True offdiag = True threshold = 10 global-threshold = 12 plot = 1 plot-frac-above = 0.01 plot-bl = flag-ant = 0 flag-ant-thr = 5

[sol] _Help = Solution options which apply at the solver level jones = G,DE precision = 32 delta-g = 1e-06 delta-chi = 1e-06 chi-int = 5 last-rites = True stall-quorum = 0.99 term-iters = 50,90 flag-divergence = 0 min-bl = 200.0 max-bl = 0 subset =

[bbc]

Help = Options for baseline-based corrections (a.k.a. BBCs, a.k.a. interferometer gains). load-from = compute-2x2 = False apply-2x2 = False save-to = {out[name]}-BBC-field{sel[field]}-ddid_{sel[ddid]}.parmdb per-chan = True plot = True

[dist] _Help = Parallelization and distribution options ncpu = 32 nworker = 0 nthread = 0 max-chunks = 8 min-chunks = 0 pin = 0 pin-io = False pin-main = io safe = True

[log] _Help = Options related to logging memory = True stats = chi2:.3f stats-warn = chi2:10 boring = True append = False verbose = 0 file-verbose = None

[debug] _Help = Debugging options for the discerning masochist pdb = False panic-amplitude = 0.0 stop-before-solver = False escalate-warnings = 0

[misc] _Help = Miscellaneous options random-seed = None parset-version = 0.1

[g]

Help = Options for G-Jones term label = G solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 0 fix-dirs = update-type = full estimate-pzd = False time-int = 30 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.1 clip-high = 10 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

[de]

Help = Options for G-Jones term label = dE solvable = 1 type = complex-2x2 delay-estimate-pad-factor = 8 load-from = xfer-from = save-to = {out[name]}-{JONES}-field{sel[field]}-ddid_{sel[ddid]}.parmdb dd-term = 1 fix-dirs = 0 update-type = full estimate-pzd = False time-int = 80 freq-int = 256 max-prior-error = 0.5 max-post-error = 0.5 low-snr-warn = 75 high-gain-var-warn = 30 clip-low = 0.0 clip-high = 1000000 clip-after = 5 max-iter = 50 pin-slope-iters = 0 epsilon = 1e-06 delta-chi = 1e-06 conv-quorum = 0.99 ref-ant = None prop-flags = default diag-only = 0 offdiag-only = False robust-cov = compute robust-scale = 1 robust-npol = 2 robust-int = 1 robust-save-weights = 0 estimate-delays = False _Templated = True

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ratt-ru/CubiCal/issues/411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4RE6T4FCIJ3YZXLMXKMD3SJ7SWRANCNFSM4SKZ3CCQ .

Arnab-half-blood-prince commented 4 years ago

Hi, It is done. dE solution with cubical worked. Also, tested with ddfacet and wsclean. Both working fine and consistent.

I am closing this issue.

o-smirnov commented 4 years ago

It is done. dE solution with cubical worked. Also, tested with ddfacet and wsclean. Both working fine and consistent.

That's what I like to hear! You are welcome to post before and after images. ;)

Arnab-half-blood-prince commented 4 years ago

Yes. It is a mosaic. And there are mainly 3 problematic sources.

DI_and_DD