ms.clipbuffer - Function

1.2.1 (NON-FUNCTIONAL???) Clip the internal buffer with specified limits.
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 of the corresponding average absolute deviation (a robust version of rms).

Arguments





Inputs

pixellevel

cliplevel for pixels (greater than 0)

allowed:

double

Default:

timelevel

cliplevel for time slots (greater than 0)

allowed:

double

Default:

channellevel

cliplevel for channels (greater than 0)

allowed:

double

Default:

Returns
bool

Example

ms.open("3C273XC1.MS")  
ms.select({’antenna1’:[3]})  
ms.fillbuffer("DATA")  
stats=ms.diffbuffer("TIME",15)  
ms.clipbuffer(6,5,5)  
#2008-05-28 17:15:27  SEVERE  casa::ms::open  
#  Exception Reported: RecordInterface: field medTmeF is unknown  
#---------------------------------------------------------------------------  
#type ’exceptions.StandardError’         Traceback (most recent call last)  
#  
#/home/aips2mgr/testing/ipython console in module()  
#  
#type ’exceptions.StandardError’: RecordInterface: field medTmeF is unknown

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.

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.