Commits

Kumar Golap authored 1b0315c8724
Does a psf fitting post psfphasecenter psfmaking
No tags

casatasks/src/private/task_tclean.py

Modified
18 18 if is_CASA6:
19 19 from casatasks import casalog
20 20
21 21 from casatasks.private.imagerhelpers.imager_base import PySynthesisImager
22 22 from casatasks.private.imagerhelpers.input_parameters import saveparams2last
23 23 from casatasks.private.imagerhelpers.imager_parallel_continuum import PyParallelContSynthesisImager
24 24 from casatasks.private.imagerhelpers.imager_parallel_cube import PyParallelCubeSynthesisImager
25 25 from casatasks.private.imagerhelpers.input_parameters import ImagerParameters
26 26 from .cleanhelper import write_tclean_history, get_func_params
27 27 from casatools import table
28 + from casatools import synthesisutils
28 29 from casatools import synthesisimager
29 30 else:
30 31 from taskinit import *
31 32
32 33 from imagerhelpers.imager_base import PySynthesisImager
33 34 from imagerhelpers.imager_parallel_continuum import PyParallelContSynthesisImager
34 35 from imagerhelpers.imager_parallel_cube import PyParallelCubeSynthesisImager
35 36 from imagerhelpers.input_parameters import ImagerParameters
36 37 from imagerhelpers.input_parameters import saveparams2last
37 38 from cleanhelper import write_tclean_history, get_func_params
393 394 psfParamList=ImagerParameters(**psfParameters)
394 395 psfimager=imagerInst(params=psfParamList)
395 396 psfimager.initializeImagers()
396 397 psfimager.setWeighting()
397 398 psfimager.makeImage('psf', psfParameters['imagename']+'.psf')
398 399 psfimager.deleteTools()
399 400 mytb.open(psfname, nomodify=False)
400 401 mytb.putkeyword('imageinfo',iminf)
401 402 mytb.putkeyword('miscinfo',miscinf)
402 403 mytb.done()
404 + mysu=synthesisutils()
405 + mysu.fitPsfBeam(imagename=bparm['imagename'],
406 + nterms=(bparm['nterms'] if deconvolver=="mtmfs" else 1),
407 + psfcutoff=bparm['psfcutoff'])
403 408 imager = PySynthesisImager(params=paramList)
404 409 imager.initializeImagers()
405 410 imager.initializeNormalizers()
406 411 imager.setWeighting()
407 412 ###redo these as we destroyed things for lock issues
408 413 ## Init minor cycle elements
409 414 if niter>0 or restoration==True:
410 415 imager.initializeDeconvolvers()
411 416 if niter>0:
412 417 imager.initializeIterationControl()

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut