|NRAO Home > CASA > CASA Toolkit Reference Manual||
coordsys.transpose - Function
1.1.3 Transpose the axes.
This method transposes the axes (both world and pixel) in the coordinate system. You specify the new order of the axes in terms of their old order, so eg order=[1,0,3,2] means reorder the axes so that the zeroth axis becomes the first axis, the first axis becomes the zeroth axis, the second axis becomes the third axis, and the third axis becomes the second axis.
New axis order
csys = cstool()
# Create a coordinate system with axes, RA, Dec, Stokes, and Frequency
csys.newcoordsys(direction=T, spectral=T, stokes=["I","Q"])
# transpose the axes so that the order is RA, Dec, Frequency, and Stokes
csys.transpose(order=[0, 1, 3, 2])
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