@@ -0,0 +1,786 @@
+%0A%0Aimport sys%0A%0Afrom casa_tools import myclean%0A%0A'''%0ACleans an MS with a single channel given a mask and a model%0A'''%0A%0Avis = sys.argv%5B-3%5D%0Amodel = sys.argv%5B-2%5D%0Amask = sys.argv%5B-1%5D%0A%0Aif model == %22None%22:%0A    model = None%0Aif mask == %22None%22:%0A    mask = None%0A%0Aout_root = vis%5B:-3%5D%0A%0Amyclean(vis=vis, imagename=out_root+'.clean', field='M33*',%0A        restfreq='1420.40575177MHz',%0A        mode='channel', width=1, nchan=1, start=1,%0A        cell='3arcsec', multiscale=%5B0, 4, 8, 20, 40, 80%5D,%0A        threshold='5.0mJy/beam', imagermode='mosaic', gain=0.1,%0A        imsize=%5B2560, 2560%5D, weighting='natural', robust=0.0, niter=50000,%0A        pbcor=False, interpolation='linear', usescratch=True,%0A        phasecenter='J2000 01h33m50.904 +30d39m35.79', veltype='radio',%0A        modelimage=model, mask=mask)%0A

Clean command