obspy.realtime.signal

Signal processing functions for RtMemory objects.

For sequential packet processing that requires memory (which includes recursive filtering), each processing function (e.g., obspy.realtime.signal) needs to manage the initialization and update of RtMemory object(s), and needs to know when and how to get values from this memory.

For example: Boxcar smoothing: For each new data point available past the end of the boxcar, the original, un-smoothed data point value at the beginning of the boxcar has to be subtracted from the running boxcar sum, this value may be in a previous packet, so has to be retrieved from memory see obspy.realtime.signal.boxcar().

copyright:

The ObsPy Development Team (devs@obspy.org), Anthony Lomax & Alessia Maggi

license:

GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

Public Functions

boxcar

Apply boxcar smoothing to data in array sample.

calculate_mwp_mag

Calculate Mwp magnitude.

differentiate

Apply simple differentiation to array data.

integrate

Apply simple rectangular integration to array data.

kurtosis

Apply recursive kurtosis calculation on data.

mwpintegral

Calculate Mwp integral on a displacement trace.

offset

Add the specified offset to the data.

scale

Scale array data samples by specified factor.

tauc

Calculate instantaneous period in a fixed window (Tau_c).