|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
table.getcol - Function
3.2.1 get a specific column
Description
The entire column (or part of it) is returned. Warning: it might be big! The
functions can only be used if all arrays in the column have the same shape.
That is guaranteed for columns containing scalars or fixed shaped arrays. For
columns containing variable shaped arrays it only succeeds if all those arrays
happen to have the same shape.
Note that function getvarcol can be used to get a column of arbitrary shaped
arrays, which also handles empty cells correctly. Function isvarcol tells if a
column contains variable shaped arrays. shaped
Arguments
Inputs |
| ||
columnname |
| Name of column | |
| allowed: | string |
|
| Default: |
|
|
startrow |
| First row to read (default 0)
| |
| allowed: | int | |
| Default: | 0 |
|
nrow |
| Number of rows to read (default -1 means till the end)
| |
| allowed: | int |
|
| Default: | -1 |
|
rowincr |
| Increment in rows to read (default 1)
| |
| allowed: | int |
|
| Default: | 1 |
|
anyvariant
Example
tb.open("3C273XC1.MS")
# True
gain=tb.getcol("DATA")
print gain.shape
# (4, 1, 7669)
__________________________________________________________________
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