5.5.1.1. eqcorrscan.utils.despike.median_filter¶
-
eqcorrscan.utils.despike.
median_filter
(tr, multiplier=10, windowlength=0.5, interp_len=0.05, debug=0)[source]¶ Filter out spikes in data according to the median absolute deviation of the data.
Currently only has the ability to replaces spikes with linear interpolation. In the future we would aim to fill the gap with something more appropriate. Works in-place on data.
Parameters: Returns: obspy.trace