Skip to content

Commit

Permalink
Update the uv-overlap scripts; still finding a ~0.6 NOEMA/30-m ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
e-koch committed Sep 10, 2018
1 parent 38f3fc9 commit e3c32fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions imaging/line_postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
9 changes: 6 additions & 3 deletions imaging/uv_overlap_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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.

Expand Down

0 comments on commit e3c32fb

Please sign in to comment.