| 
         | 
  |||
| NRAO Home > CASA > CASA Toolkit Reference Manual | 
       | 
  ||
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:  | 
  | 
|
bool
Example
                                                                  
                                                                  
                                                                  
                                                                  
"""
#
print "\t----\t setnames Ex 1 \t----"
csys = cs.newcoordsys(spectral=True, 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’]
#
"""
__________________________________________________________________
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