NRAO Home > CASA > CASA Toolkit Reference Manual
image.ispersistent - Function

1.1.1 Is the image persistent?


Description

This function can be used to find out whether the image is persistent on disk or not. There is a subtle difference from the image being virtual. For example, a virtual image which references another which is on disk is termed persistent.

Arguments





Returns
bool

Example

 
 
"""  
#  
print "\t----\t ispersistent Ex 1 \t----"  
ia.fromshape(outfile=’tmp’, shape=[10,20], overwrite=true)  
print ia.ispersistent()  
#True  
ia.close()  
ia.fromimage(infile=’tmp’)  
print ia.ispersistent()  
#True  
im3 = ia.subimage()  
print im3.ispersistent()            # Persistent virtual image !  
#True  
im4 = ia.imagecalc(pixels=’tmp+tmp’)  
print im4.ispersistent()  
#False  
im3.done()  
im4.done()  
ia.close(remove=true)  
#  
"""  
 

__________________________________________________________________


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