nraonrao
 
NRAO Home > CASA > CasaRef
coordsys.coordinatetype - Function

1.1.3 Return type of specified coordinate
Description

This function returns a string describing the type of the specified coordinate. If which=unset the types for all coordinates are returned.

Possible output values are ’Direction’, ’Spectral’, ’Stokes’, ’Linear’, and ’Tabular’

Arguments





Inputs

which

Which coordinate ? (0-rel)

allowed:

int

Default:

-1

Returns
stringArray

Example

"""  
#  
print "\t----\t coordinatetype Ex 1 \t----"  
csys = cs.newcoordsys(direction=T, spectral=T)  
csys.coordinatetype(0)  
#’Direction’  
cs.coordinatetype()  
#[’Direction’, ’Spectral’]  
#  
"""

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.