obspy.signal.filter.integer_decimation

integer_decimation(data, decimation_factor)[source]

Downsampling by applying a simple integer decimation.

Make sure that no signal is present in frequency bands above the new Nyquist frequency (samp_rate/2/decimation_factor), e.g. by applying a lowpass filter beforehand! New sampling rate is old sampling rate divided by decimation_factor.

Parameters:
  • data (numpy.ndarray) – Data to filter.

  • decimation_factor – Integer decimation factor

Returns:

Downsampled data (array length: old length / decimation_factor)