nraonrao
 
NRAO Home > CASA > CasaRef
table.putvarcol - Function

3.2.1 put a specific column (for variable arrays)
Description

putcol can only used if values in the column cells to put have the same shape. putvarcol addresses this limitation by passing the values as a record instead of an array. Each field in the record contains the value for a column cell. So the length of the record has to match the number of rows to put. If a value is the unset value, no put is done for that row.

Arguments





Inputs

columnname

Name of column

allowed:

string

Default:

value

Record with values

allowed:

any

Default:

record

startrow

First row to put (default 0)

allowed:

int

Default:

0

nrow

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

allowed:

int

Default:

-1

rowincr

Increment in rows to put (default 1)

allowed:

int

Default:

1

Returns
bool

Example

  tb.open("3C273XC1.MS",nomodify=False)  
  gain=tb.getvarcol("DATA", 0, 10)  
  tb.putvarcol("Gain", gain, 10, 10)  
  tb.flush()

This example copies the values from row 0-9 to row 10-19.

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.