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.getcolslice - Function Up: table - Tool Previous: table.getcol - Function


table.getvarcol - Function



Package utility
Module table
Tool table


get a specific column (for variable arrays)


Synopsis
getvarcol(columnname, startrow, nrow, rowincr)


Description
Function getcol can only used if values in the column cells to get have the same shape. Function getvarcol addresses this limitation by returning the values as a record instead of an array. Each field in the record contains the value for a column cell. If the value is undefined (i.e. the cell does not contain a value), the unset value is put in the record. Each field name is the letter r followed by the row number. The length of the record is the number of rows to get.
Note that the function isvarcol tells if a column contains variable shaped arrays.



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
Record


Example
  t:=table("tcal",readonly=F)
# successful read/write open of table  tcal :  9 columns, 11 rows
  gain:=t.getvarcol("Gain")
  length(gain)
# 11





next up previous contents index
Next: table.getcolslice - Function Up: table - Tool Previous: table.getcol - 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