NRAO Home > CASA > CASA Toolkit Reference Manual
ms.clearbuffer - Function

1.3.1 DEPRECATED: Clear the internal buffer.


Description

DEPRECATED: Clears the internal buffer, returning the memory. This can be used after the (final) clipping/flagging operations have been performed.

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()  
ms.clearbuffer()  
 
 
 
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. Finally we clear the internal  
buffer. This step can be omitted if you are about to do another fillbuffer().  
 

__________________________________________________________________


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