NRAO Home > CASA > CASA Toolkit Reference Manual
coordsys.fromrecord - Function

1.1.3 Fill Coordinate System from a record


Description

You can convert a Coordinate System to a record (torecord). This function (fromrecord) allows you to set the contents of an existing Coordinate System from such a record. In doing so, you overwrite its current contents.

Arguments





Inputs

record

Record containing Coordinate System

allowed:

record

Default:

Returns
bool

Example

 
 
"""  
#  
print "\t----\t fromrecord Ex 1 \t----"  
csys = cs.newcoordsys(direction=T, stokes="I Q")  
print csys.ncoordinates()  
#2  
r = csys.torecord()  
cs2 = cs.newcoordsys()  
print cs2.ncoordinates()  
#0  
cs2.fromrecord(r)  
print cs2.ncoordinates()  
#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