casalog.post("Please check the casa log file for a message confirming that the model was saved after the last major cycle. If it doesn't exist, please re-run tclean with niter=0,calcres=False,calcpsf=False in order to trigger a 'predict model' step that obeys the savemodel parameter.","WARN","task_tclean")
from taskinit import *
import os
import shutil
import numpy
from taskinit import *
import copy
import time;
import pdb
from imagerhelpers.imager_base import PySynthesisImager
from imagerhelpers.imager_parallel_continuum import PyParallelContSynthesisImager
from imagerhelpers.imager_parallel_cube import PyParallelCubeSynthesisImager
from imagerhelpers.input_parameters import ImagerParameters
def tclean(
vis,
selectdata,
field,
spw,
timerange,
uvrange,
antenna,
scan,
observation,
intent,
datacolumn,
imagename,
imsize,
cell,
phasecenter,
stokes,
projection,
startmodel,
specmode,
reffreq,
nchan,
start,
width,
outframe,
veltype,
restfreq,
interpolation,
perchanweightdensity,
gridder,
facets,
psfphasecenter,
chanchunks,
wprojplanes,
vptable,
mosweight,
aterm,
psterm,
wbawp ,
conjbeams ,
cfcache ,
usepointing,
computepastep ,
rotatepastep ,
pointingoffsetsigdev ,
pblimit,
normtype,
deconvolver,
scales,