Go to the documentation of this file.00001 from casac import casac
00002 from locatescript import copydata
00003
00004 quantity=casac.quanta()
00005 im = casac.imager()
00006 ia = casac.image()
00007
00008 def data():
00009 return ['ic2233_1.ms']
00010
00011 def run(fetch=False) :
00012
00013
00014 if fetch:
00015 for f in data( ):
00016 copydata( f, os.getcwd( ) )
00017
00018 im.open('ic2233_1.ms')
00019 npix=1024
00020 im.selectvis(spw='0', nchan=[6], start=[0], step=[1])
00021 im.defineimage(nx=npix, ny=npix, cellx='3.0arcsec', celly='3.0arcsec', stokes="IV", spw=[0])
00022 im.weight(type='briggs', robust=0.7)
00023 im.setvp(dovp=bool(1), usedefaultvp=bool(1), dosquint=bool(1),
00024 parangleinc='5.0deg')
00025 im.make('squint_corr')
00026 im.clean(algorithm='mfhogbom', niter=1000, model=['squint_corr'], residual=['squint_corr.residual'], image=['squint_corr.restored'], threshold='0Jy')
00027 im.done()
00028 return ['squint_corr.restored']