obspy.signal.freqattributes.bandwidth

bandwidth(data, fs, smoothie, fk)[source]

Bandwidth of a signal.

Computes the bandwidth of the given data which can be windowed or not. The bandwidth corresponds to the level where the power of the spectrum is half its maximum value. It is determined as the level of 1/sqrt(2) times the maximum Fourier amplitude.

If data are windowed the bandwidth of each window is returned.

Parameters
  • data (ndarray) – Data to make envelope of.

  • fs – Sampling frequency in Hz.

  • smoothie – Factor for smoothing the result.

  • fk – Coefficients for calculating time derivatives (calculated via central difference).

Returns

bandwidth[, dbwithd] - Bandwidth, Time derivative of predominant period (windowed only).