| 
         | 
  |||
| NRAO Home > CASA > CASA Toolkit Reference Manual | 
       | 
  ||
coordsys.torecord - Function
1.1.3 Convert Coordinate System to a record
Description
You can convert a Coordinate System to a record with this function. There is
also fromrecord to set a Coordinate System from a record.
These functions allow Coordsys tools to be used as parameters in the methods of other tools.
Arguments
record
Example
                                                                  
                                                                  
"""
#
print "\t----\t torecord Ex 1 \t----"
csys = cs.newcoordsys(direction=True, stokes="I Q")
rec = csys.torecord();
cs2 = cs.newcoordsys();
print cs2.ncoordinates()
#0
cs2.fromrecord(rec);
print csys.ncoordinates(), cs2.ncoordinates()
#2 2
#
"""
__________________________________________________________________
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