ACES-CMZ / reduction_ACES

Reduction scripts and tools for ACES
https://worldwidetelescope.org/webclient/?wtml=https://data.rc.ufl.edu/pub/adamginsburg/ACES/mosaics/mosaics.wtml
15 stars 12 forks source link

Discussion of imaging approaches (feather-only vs. joint imaging+feather) #384

Open d-l-walker opened 11 months ago

d-l-walker commented 11 months ago

This issue is to track all relevant discussion related to our approach to obtaining fully combined image cubes. The aim here is to do some tests to get the imaging in the best possible shape, and then determine whether we really need to do the joint imaging, or whether the feather-only approach is good enough.

@d-l-walker will work on some tests to re-do the joint imaging of single channels and sub-cubes with refined masking and deeper cleans to see whether this improves the results.

We should also look into using the TP data as a startmodel for tclean to see whether this improves the results. @d-l-walker will try to look into this too, but feel free to investigate this if you have the time/inclination.

@ashleythomasbarnes has also done some initial tests and comparisons, which will be summarised in a following comment.

d-l-walker commented 11 months ago

Summary of @ashleythomasbarnes's comparisons:

The Brick (field ao, #41) has much more significant negative bowls in the joint 12m/7m + TP feather cube (left) vs. the feathered-only (right). Screenshot 2023-09-28 at 09 40 11

For field i (#138), the joint 12m/7m + TP feather image (right) appears to have more larger scale emission, but also more significant negatives. Screenshot 2023-09-28 at 12 06 23

In the same field, when averaging over an area comparable to the single dish resolution, the fluxes are similar between the two approaches, possibly hinting at the issue being with the joint 12m/7m imaging. Screenshot 2023-09-28 at 12 08 23

Ash testing the following with MOPRA SD data: 1) including the MOPRA data to the cleaned 7m+12m images and it isn’t great, there are still a number of strong negative bowls in the image (hasn’t tested if its better than the TP);

2) increasing the weighting factor of the single dish in feather (attached show MOPRA+7m+12m; factors of 1, 2, 3, 4, and 5). You can see that upping the factor does solve the bowls, but some other artefacts are present (and the flux gets too high).

Screenshot 2023-09-28 at 18 18 12

It was suggested in the WP1 meeting that this should also be tested on the feathered 12m + 7m data, rather that the jointly imaged data.

d-l-walker commented 11 months ago

A quick comparison between the jointly imaged 12m/7m data for field i (left) vs. the residual (right) is shown below for a single channel. This shows that the bulk of the brighter, more compact emission is being cleaned and captured in the mask, but the larger scale emission is not being cleaned well enough. This could be leading to the poor images that we're currently seeing.

As noted in the parent comment, we will try cleaning deeper and relaxing the masking to include this larger scale emission. This will increase the already lengthly cleaning times, so initial tests will be done on single channels/sub cubes.

Screenshot 2023-10-04 at 11 23 31

Averaged spectra of the HNCO image and residual for the field shown above. Screenshot 2023-10-04 at 11 53 53

ashleythomasbarnes commented 5 months ago

Here is my cleaning routine I used for Cloud D+E/F 1mm ALMA data. I wrote this a while ago so apologies its a bit of a mess, but all the functionality we discussed should be there, and modules in the directory...

https://github.com/ashleythomasbarnes/interferometry_analysis/blob/master/casa/cleaning_module.py

d-l-walker commented 1 month ago

Update on joint imaging vs. feathering only

Summary

Single channel comparisons (note the negatives in jointly imaged data at the lower edge in left panel)

Screenshot 2024-07-19 at 09 52 09 Screenshot 2024-07-19 at 09 52 55 Screenshot 2024-07-19 at 09 55 15

Some examples of the final image and residual (+ mask contours) for the joint deconvolution. Looks pretty good!

Screenshot 2024-07-19 at 10 56 33 Screenshot 2024-07-19 at 10 57 59

Integrated intensity

Screenshot 2024-07-19 at 11 39 46

Peak intensity

Screenshot 2024-07-19 at 11 41 08

Mean spectra

Screenshot 2024-07-19 at 13 34 52

Some quick stats

cube min max std sum mean
Sgr_A_st_t.TP_7M_12M_feather_all.hnco43.image.statcont.contsub.fits -0.255 0.278 0.019 715997 0.0024
Sgr_A_st_t.hnco43.deep_clean.relaxed_mask.tp_startmodel.image.pbcor.feather.fits -0.176 0.307 0.017 751702 0.0027
keflavich commented 1 month ago

We probably need to try to quantify 'looks better'. I think there was a proposed statistic in the Plunkett paper (https://ui.adsabs.harvard.edu/abs/2023PASP..135c4501P/abstract), but I'm not sure that's valuable.

I'd like to know what the effective beam size is. That's some combination of 'what does the header say' and what is there in reality...

keflavich commented 1 month ago

Also it'd be interesting to show the difference image (feathered - jointly cleaned)

d-l-walker commented 1 month ago

Sure, I agree. This was just a quick look at some comparisons. I haven't had a chance to look into properly quantifying this yet.

Here's the difference moments (joint - feathered) Screenshot 2024-07-22 at 14 32 11

And feathered-joint since that's what you asked for ;) Screenshot 2024-07-22 at 14 38 14

Restoring beam (joint imaging) = 2.45913" X 2.09486", 74.2558 deg

Restoring beam (feather only) = 2.42612" X 2.06251", 74.1716 deg