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.putcell - Function Up: table - Tool Previous: table.getvarcol - Function


table.getcolslice - Function



Package utility
Module table
Tool table


get a slice from a specific column


Synopsis
getcolslice(columnname, blc, trc, incr, startrow, nrow, rowincr)


Description
A slice from the entire column (or part of it) is returned. Warning: it might be big!
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
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 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("W53.MS")
  data:=t.getcolslice("DATA", [1,1], [2,1])
  data::shape
# [2 1 1920]





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