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.getcolshapestring - Function Up: table - Tool Previous: table.putvarcol - Function


table.putcolslice - Function



Package utility
Module table
Tool table


put a slice into a specific column


Synopsis
putcolslice(columnname, value, blc, trc, incr, startrow, nrow, rowincr)


Description

In blc and trc -1 can be used to indicate all values for a dimension (-1 in blc is equivalent to 1, so -1 is especially useful for trc). Note that blc and trc should not contain the row number, only the blc and trc of the arrays in the column.



Arguments

columnname in Name of column
    Allowed: String
value in Array
blc in Bottom left corner (e.g. [1,1,1] is start of 3D array)
    Allowed: Vector of Ints
trc in Top right corner
    Allowed: Vector of Ints
incr in Stride (defaults to 1 for all axes)
    Allowed: Vector of Ints
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.getcolslice("Gain", [1,1,1,6,1], [1,1,1,6,20])
  gain:=1+0i
  t.putcolslice("Gain", gain, [1,1,1,6,1], [1,1,1,6,20])
  t.flush()





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