NRAO Home > CASA > CASA Toolkit Reference Manual
deconvolver.boxmask - Function

3.1.2 Construct a mask from blc, trc


Description

A mask image is an image with the same shape as the other images but with values between 0.0 and 1.0 as a pixel value. Mask images are used in deconvolver to control the region selected in a deconvolution.

In the Clark CLEAN, the mask image can usefully have any value between 0.0 and 1.0. Intermediate value discourage but do not rule out selection of clean components in that region. This is accomplished by multiplying the residual image by the mask prior to entering the minor cycle. Note that if you do use a mask for the Clark or Hogbom Clean, it must cover only a quarter of the image. boxmask does not enforce this requirement.

Arguments





Inputs

mask

name of mask image

allowed:

string

Default:

blc

Bottom left corner

allowed:

intArray

Default:

-1

trc

Top right corner

allowed:

intArray

Default:

-1

fillvalue

Value to fill in

allowed:

any

Default:

variant 1.0Jy

outsidevalue

outside value

allowed:

any

Default:

variant 0.0Jy

Returns
bool

Example

 
 
dc.boxmask(mask=’bigmask’, blc=[56,45,1,1], trc=[87,93,4,1])  
dc.clean(mask=’bigmask’, model=’3C273XC1.clean.masked’, niter=1000)  
 

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright © 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search