|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
regionmanager.fromtabletorecord - Function
1.1.2 Restore regions from a Table to a record
Description
This function restores a region from an CASA Table to the global name space.
For the tablename argument, you can specify an image tool, a table tool, or a string. If you give a string, it should be the name of an existing CASA table on disk (any kind of table).
If numberfields is F, then the field names of the record are the same as they are in the Table. Otherwise, the regions are put into numbered fields (the field names could be anything).
You can use the function namesintable to find out the names of the regions in the Table.
Arguments
Inputs |
| ||
tablename |
| The table | |
| allowed: | string |
|
| Default: | Image tool, table tool or String |
|
regionname |
| Name of the region(s) to restore
| |
| allowed: | any |
|
| Default: | variant All |
|
verbose |
| Report successful restores
| |
| allowed: | bool |
|
| Default: | true True |
|
record
Example
- img = ia.open(’hcn’)
- rec = rg.fromtabletorecord(img, numberfields=T)
- print is_region(rec[0])
The record fields are numbered, not named.
__________________________________________________________________
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