|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
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: | record | |
| Default: | ||
region |
| Region selection. See ”help par.region” for details.
Default is to use the full image.
| |
| allowed: | any |
|
| Default: | variant
|
|
mask |
| Mask to use. See help par.mask. 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 |
|
stretch |
| Stretch the mask if necessary and possible? See help
par.stretch. Default False
| |
| allowed: | bool |
|
| Default: | false |
|
bool
Example
"""
#
print "\t----\t modify Ex 1 \t----"
ia.maketestimage()
clrec = ia.fitcomponents()
ia.modify(clrec[’results’])
ia.close()
#
"""
In this example we subtract the model returned by the fitcomponents function.
__________________________________________________________________
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