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

1.1.1 Make a complex image
Description

This function combines the current image with another image to make a complex image. The current image (i.e. that associated with this Image tool is assumed to be the Real image). You supply the Imaginary image; it must be disk-based at this time.

The output image cannot be associated with an Image tool (does not handle Complex images yet) and so the best you can do is write it to disk. The Viewer can view it.

Arguments





Inputs

outfile

Output Complex (disk) image file name

allowed:

string

Default:

imag

Imaginary image file name

allowed:

string

Default:

region

The region of interest. Default is whole image.

allowed:

any

Default:

record

overwrite

Overwrite (unprompted) pre-existing output file?

allowed:

bool

Default:

false

Returns
bool

Example

"""  
#  
print "\t----\t makecomplex Ex 1 \t----"  
ia.maketestimage(’ia.imag’,overwrite=true)  #imaginary image  
ia.close()  
ia.maketestimage(’ia.real’,overwrite=true)  #assoc. real image  
ia.makecomplex(’ia.complex’, ’ia.imag’, overwrite=true)  
ia.removefile(’ia.imag’)                    #cleanup  
ia.removefile(’ia.complex’)  
ia.close(remove=true)  
#  
"""

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.