nraonrao
 
NRAO Home > CASA > CasaRef
ms.writebufferflags - Function

1.2.1 Write the flags in the internal buffer back to the table.
Description

Takes the flag and flag_row field in the internal buffer and writes them back to the FLAG and FLAG_ROW column in the currently selected table.

Arguments





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)  
       ms.writebufferflags()  
       

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. We then write the buffer flags back to the table, causing the corresponding data to be marked flagged on subsequent access.

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.