Source
988
988
rep_field, rep_spw, baseline, rep_scan, rep_intent, rep_timerange,
989
989
_ephemsrcname, pointingcolumn, antenna_name, antenna_diameter,
990
990
_restfreq, gridfunction, convsupport, truncate, gwidth, jwidth
991
991
)
992
992
993
993
# Set single-dish image's brightness unit (CAS-11503)
994
994
if len(image_unit) == 0:
995
995
image_unit = get_brightness_unit_from_ms(rep_ms)
996
996
if len(image_unit) > 0:
997
997
with open_ia(singledish_image_path) as ia:
998
-
casalog.post(f"Setting single-dish image's brightness unit to '{image_unit}'")
998
+
casalog.post(
999
+
"Setting single-dish image's brightness unit to "
1000
+
f"'{image_unit}'"
1001
+
)
999
1002
ia.setbrightnessunit(image_unit)
1000
1003
1001
1004
# Update single-dish image's mask: mask low weight pixels
1002
1005
weight_image_path = output_path_prefix + weight_suffix
1003
1006
casalog.post("Creating weight image mask")
1004
1007
do_weight_mask(singledish_image_path, weight_image_path, minweight)
1005
1008
1006
1009
# Delete images systematically generated by the Synthesis Imager
1007
1010
# which are either not required or currently useless
1008
1011
# in the context of single-dish imaging