Skip to main content

Is there a workaround for the outlierfile parameter in clean if fields are being skipped? - Knowledgebase / CASA / General - NRAO Science Helpdesk

Is there a workaround for the outlierfile parameter in clean if fields are being skipped?

Authors list
A bug has been revealed in clean (CASA 4.1.0 r24668) when using the outlierfile parameter to point to a file containing additional field information to include in cleaning. Clean will run normally but will skip producing some of the field output files.

A workaround exists that keeps clean from skipping fields so that all outlier fields are processed. To do this, lists of image names, image sizes, phase centers, masks and model images are passed directly into the call to clean by the parameters imagename, imsize, phasecenter, mask and modelimage respectively.

This is described in the CASA task documentation under clean (http://casa.nrao.edu/docs/TaskRef/clean-task.html#x13-120000.1.10) with the following example included:

"(b) Specify all fields as lists for each task parameter :

Parameters that support lists for multi-field specification :
’imagename’, ’imsize’, ’phasecenter’,’mask’,’modelimage’

Example : Three fields (same as above)

imagename = [’M1_0’,’M1_1’,’M1_2]
imsize = [[1024,1024],[128,128],[128,128]]
phasecenter = [’J2000 13h27m20.98 43d26m28.0’,
’J2000 13h30m52.159 43d23m08.02’,
’J2000 13h24m08.16 43d09m48.0’]
mask=[[’’], [’out1.mask’,’circle[[40pix,40pix],5pix]’],[’’]]
modelimage=[[’’],[’out1.model’],[’’]]

Note : All lists must have the same length."