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

3.2.1 remove one or more columns


Description

Columns can be removed from a table that was opened nomodify=False.
It may not always be possible to remove a column, because some data managers do not support column removal. However, if all columns of a data manager are removed, it will always succeed. It results in the removal of the entire data manager (and its possible files).
Note that function getdminfo can be used to find which columns are served by which data manager.

Arguments





Inputs

columnames

names of columns to be removed

allowed:

stringArray

Default:

Returns
bool

Example

 
 
  tb.open("mytable", nomodify=False)  
  tb.removecols ("col1 col2")  
# T  
  print tb.colnames()  
 
Two columns are removed.  

__________________________________________________________________


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