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


table.getcellslice - Function



Package utility
Module table
Tool table


get a slice from a specific cell


Synopsis
getcellslice(columnname, rownr, blc, trc, incr)


Description
A cell is the value at one row in one column. It must be an array. The slice must be specified as blc, trc with an optional stride.
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).



Arguments

columnname in Name of column
    Allowed: String
rownr in Row number, starting at 1
    Allowed: Int
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


Returns
Array


Example
  t:=table("W53.MS")
  data:=t.getcellslice("DATA", 1, [1,1], [2,1])
  data::shape
# [2 1]





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