coordsys.names - Function

1.1.3 Recover the names for each axis
Description

Each axis associated with the Coordinate System has a name (they don’t mean anything fundamental). This function returns those names in world axis order.

You can recover the names either for all coordinates (leave type unset) or for a specific coordinate type (mimumum match of the allowed types will do). If you ask for a non-existent coordinate an exception is generated.

You can set the names with function setnames.

Arguments





Inputs

type

Coordinate type: ”direction”, ”stokes”, ”spectral”, ”linear”, ”tabular”. Leave empty for all.

allowed:

string

Default:

Returns
stringArray

Example

"""  
#  
print "\t----\t names Ex 1 \t----"  
csys = cs.newcoordsys(direction=T, spectral=T)  
n = csys.names()  
print n[0]  
#Right Ascension  
print n[1]  
#Declination  
print n[2]  
#Frequency  
print cs.names(’spec’)  
#Frequency  
#  
"""

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.