NRAO Home > CASA > CASA Toolkit Reference Manual
ms.clipbuffer - Function

1.3.1 DEPRECATED: Clip the internal buffer with specified limits.


Description

DEPRECATED: 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:

0.0

timelevel

cliplevel for time slots (greater than 0)

allowed:

double

Default:

0.0

channellevel

cliplevel for channels (greater than 0)

allowed:

double

Default:

0.0

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.  
 

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright 2016 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