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

3.2.1 get a slice from a specific cell


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 0, so -1 is especially useful for trc).

Arguments





Inputs

columnname

Name of column

allowed:

string

Default:

rownr

Row number, starting at 0

allowed:

int

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:

1

Returns
anyvariant

Example

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

__________________________________________________________________


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