![]()
|
|||
|
|
|||
| NRAO Home > CASA > CasaDocument | |||
1.1.1 Set new Coordinate System
Description
This function replaces the Coordinate System in the image. Coordinate
System are stored in and manipulated with the Coordsys tool. The
Coordinate System can be recovered from an image via the coordsys function.
Note that changing the Coordsys tool has no effect on the original image, until it is replaced with this function.
Arguments
| Inputs |
| ||
| csys |
| Record describing new Coordinate System
| |
| allowed: | any |
|
| Default: | record |
|
Example
"""
# print "\t----\t setcoordsys Ex 1 \t----" ia.fromshape(shape=[10,20]) # Make image mycs = ia.coordsys(); # Recover Coordinate System incr = mycs.increment(’n’); # Get increment as numeric vector incrn = incr[’numeric’] for i in range(len(incrn)): incrn[i] = 2*incrn[i] incr[’numeric’]=incrn mycs.setincrement(value=incr); # Set new increment in Coordinate System ia.setcoordsys(mycs.torecord()); # Set new Coordinate System in image mycs.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.