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





Returns
anyrecord

Example

"""  
#  
print "\t----\t torecord Ex 1 \t----"  
csys = cs.newcoordsys(direction=T, stokes="I Q")  
rec = csys.torecord();  
cs2 = cs.newcoordsys();  
print cs2.ncoordinates()  
#0  
cs2.fromrecord(rec);  
print csys.ncoordinates(), cs2.ncoordinates()  
#2 2  
#  
"""

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.