NRAO Home > CASA > CASA Toolkit Reference Manual
table.putkeywords - Function

3.2.1 !!!BROKEN!!! put multiple table keywords


Description

Put multiple table keywords. All fields in the given record are put as table keywords. The value of each field can be a scalar or an array of any type or it can be a record.
It is also possible to define a keyword holding a subtable. This can be done by giving the keyword a string value consisting of the subtable name prefixed by ’Table: ’.

Arguments





Inputs

value

Record of keyword=value pairs

allowed:

record

Default:

Returns
bool

Example

 
 
  tb.open(’3C273XC1.MS’, nomodify=False)  
  kw=tb.getkeywords()  
  print kw[’MS_VERSION’]  
# 2.0  
  kw[’MS_VERSION’]=2.1  
  tb.putkeywords(kw)  
# !!!BROKEN. Keywords containing float are not handled properly!!!  
  tb.flush()  
# True  
 

__________________________________________________________________


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