From e3c32fbaf883e865834505009043ceeaa2e89257 Mon Sep 17 00:00:00 2001 From: e-koch Date: Mon, 10 Sep 2018 15:15:59 -0600 Subject: [PATCH] Update the uv-overlap scripts; still finding a ~0.6 NOEMA/30-m ratio --- imaging/line_postprocess.py | 6 +++--- imaging/uv_overlap_comparison.py | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/imaging/line_postprocess.py b/imaging/line_postprocess.py index 02210d6..e9234aa 100644 --- a/imaging/line_postprocess.py +++ b/imaging/line_postprocess.py @@ -11,10 +11,10 @@ from paths import noema_data_path, iram_data_path # Load the cube -cube = SpectralCube.read(noema_data_path("M33-ARM05.image.pbcor.fits")) +cube = SpectralCube.read(noema_data_path("M33-ARM05_yclean.tc_final.image.pbcor.K.fits")) # Need to convolve to a common beam -com_beam = cube.beams.common_beam() +com_beam = cube.beams.common_beam(epsilon=8e-4) cube = cube.convolve_to(com_beam) # And the IRAM cube @@ -35,5 +35,5 @@ interp_cube = smcube.spectral_interpolate(iram_cube.spectral_axis, suppress_smooth_warning=True) -interp_cube.write(noema_data_path('M33-ARM26.image.pbcor.fits', +interp_cube.write(noema_data_path('M33-ARM05_yclean.tc_final.image.pbcor.K.26regrid.fits', no_check=True)) diff --git a/imaging/uv_overlap_comparison.py b/imaging/uv_overlap_comparison.py index 157cb9f..5fa4310 100644 --- a/imaging/uv_overlap_comparison.py +++ b/imaging/uv_overlap_comparison.py @@ -27,12 +27,13 @@ if not os.path.exists(figure_folder): os.mkdir(figure_folder) -noema_cube = SpectralCube.read(noema_data_path('M33-ARM26.image.pbcor.fits')) +noema_cube = SpectralCube.read(noema_data_path('M33-ARM05_yclean.tc_final.image.pbcor.K.26regrid.fits')) + iram_cube = SpectralCube.read(iram_matched_data_path("m33.co21_iram.noema_regrid.spatial.fits")) # Also need the pb map. It is constant across the channels so grab the first # channel -noema_pb = SpectralCube.read(noema_data_path('M33-ARM05.pb.fits'))[0] +noema_pb = SpectralCube.read(noema_data_path('yclean_05/M33-ARM05_yclean.tc_final.pb.fits'))[0] # Define a mask that will be used to smoothly taper the IRAM data near the # map edges. Otherwise the comparison is dominated by ringing in the Fourier @@ -50,6 +51,8 @@ # Smallest baseline in the NOEMA data is min_baseline = 15.32 * u.m LAS = ((co21_freq.to(u.m, u.spectral()) / min_baseline) * u.rad).to(u.deg) +# About 17.5". The resolution of the 30-m data is 12", so there isn't +# much overlap. # Only compare channels with signal in them good_chans = slice(11, 26) @@ -76,7 +79,7 @@ plt.close() print("{0}+/-{1}".format(sfact, sfact_stderr)) -# 0.556870076298+/-0.0181629468365 +# 0.597+/-0.019 # There's a large discrepancy between the data sets. # The IRAM data appear to have twice the flux of NOEMA in the overlap region.