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.clearbuffer - Function Up: ms - Tool Previous: ms.setbufferflags - Function


ms.writebufferflags - Function



Package general
Module ms
Tool ms


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


Synopsis
writebufferflags()


Returns
Bool, True if operation successful



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.



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();

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.





next up previous contents index
Next: ms.clearbuffer - Function Up: ms - Tool Previous: ms.setbufferflags - 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