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.putcolslice - Function Up: table - Tool Previous: table.putcol - Function


table.putvarcol - Function



Package utility
Module table
Tool table


put a specific column (for variable arrays)


Synopsis
putvarcol(columnname, value, startrow, nrow, rowincr)


Description

putcol can only used if values in the column cells to put have the same shape. putvarcol addresses this limitation by passing the values as a record instead of an array. Each field in the record contains the value for a column cell. So the length of the record has to match the number of rows to put. If a value is the unset value, no put is done for that row.



Arguments

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


Returns
Bool


Example
  t:=table("tcal",readonly=F)
# successful read/write open of table  tcal :  9 columns, 11 rows
  gain:=t.getvarcol("DATA", 1, 10)
  t.putvarcol("Gain", gain, 11, 10)
  t.flush()
This example copies the values from row 1-10 to row 11-20.





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