NRAO Home > CASA > CASA Toolkit Reference Manual
imagepol.makecomplex - Function

1.1.4 Make a Complex image


Description

This function generates a Complex image file from either a real and imaginary, or an amplitude and phase pair of images. If you give a linear position angle image for the phase, it will be multipled by two before the real and imaginary parts are formed.

Arguments





Inputs

complex

Output complex image file name. Must be specified.

allowed:

string

Default:

real

Input real image file name. Default is unset.

allowed:

string

Default:

imag

Input imaginary image file name. Default is unset.

allowed:

string

Default:

amp

Input amplitude image file name. Default is unset.

allowed:

string

Default:

phase

Input phase image file name. Default is unset.

allowed:

string

Default:

Returns
bool

Example

 
 
"""  
#  
print "\t----\t makecomplex Ex 1 \t----"  
po.open(’stokes.image’)  
po.complexlinpol(’qu.cplx1’)  
q = po.stokesq()  
u = po.stokesu()  
q2 = q.subimage(’q’,overwrite=true)  
u2 = u.subimage(’u’,overwrite=true)  
po.makecomplex(’qu.cplx2’, real=’q’, imag=’u’)  
po.close()  
#  
"""  
 
In this example we make two complex linear polarization  
images which should be identical.  

__________________________________________________________________


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