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

1.1.1 Get the Coordinate System of the image


Description

This function returns the Coordinate System of an image in a Coordsys tool. Both float and complex valued images are supported.

By default, the Coordinate System describes all of the axes in the image. If you desire, you can select a subset of the axes, thus reducing the dimensionality of the Coordinate System. This may be useful if you are supplying a Coordinate System to the functions fromarray or fromshape.

Arguments





Inputs

axes

Axes to which the Coordinate System pertains. Default is all axes.

allowed:

intArray

Default:

-1

Returns
coordsys

Example

 
 
"""  
#  
print "\t----\t coordsys Ex 1 \t----"  
ia.maketestimage(’hcn’,overwrite=true)  
ia.summary()  
mycs = ia.coordsys([0,1])  
imshape = ia.shape()  
ia.fromshape(outfile=’test’, shape=imshape, csys=mycs.torecord(), overwrite=true)  
ia.summary()  
mycs.done()  
ia.close()  
#  
"""  
 
 
In this example, we create a Coordinate System pertaining to the first  
two axes of the image and then we create a new (empty) 2D image with  
this Coordinate System using the {\cf fromshape} function.  

__________________________________________________________________


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