![]()
|
|||
|
|
|||
| NRAO Home > CASA > CasaDocument | |||
1.1.1 Get the Coordinate System of the image
Description
This function stores the Coordinate System of an image in a Coordsys tool.
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 |
|
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 fromshape function.
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.