nraonrao
 
 NRAO Home > CASA > CasaDocument
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’)  
#  
"""

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.