Example
- imgr.setoptions(cache=10000000, tile=32, gridfunction='BOX',
location=dm.location('vla'))
The above example is to tell imager to use memory to fit 10000000
complex numbers and tile the image with tiles of 32 pixels on a side.
Also it tells imager to use a box function as gridding function. The
location parameter will make imager overide the position of the
telescope to use (the default is the one it gets from the ms).
myim:=imager('n1333.ms')
myim.setdata(fieldid=[2:6, 8:12], spwid=[1:2])
myim.setimage(nx=800, ny=800, cellx='0.5arcsec', celly='0.5arcsec', mode='velocity', nchan=30, mstart='-10km/s', mstep='1.8km/s', spwid=[1,2],fieldid=3)
myim.setoptions(ftmachine='mosaic')
myim.setvp(dovp=T)
myim.setoptions(ftmachine='mosaic')
myim.clean(algorithm='mfclark', model='try1', niter=200)
In the above example we are making a mosaic using the fields
2,3,4,5,6,8,9,10,11,12 and we use the mosaic ftmachine. This uses the
primary beam of the telescope as the gridding function.
pim:=imager('coma.ms')
pim.setdata(spwid=1, fieldid=1);
mydir:=dm.direction('J2000', '12h30m48', '12d24m0')
pim.setimage(nx=200, ny=200, cellx='30arcsec', celly='30arcsec', doshift=T, phasecenter=mydir);
pim.make('outlier1');
pim.setimage(nx=1800, ny=1800, cellx='30arcsec',celly='30arcsec',facets=1);
pim.setoptions(ftmachine='wproject',wprojplanes=512, padding=1.0)
pim.make('main')
pim.clean(algorithm='mfclark',model=['main', 'outlier1'], niter=10000)
pim.done()
In the above example we are using the Wprojection algorithm for 3-D
imaging. We are using 512 gridding functions. Sometimes if there is a
memory issue (very large images and many griding functions) we suggest
the use of facetting of the image with wprojection. So the example
above would be something like below. Note that when using facets only
the wfclark and wfhogbom can be used for now. Note on how
an outlier field (or flanking) field is set on an interfering source
outside of the field of interest.
pim:=imager('coma.ms')
pim.setdata(spwid=1, fieldid=1);
mydir:=dm.direction('J2000', '12h30m48', '12d24m0')
pim.setimage(nx=200, ny=200, cellx='30arcsec', celly='30arcsec', doshift=T, phasecenter=mydir);
pim.make('outlier1');
pim.setimage(nx=3000, ny=3000, cellx='30arcsec',celly='30arcsec',facets=3);
pim.setoptions(ftmachine='wproject',wprojplanes=200, padding=1.2)
pim.make('main')
pim.clean(algorithm='wfclark',model=['main', 'outlier1'], niter=10000)
pim.done()
Next: imager.setscales - Function
Up: imager - Tool
Previous: imager.setmfcontrol - Function
 
Contents
 
Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2006-10-15