NRAO Home > CASA > CASA Toolkit Reference Manual
table.getcolslice - Function

3.2.1 get a slice from a specific columnarray


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





Inputs

columnname

Name of column

allowed:

string

Default:

blc

Bottom left corner (e.g. [0,0,0] is start of 3D array)

allowed:

intArray

Default:

trc

Top right corner

allowed:

intArray

Default:

incr

Stride (defaults to 1 for all axes)

allowed:

intArray

Default:

startrow

First row to read (default 0)

allowed:

int

Default:

0

nrow

Number of rows to read (default -1 means till the end)

allowed:

int

Default:

-1

rowincr

Increment in rows to read (default 1)

allowed:

int

Default:

1

Returns
anyvariant

Example

 
 
  tb.open("3C273XC1.MS")  
  data=tb.getcolslice("DATA", [0,0], [1,0])  
  data.shape  
# (2 1 7669)  
 

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright © 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search