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

1.1.1 Open a new image file with this image tool


Description

Use this function when you are finished analyzing the current image file and want to attach to another one. This function detaches the image tool from the current image file, and reattaches it (opens) to the new image file.

The input image file may be in native CASA, FITS, or Miriad format. Look ?? for more information on foreign images. In the case of CASAimages, both Float and Complex valued images are supported.

Arguments





Inputs

infile

image file name

allowed:

string

Default:

Returns
bool

Example

 
 
"""  
#  
print "\t----\t open Ex 1 \t----"  
ia.maketestimage(’anotherimage’,overwrite=true) #first make 2nd image  
ia.close()  
ia.maketestimage(’myimage’,overwrite=true)      #open image myimage  
ia.open(’anotherimage’)               # attach tool to ’anotherimage’  
ia.close()  
#  
"""  
 
The {\stff open} function first closes the old \imagefile.  

__________________________________________________________________


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