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

2.3.1 get the requested weight grids


Description

This is a utility function when running multi imager processes in parallel on subsection of an ms/data independently One would wish to weight the dirty image before averaging or set the imaging weight density (when using unform or Brigg’s style weighting) to account for all the data being used. This is NOT for the general user but for people who are parallelizing at the scripting level.

imaging: will return a the weight griddensity
ftweight: will put the FT-machine weight images in the names given in wgtimage parameters..these may be needed to average residual images from different processes running seperately on different section of the data. Arguments





Inputs

type

Type of weight requested (imaging, ftweight)

allowed:

string

Default:

imaging

wgtimages

names of weightimages to save

allowed:

stringArray

Default:

Returns
anyvariant

Example

 
 
wght=im.getweightgrid(’imaging’)  
wght2=im2.getweightgrid(’imaging’)  
wght=wght+wght2  
 
im.setweightgrid(weight=wght, type=’imaging’)  
 
 

__________________________________________________________________


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