obspy.signal.filter.highpass
- highpass(data, freq, df, corners=4, zerophase=False)[source]
Butterworth-Highpass Filter.
Filter data removing data below certain frequency
freq
usingcorners
corners. The filter usesscipy.signal.iirfilter()
(for design) andscipy.signal.sosfilt()
(for applying the filter).- Parameters
data (numpy.ndarray) – Data to filter.
freq – Filter corner frequency.
df – Sampling rate in Hz.
corners – Filter corners / order.
zerophase – If True, apply filter once forwards and once backwards. This results in twice the number of corners but zero phase shift in the resulting filtered trace.
- Returns
Filtered data.