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

1.3.1 DEPRECATED: Differentiate or difference the internal buffer.


Description

DEPRECATED: Subtract the previous point from each data point in the buffer (for window equal 2), or subtract the average over a window (for window greater than 2) from each point. The window can be in the time / row direction or the frequency / channel direction. The input data can be float or complex but the output is always float. The function returns statistics over the buffer: median for each time and channel, the average absolute deviation from the median in time and channel direction and over all pixels.

Arguments





Inputs

direction

choose between time or channel direction: TIME or CHANNEL

allowed:

string

Default:

TIME

window

width of averaging window in timeslots or channels; integer greater than 0

allowed:

int

Default:

1

Returns
record

Example

 
 
ms.open("3C273XC1.MS")  
ms.select({’antenna1’:[3]})  
ms.fillbuffer("DATA")  
ms.diffbuffer("TIME",15)  
# {’aad’: array([[ 0.58959275],  
#       [ 0.20988081],  
#       [ 0.15907532],  
#       [ 0.58837521]]),  
# ’median’: array([[ 2.67179847],  
#       [ 0.32471114],  
#       [ 0.37952924],  
#       [ 2.60897708]])}  
 
 
 
We open the MS for reading, select a subset and then  
read the DATA, FLAG and FLAG\_ROW column,  
we then subtract the average over a 15 point time-window from each  
data point.  
 

__________________________________________________________________


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