rtm.waveform module

rtm.waveform.process_waveforms(st, freqmin, freqmax, taper_length=None, envelope=False, decimation_rate=None, smooth_win=None, agc_params=None, normalize=False, plot_steps=False)[source]

Process infrasound waveforms. By default, the input Stream is detrended, tapered, and filtered. Optional: Enveloping, decimation (via interpolation), automatic gain control (AGC), and normalization. If no decimation rate is specified, Traces are simply interpolated to the lowest sample rate present in the Stream. Optionally plots the Stream after each processing step has been applied for troubleshooting.

Parameters:
  • st (Stream) – Stream from waveform_collection.server.gather_waveforms()

  • freqmin (int or float) – [Hz] Lower corner for zero-phase bandpass filter

  • freqmax (int or float) – [Hz] Upper corner for zero-phase bandpass filter

  • taper_length (int or float) – [s] Use a taper of this many seconds on each end of the Stream (default: None, which uses a taper of 5% of the total Stream length on each end)

  • envelope (bool) – Take envelope of waveforms (default: False)

  • decimation_rate (int or float) – [Hz] New sample rate to decimate to (via interpolation). If None, just interpolates to the lowest sample rate present in the Stream (default: None)

  • smooth_win (int or float) – [s] Smoothing window duration. If None, does not perform smoothing (default: None)

  • agc_params (dict) – Dictionary of keyword arguments to be passed on to rtm.waveform._agc(). Example: dict(win_sec=500, method=’gismo’). If set to None, no AGC is applied. For details, see the docstring for rtm.waveform._agc() (default: None)

  • normalize (bool) – Apply normalization to Stream (default: False)

  • plot_steps (bool) – Toggle plotting each processing step (default: False)

Returns:

Stream containing processed waveforms