NRAO Home > CASA > CASA Toolkit Reference Manual
imager.drawmask - Function

2.3.1 Allows you do draw mask using the viewer


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 imager to control the region selected in a deconvolution.

drawmask is used to interactively draw regions over a template image which you want to allow deconvolution to occur.

Arguments





Inputs

image

name of template image

allowed:

string

Default:

mask

name of image to save mask in

allowed:

string

Default:

niter

Total number of iteration to display in box; just for display or python packaging

allowed:

int

Default:

0

npercycle

npercycle value to display in box; just for display or python packaging

allowed:

int

Default:

0

threshold

threshold to display in box ; just for display or python packaging

allowed:

string

Default:

0 mJy

Returns
record

Example

 
 
im.drawmask(image=’mytemplate.image’, mask=’myregions.mask’)  
im.clean(mask=’myregions.mask’, model=’3C273XC1.clean.masked’, niter=1000)  
 
 
 
Make mask image by drawing interactively over a given image ’mytemplate.image’,   then image and clean the visibilties using it as the  
"clean regions".  

__________________________________________________________________


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