ms.setbufferflags - Function

1.2.1 Set the flags in the buffer
Description

Replace the flag and flag_row fields in the internal buffer with those in the input record. The input record can e.g., be a modified version of the record returned by getbuffer(). The other fields in the record are ignored.

Arguments





Inputs

flags

record with flag and flag_row

allowed:

any

Default:

record

Returns
bool

Example

ms.open("3C273XC1.MS",False)  
ms.select({’antenna1’:[3]})  
ms.fillbuffer("PHASE")  
rec=ms.getbuffer()  
rec[’flag_row’][17]=True  
ms.setbufferflags(rec)

We open the MS for reading, select a subset and read the data. We get the data into casapy, flag timeslot 17 and put the modified flags back into the buffer.

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.