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.writebufferflags - Function Up: ms - Tool Previous: ms.clipbuffer - Function


ms.setbufferflags - Function



Package general
Module ms
Tool ms


Set the flags in the buffer


Synopsis
setbufferflags(flags)


Arguments

flags   record with flag and flag_row
    Allowed: Record


Returns
Bool, True if operation successful



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.



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

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.





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