coordsys.naxes - Function

1.1.3 Recover the number of axes
Description

Find the number of axes in the Coordinate System.

You may find the number of world or pixel axes; these are generally the same and general users can ignore the distinction. See the discussion about pixel and world axis ordering.

Arguments





Inputs

world

Find number of world or pixel axes ?

allowed:

bool

Default:

true

Returns
int

Example

"""  
#  
print "\t----\t naxes Ex 1 \t----"  
csys = cs.newcoordsys(direction=T, spectral=T)  
n = csys.naxes(T)  
print n  
#3                          # 2 direction axes, 1 spectral  
n = csys.naxes(F)  
print n  
#3  
#  
"""

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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.