nraonrao
 
 NRAO Home > CASA > CasaDocument
image.newimagefromfile - Function

1.1.1 Construct a new image tool from a CASA image file. (Also know as newimage.)
Description

This is the most commonly used function to create an on-the-fly image tool. It constructs (creates) a image tool associated with a disk image file.

The disk image file may be a native CASA, FITS (Float, Double, Short, Long are supported) , or Miriad image file. Look ?? for more information on foreign images.

Arguments





Inputs

infile

Input image file name

allowed:

string

Default:

Returns
casaimage

Example

"""  
#  
print "\t----\t newimagefromfile Ex 1 \t----"  
ia.maketestimage(’test1’,overwrite=true)  
ia.maketestimage(’test2’,overwrite=true)  
print ia.name()  
#[...]test2  
im1=ia.newimagefromfile(’test1’)  
print im1.name()  
#[...]test1  
print im1.summary()  
im2=ia.newimagefromfile(’test2’)  
print im2.name()  
#[...]test2  
print im1.name()  
#[...]test1  
im1.done()  
im2.done()  
ia.close()  
#  
"""

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.