coordsys.setnames - Function

1.1.3 Set the axis names
Description

Each axis associated with the Coordinate System has a name. It isn’t used in any fundamental way.

This function allows you to set new axis names.

You can set the names either for all axes (type=unset) or for just the axes associated with a particular coordinate type.

You can recover the current axis names with function names.

Arguments





Inputs

value

Names

allowed:

stringArray

Default:

type

Coordinate type: ”direction”, ”stokes”, ”spectral”, ”linear”, ”tabular” or leave empty for all

allowed:

string

Default:

Returns
bool

Example

"""  
#  
print "\t----\t setnames Ex 1 \t----"  
csys = cs.newcoordsys(spectral=T, linear=2)  
csys.setnames(value="a b c")  
print csys.names()  
#[’a’, ’b’, ’c’]  
csys.setnames("flying fish", ’lin’)  
print csys.names()  
#[’a’, ’flying’, ’fish’]  
#  
"""

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.