NRAO Home > CASA > CASA Toolkit Reference Manual
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  
#  
"""  
 

__________________________________________________________________


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