Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: ms.continuumsub - Function Up: ms - Tool Previous: ms.writebufferflags - Function


ms.clearbuffer - Function



Package general
Module ms
Tool ms


Clear the internal buffer.


Synopsis
clearbuffer()


Returns
Bool, True if operation successful



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



Example
myms:=ms("3C273XC1.MS",F);
myms.select([antenna1=3]);
myms.fillbuffer("PHASE");
rec:=myms.getbuffer();
rec.flag_row[17]:=T;
myms.setbufferflags(rec);
myms.writebufferflags();
myms.clearbuffer();

We open the MS for reading, select a subset and read the data. We get the data into Glish, 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().





next up previous contents index
Next: ms.continuumsub - Function Up: ms - Tool Previous: ms.writebufferflags - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01