Replies: 16 comments 28 replies
-
Yes, to the best of my knowledge. I did check the CubiCal code and it should be doing the same thing.
Yes, parameter names not withstanding.
sc mode in CubiCal never subtracts anything, so that may be true. Has CubiCal never given you improvements in the past? This might be why.
I am not sure I follow. The following should be the equivalent:
|
Beta Was this translation helpful? Give feedback.
-
These are comparative results of quartical with cubical using (almost) the same settings: I had to have If I want to replicate this RHS with Quartical I would need to set Cubical has a lot of additional options as compared to Quartical. I have set the main ones to be the same. This includes solvers, sovler types, solution intervals and mad-max settings. Anything else that could influence the results drastically that I missed? |
Beta Was this translation helpful? Give feedback.
-
Thanks for doing these comparisons! Please send/post the following - your
full configs for both CC and QC which produced the above, as well as the
path to your data in an appropriate state (i.e. with flags correct up to
the point that you know them).
…On Mon, 7 Nov 2022, 15:41 Kincaidr, ***@***.***> wrote:
These are comparative results of quartical with cubical using (almost) the
same settings:
[image: image]
<https://user-images.githubusercontent.com/53697426/200320688-bad23f8c-2cce-419b-9127-4e3dee6bd67f.png>
I had to have --k-update-type phase-diag for Cubical to match k.type phase
in Quartical since a dd solve in Cubical by default mean's both terms have
to be complex-2x2.
As you can see, the over-subtraction is not as bad in cubical as what I
was getting with Quartical. It gets better when I keep the phase term as
complex ( --k-update-type full ):
[image: image]
<https://user-images.githubusercontent.com/53697426/200321461-3cb7e9af-7772-48af-b93d-8bf1b14be041.png>
If I want to replicate this RHS with Quartical I would need to set k.type
complex; if I do I get this messs:
[image: image]
<https://user-images.githubusercontent.com/53697426/200322404-da9c1a99-5e01-4a29-88d1-6bb6017874f9.png>
Cubical has a lot of additional options as compared to Quartical. I have
set the main ones to be the same. This includes solvers, sovler types,
solution intervals and mad-max settings. Anything else that could influence
the results drastically that I missed?
—
Reply to this email directly, view it on GitHub
<#204 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSHDWLD5TZFJZM37SCJFQTWHEBJHANCNFSM6AAAAAAQV4S3Q4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Great! Note that the QC madmax may have been catastrophically overflagging
(which could explain the mess you saw). As a rule, run goquartical-summary
before and after runs just to check that flag percentages remain sensible.
That would be my first suspect, but I can try and take a look this week.
…On Mon, 7 Nov 2022, 15:56 Kincaidr, ***@***.***> wrote:
Quartical:
goquartical input_ms.path=Abell3376_timechannel_t11_c4.ms input_ms.data_column=DATA input_ms.weight_column=WEIGHT_SPECTRUM input_ms.time_chunk=128 input_ms.freq_chunk=0 input_ms.is_bda=False input_ms.group_by=['SCAN_NUMBER','FIELD_ID','DATA_DESC_ID'] input_ms.select_uv_range=[0.0,0.0] input_model.recipe=MODEL_DATA~DIR1_DATA~DIR2_DATA~DIR3_DATA:DIR1_DATA:DIR2_DATA:DIR3_DATA input_model.beam_l_axis=X input_model.beam_m_axis=Y input_model.invert_uvw=True input_model.source_chunks=500 input_model.apply_p_jones=True output.gain_directory=gains.qc output.log_directory=logs.qc output.overwrite=True output.products=['corrected_data','corrected_residual'] output.columns=['CORRECTED_DATA','CORRECTED_RESIDUAL'] output.flags=True output.apply_p_jones_inv=True output.subtract_directions=[1,2,3] mad_flags.enable=False mad_flags.threshold_bl=5.0 mad_flags.threshold_global=5.0 mad_flags.max_deviation=5.0 solver.terms=['K','de'] solver.iter_recipe=[100,50] solver.propagate_flags=True solver.robust=False solver.threads=1 solver.convergence_fraction=0.99 solver.convergence_criteria=1e-06 solver.reference_antenna=0 dask.workers=1 dask.scheduler=threads K.type=complex K.solve_per=antenna K.direction_dependent=False K.time_interval=8 K.freq_interval=0 K.interp_mode=reim K.interp_method=2dlinear K.respect_scan_boundaries=True K.initial_estimate=False de.type=complex de.solve_per=antenna de.direction_dependent=False de.time_interval=10 de.freq_interval=64 de.interp_mode=reim de.interp_method=2dlinear de.respect_scan_boundaries=True de.initial_estimate=True
Cubical:
gocubical cc-parsets/solve-kde.parset --data-ms Abell3376_timechannel_t11_c4.ms --data-time-chunk 10 --dist-max-chunks 4 --dist-ncpu 5 --dist-nthread 0 --data-freq-chunk 32 --model-list MODEL_DATA+-DIR1_DATA+-DIR2_DATA+-DIR3_DATA:DIR1_DATA:DIR2_DATA:DIR3_DATA --sol-jones K,de --sol-term-iters 100,50 --k-type complex-2x2 --k-time-int 4 --k-update-type phase-diag --k-freq-int 0 --out-column CORRECTED_RESIDUAL --out-mode sr --out-dir obs1lb/solve1-kde --out-subtract-dirs 1,2,3 --debug-pdb False --dist-safe 0 --dist-nworker 0
Cubical parset file also used:
solve-kde.txt
<https://github.com/ratt-ru/QuartiCal/files/9952212/solve-kde.txt>
Ill reset the flags now. Data is on crosby at:
/home/kincaid/xova_analyses_new_timechannel/xova_timechannel
—
Reply to this email directly, view it on GitHub
<#204 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSHDWL25NFKBOMSLFE7I3DWHEC7VANCNFSM6AAAAAAQV4S3Q4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Mmm yea it is a bit trigger happy it seems, but it should not oversubtract
like that.
I wonder if it is not worth plotting the dE gain terms to see if there are
an amplitude issue in the way the model is being applied, or if we should
not write out a model out column and compare directly to the addition of
models 1 through 3?
…On Mon, 07 Nov 2022, 18:07 Kincaidr, ***@***.***> wrote:
Don't think it was this. It went from 40% flagging to 60%
—
Reply to this email directly, view it on GitHub
<#204 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4RE6RS4AAABSQO2NOBKSLWHESMRANCNFSM6AAAAAAQV4S3Q4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am going to list my current findings here, which will hopefully help us figure out what is going on:
I have attached a CC and a QC config below. The CC config should be consistent with the results you presented above, and I have crafted a QC config to match. Note that these configs can be further improved but I wanted to keep them as close to what you already had as possible. Hopefully this can help us track down the source of the problems. cc-solve-kde.parset.txt I cannot stress enough that the inputs into QC and CC need to be identical for us to be able to draw meaningful conclusions. |
Beta Was this translation helpful? Give feedback.
-
Regarding (2), you can also use wsclean's |
Beta Was this translation helpful? Give feedback.
-
If you are on a Rhodes box you will need to SSH with -XC. Then rfigui
path/to/ms. Then you can just play around in the gui.
…On Fri, 11 Nov 2022, 18:04 Kincaidr, ***@***.***> wrote:
Could you provide me with the rfigui command you used? I usually use
surfvis for this.
—
Reply to this email directly, view it on GitHub
<#204 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSHDWOTGFMHFEXTUEUWJP3WHZVAVANCNFSM6AAAAAAQV4S3Q4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ok I would suggest we look at the flagging in more detail as a second step
- afterall the cubical images look really good, so if we can reproduce them
with quartical it is good enough as a result already - any snr boost on top
of that is a bonus. I agree the flagging is a bit heavy on the short
spacings, but I'm not sure what was used (and what configurations applied)
to flag the data.
…On Fri, 11 Nov 2022, 18:07 JSKenyon, ***@***.***> wrote:
If you are on a Rhodes box you will need to SSH with -XC. Then rfigui
path/to/ms. Then you can just play around in the gui.
On Fri, 11 Nov 2022, 18:04 Kincaidr, ***@***.***> wrote:
> Could you provide me with the rfigui command you used? I usually use
> surfvis for this.
>
> —
> Reply to this email directly, view it on GitHub
> <
#204 (reply in thread)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABSHDWOTGFMHFEXTUEUWJP3WHZVAVANCNFSM6AAAAAAQV4S3Q4
>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#204 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4RE6VMFBLA56LZAADN6CDWHZVN5ANCNFSM6AAAAAAQV4S3Q4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
New results looking good, no over-subtraction now: Last 2 images: Comparison of the new 3GC image with the older over-subtracted problematic one. Will try this for bda now. |
Beta Was this translation helpful? Give feedback.
-
Very good. Please note Ian's issue. You may need to up the number of w
layers.
Jon also pointed out ghost sources which is there in the 1gc maps. I think
we may need to increase the padding factor to 2.0 in the final recipe
…On Thu, 17 Nov 2022, 20:47 Kincaidr, ***@***.***> wrote:
New results looking good, no over-subtraction now:
[image: image]
<https://user-images.githubusercontent.com/53697426/202531648-7a90d28e-6008-466c-bcb9-e138320a22bb.png>
Last 2 images: Comparison of the new 3GC image with the older
over-subtracted problematic one.
Will try this for bda now.
—
Reply to this email directly, view it on GitHub
<#204 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4RE6UOCFIHA5VSKPMBR5LWIZ4VNANCNFSM6AAAAAAQV4S3Q4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yup as discussed I think QC should bomb out if you have a multi dimensional
model cube with no dEs - with a switch to plough on ahead if the user so
desires. I didn't realise it was not solving for dE terms from the
parameters.
…On Fri, 18 Nov 2022, 08:28 JSKenyon, ***@***.***> wrote:
Those look much better @Kincaidr <https://github.com/Kincaidr>! I have
actually been playing around with your recipe on my end, trying to
understand why you needed to use phase in QC but f-slope in CC. Turns out
the reason is #215 <#215>.
Setting input_model.apply_p_jones=false and output.apply_p_jones_inv=false
will make QC delay and CC f-slope give pretty much indistinguishable
results. Regardless, great work on your end - I am glad that things are
beginning to make sense again!
—
Reply to this email directly, view it on GitHub
<#204 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4RE6RKDPQIBHEWK7WH4VTWI4OX5ANCNFSM6AAAAAAQV4S3Q4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I don't think any of those parameters have any effect when using the wgridder in wsclean because it computes them based on the desired accuracy (which is hardcoded to 1e-4 if I am not mistaken) |
Beta Was this translation helpful? Give feedback.
-
Ah good point. You may need to swap back to the old gridder to get better
accuracy if that tolerance can't be set externally
…On Fri, 18 Nov 2022, 12:00 Landman Bester, ***@***.***> wrote:
Yes I used the w-gridder for these imaging runs and padding: 1.3.
Regarding the w-layer issue, I should then probably include
nwlayers_factor. I can try see what nwlayers_factor: 12 does, what do you
think?
I don't think any of those parameters have any effect when using the
wgridder in wsclean because it computes them based on the desired accuracy
(which is hardcoded to 1e-4 if I am not mistaken)
—
Reply to this email directly, view it on GitHub
<#204 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4RE6V3LISR25FX7NSCV2TWI5HVFANCNFSM6AAAAAAQV4S3Q4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Good to know. Last I used wsclean it was hardcoded |
Beta Was this translation helpful? Give feedback.
-
Cubical run now, results almost identical (see last 2 images): Just regarding what you said earlier:
So yes, for the 2GC part. I used the |
Beta Was this translation helpful? Give feedback.
-
I am currently doing this comparison and need to confirm some things.
1.) Output products.
On the Quarti support group space on hangouts, a discussion between the output quartical products were made. Ian and John agreed on:
CORRECTED_DATA (output from
output.columns: [corrected_data]
) should contain K-corrected visibilities that correspond to the original sky, except for the DIR1 source which has been dE calibrated and subtracted. This is for the case where you might want to proceed onto addition DDE calibration steps with extra rounds of deconvolution to get the benefit of having the problem source removed.CORRECTED_RESIDUALS should contain visibilities that are K corrected, and have dE-corrected DIR1 removed, but additionally the entire sky model is subtracted from the visibilities. This is for cases when we just want to subtract the all the original sources as cleanly as possible, for example to rephase and image the Sun. No additional deconvolution takes place for the original field centre, and we do not need an extra step that subtracts the field sources from the data.
output.products: [corrected_data, corrected_residual]
in quartical corresponds toout_mode: sc
andout_mode: sr
in Cubical. I want to ask if the above explanation of output products also apply to Cubical? I've never set thisout_mode
parameter when using Cubical for DDE calibration before and therefore it was always onout_mode: sc
by default. Therefore, if it is the same as the above, then I was never subtracting my sources?2.) Solver types.
When combining terms in cubical i can only set them to complex like:
In quartical i have got this:
How much of a difference would this make?
Beta Was this translation helpful? Give feedback.
All reactions