NRAO Home > CASA > CASA Toolkit Reference Manual
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=True, spectral=True)  
csys.coordinatetype(0)  
#’Direction’  
cs.coordinatetype()  
#[’Direction’, ’Spectral’]  
#  
"""  
 

__________________________________________________________________


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