Source
xxxxxxxxxx
casalog.post("For specmode='mfs' and deconvolver='mtmfs', the option of pbcor=True divides each restored Taylor coefficient image by the pb.tt0 image. This correction ignores the frequency-dependence of the primary beam and does not correct for PB spectral index. It is scientifically valid only for small fractional bandwidths. For more accurate wideband primary beam correction (if needed), please use one of the following options : (1) specmode='mvc' with gridder='standard' or 'mosaic' with pbcor=True, (2) conjbeams=True and wbawp=True with gridder='awproject' and pbcor=True.",
################################################
# Refactored Clean task
#
# v1.0: 2012.10.05, U.R.V.
#
################################################
import platform
import os
import shutil
import numpy
import copy
import filecmp
import time
import pdb
from casatasks import casalog
from casatasks.private.imagerhelpers.imager_base import PySynthesisImager
from casatasks.private.imagerhelpers.input_parameters import saveparams2last
from casatasks.private.imagerhelpers.imager_parallel_continuum import PyParallelContSynthesisImager
from casatasks.private.imagerhelpers.imager_parallel_cube import PyParallelCubeSynthesisImager
from casatasks.private.imagerhelpers.imager_mtmfs_via_cube import PyMtmfsViaCubeSynthesisImager
from casatasks.private.imagerhelpers.input_parameters import ImagerParameters
from casatasks.private.imagerhelpers.imager_return_dict import ImagingDict
from .cleanhelper import write_tclean_history, get_func_params
from casatools import table
from casatools import image
from casatools import synthesisutils
from casatools import synthesisimager
try:
from casampi.MPIEnvironment import MPIEnvironment
from casampi import MPIInterface
mpi_available = True
except ImportError:
mpi_available = False
# if you want to save tclean.last.* from python call of tclean uncomment the decorator
#@saveparams2last(multibackup=True)
def tclean(
####### Data Selection
vis, # ='',
selectdata,
field, # ='',
spw, # ='',
timerange, # ='',
uvrange, # ='',
antenna, # ='',
scan, # ='',
observation, # ='',
intent, # ='',
datacolumn, # ='corrected',
####### Image definition
imagename, # ='',
imsize, # =[100,100],
cell, # =['1.0arcsec','1.0arcsec'],
phasecenter, # ='J2000 19:59:28.500 +40.44.01.50',
stokes, # ='I',
projection, # ='SIN',
startmodel, # ='',
## Spectral parameters
specmode, # ='mfs',
reffreq, # ='',
nchan, # =1,
start, # ='',
width, # ='',
outframe, # ='LSRK',
veltype, # ='',
restfreq, # =[''],
# sysvel,#='',
# sysvelframe,#='',
interpolation, # ='',
perchanweightdensity, # =''
##
####### Gridding parameters
gridder, # ='ft',
facets, # =1,
psfphasecenter, # ='',
wprojplanes, # =1,
### PB
vptable,
mosweight, # =True
aterm, # =True,
psterm, # =True,
wbawp, # = True,
conjbeams, # = True,
cfcache, # = "",