|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
table.getkeyword - Function
3.2.1 get value of specific table keyword
Description
The value of the given table keyword is returned. The value can be of any
type, including a record and a table.
If a keyword is a table, its value is returned as a string containing the table
name prefixed by ’Table: ’.
It is possible that the value of a keyword is a record itself (arbitrarily deeply
nested). A field in such a subrecord can be read by separating the name with
dots.
Arguments
Inputs |
| ||
keyword |
| Name or seqnr of keyword: string or int
| |
| allowed: | any |
|
| Default: | variant |
|
anyvariant
Example
tb.open(’3C273XC1.MS’)
tb.getkeywords()
tb.getkeyword(’MS_VERSION’)
# 2.0
tb.close()
tb.open(’tcal’)
tb.getkeyword(’rec.fld’) # get field from a record
# 3.14
__________________________________________________________________
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