NRAO Home > CASA > CASA Toolkit Reference Manual
imagepol.close - Function

1.1.4 Close the image tool


Description

This function closes the imagepol tool. This means that it detaches the tool from its image file (flushing all the changes first). The imagepol tool is “null” after this change (it is not destroyed) and calling any tool function other than open will result in an error.

Arguments





Returns
bool

Example

 
 
"""  
#  
print "\t----\t close Ex 1 \t----"  
# First create image and attach it to imagepol tool  
po.imagepoltestimage(’myimagepol’)  
po.close()              # Detaches image from Imagepol tool  
print "!!!EXPECT ERROR HERE!!!"  
po.summary()            # No image so this results in an error.  
po.open(’myimagepol’)   # Image is reattached  
po.summary()            # No error  
po.close()  
#  
"""  
 

__________________________________________________________________


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