obspy.signal.filter.bandpass

bandpass(data, freqmin, freqmax, df, corners=4, zerophase=False)[source]

Butterworth-Bandpass Filter.

Filter data from freqmin to freqmax using corners corners.

Parameters:
  • data Data to filter, type numpy.ndarray.
  • freqmin Pass band low corner frequency.
  • freqmax Pass band high corner frequency.
  • df Sampling rate in Hz.
  • corners Filter corners. Note: This is twice the value of PITSA’s filter sections
  • 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.

This Page