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

1.1.1 Delete an unattached image file from disk. Note: use remove() if the image file is attached to the image tool.


Description

This function deletes the specified image file.

Arguments





Inputs

file

Name of image file/directory to be removed. Must be specified.

allowed:

string

Default:

Returns
bool

Example

 
 
"""  
#  
print "\t----\t removefile Ex 1 \t----"  
ia.maketestimage(’myimage’,overwrite=true)  
ia.close()  
ia.removefile(’myimage’)                    # remove image ’myimage’  
ia.maketestimage(’myimage’,overwrite=false) # error here if ’myimage’ exists  
ia.close()  
ia.removefile(’myimage’)  
#  
"""  
 

__________________________________________________________________


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