nraonrao
 
 NRAO Home > CASA > CasaDocument
image.modify - Function

1.1.1 Modify image with a model
Description

This function applies a model of the sky to the image. You can add or subtract the model which is contained in a Componentlist tool.

The pixel values are only changed where the total mask (combination of the default pixel mask [if any] and the OTF mask) is good (True). If the computation fails for a particular pixel (e.g. coordinate undefined) that pixel will be masked bad.

Arguments





Inputs

model

Record representation of a ComponentList model

allowed:

any

Default:

record

region

The 2-D region of interest. Default is whole image.

allowed:

any

Default:

record

mask

OTF mask, Boolean LEL expression or mask region. Default is none.

allowed:

any

Default:

variant

subtract

Subtract or add the model

allowed:

bool

Default:

true

list

List informative messages to the logger

allowed:

bool

Default:

true

async

Run asynchronously?

allowed:

bool

Default:

false

Returns
bool

Example

"""  
#  
print "\t----\t modify Ex 1 \t----"  
ia.maketestimage()  
clrec = ia.fitsky()  
ia.modify(clrec[’return’])  
ia.close()  
#  
"""

In this example we subtract the model returned by the fitsky function.

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2007 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

Updated daily during alpha development.