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

1.1.1 Generate an image from a record


Description

You can convert an associated image to a record (torecord) or imagepol tool functions will sometimes give you a record. This function (fromrecord) allows you to set the contents of an image tool to the content of the record. This and torecord are used for deserialization and serialization.

Arguments





Inputs

record

Record containing the image

allowed:

record

Default:

outfile

The name of the diskfile to be created for image from record

allowed:

string

Default:

Returns
bool

Example

 
 
"""  
#  
print "\t----\t fromrecord Ex 1 \t----"  
ia.maketestimage(’image.large’, overwrite=true)  
rec=ia.torecord()  
ia.close()  
ia.fromrecord(rec, "testimage")  
 
 
"""  
 

__________________________________________________________________


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