You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dirty images created from Rascil and OSKAR are scaled differently. Rascil output pixel values that are 10x higher. We need to investigate where this comes from.
How to reproduce
# To keep this demo small, we assume that the visibility is calculated elsewhere
# We need to set both parameters because Rascil needs measurement set
# Note: Visibility.read_from_file() doesn't work because it tries to read measurement set from
# random temp folder, which is empty at this time.
visibility = Visibility(vis_path="visibility.vis", ms_file_path="measurements.MS")
image_npixel = 4096
cellsize = 5e-6 # FOV / image_npixel
# Get OSKAR and Rascil imagers
oskar_imager = OskarDirtyImager(
OskarDirtyImagerConfig(
imaging_npixel=image_npixel,
imaging_cellsize=cellsize,
combine_across_frequencies=True,
)
)
rascil_imager = RascilDirtyImager(
RascilDirtyImagerConfig(
imaging_npixel=image_npixel,
imaging_cellsize=cellsize,
combine_across_frequencies=True,
)
)
# Calculate dirty images with the imagers
oskar_dirty_image = oskar_imager.create_dirty_image(vis)
oskar_dirty_image.plot(
title="OSKAR dirty image",
filename="oskar_dirty_image.png"
)
rascil_dirty_image = rascil_imager.create_dirty_image(vis.ms_file_path)
rascil_dirty_image.plot(
title="Rascil dirty image",
filename="rascil_dirty_image.png"
)
The text was updated successfully, but these errors were encountered:
Summary
Dirty images created from Rascil and OSKAR are scaled differently. Rascil output pixel values that are 10x higher. We need to investigate where this comes from.
How to reproduce
The text was updated successfully, but these errors were encountered: