ism3d.uvhelper.imager.invert

ism3d.uvhelper.imager.invert(vis='', imagename='', datacolumn='data', antenna='', weighting='briggs', robust=1.0, npixels=0, cell=0.04, imsize=[128, 128], phasecenter='', specmode='cube', start='', width='', nchan=- 1, perchanweightdensity=True, restoringbeam='', onlydm=False, pbmask=0, pblimit=0, exclude_list=['residual', 'residual.tt0', 'residual.tt1', 'sumwt', 'sumwt.tt0', 'sumwt.tt1', 'sumwt.tt2', 'model', 'model.tt0', 'model.tt1'], **kwargs)[source]

Generate a compact dirty image from a MS dataset as a quick imaging snapshot;

Note about the default setting:

  • restoringbeam=’’ to preserve the original dirty beam shape: if “common” then additional undesired convolution will happen

  • Another faster way to do this would be using the toolkits: imager.open(‘3C273XC1.MS’) imager.defineimage(nx=256, ny=256, cellx=’0.7arcsec’, celly=’0.7arcsec’) imager.image(type=’corrected’, image=’3C273XC1.dirty’) imager.close() But it may be difficult to write a function to cover all setting already in casatasks.tclean()

note:

apperantly tclean(start=’’,width=’’,nchan-1) will not follow the actual spw-channel arrangeent: it will sort channel by frequency forst and then start the sequence. That means even when negative channel width will still get frequency-increasing cube:

for such case, width=-1,nchanel=240,start=239 will get a cube following the channel-frequency arrangment.