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

3.2.1 get shape of arrays in a specific column


Description

The shapes of the arrays in the entire column (or part of it) are returned as strings like [20,3]. When the column contains fixed shaped arrays, a single string is returned. Otherwise a vector of strings is returned.

Arguments





Inputs

columnname

Name of column

allowed:

string

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
stringArray

Example

 
 
  tb.open("3C273XC1.MS")  
  shapes=tb.getcolshapestring("DATA"))  
  print len(shapes)  
 

__________________________________________________________________


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