Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: table.getvarcol - Function Up: table - Tool Previous: table.getcellslice - Function


table.getcol - Function



Package utility
Module table
Tool table


get a specific column


Synopsis
getcol(columnname, startrow, nrow, rowincr)


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

columnname in Name of column
    Allowed: String
startrow in First row to read (default 1)
    Allowed: Int
nrow in Number of rows to read (default -1 means till the end)
    Allowed: Int
rowincr in Increment in rows to read (default 1)
    Allowed: Int


Returns
Array


Example
  t:=table("tcal",readonly=F)
# successful read/write open of table  tcal :  9 columns, 11 rows
  gain:=t.getcol("Gain")
  gain::shape
# [2 2 28 1 11]





next up previous contents index
Next: table.getvarcol - Function Up: table - Tool Previous: table.getcellslice - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15