Tweaked.
Changed INVERT/RESTOR method to always fit beam bmaj,bmin,pa regardless of whether the map is a mosaic or not, because RESTOR was calculating beams that were significantly smaller than the Gaussian-fit synthesized beam size.  Also added FITS-writing at the end.
Added FITS-writing at the end.
Changed INVERT/RESTOR method to always fit beam bmaj,bmin,pa regardless of whether the map is a mosaic or not, because RESTOR was calculating beams that were significantly smaller than the Gaussian-fit synthesized beam size.