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


ms.clipbuffer - Function



Package general
Module ms
Tool ms


Clip the internal buffer with specified limits.


Synopsis
clipbuffer(pixellevel, timelevel, channellevel)


Arguments

pixellevel   cliplevel for pixels
    Allowed: positive value
timelevel   cliplevel for time slots
    Allowed: positive value
channellevel   cliplevel for channels
    Allowed: positive value


Returns
Bool, True if operation successful



Description
This sets flags in the internal buffer based on the clip levels specified. You can flag times, channels and individual pixels based on their deviation from the median. The cliplevel is specified in units the corresponding average absolute deviation (a robust version of rms).



Example
myms:=ms("3C273XC1.MS");
myms.select([antenna1=3]);
myms.fillbuffer("DATA");
stats:=myms.diffbuffer("TIME",15);
myms.clipbuffer(6,5,5);

We open the MS for reading, select a subset and read the data into the buffer. We then remove the average over a 15 point time window and clip the resulting data at 6 times the average absolute deviation from the median for individual pixels, and at 5 times this for channels and timeslots.





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