baseline#

PySeismoSoil.helper_signal_processing.baseline(orig_signal: ndarray, show_fig: bool = False, cutoff_freq: float = 0.2) ndarray[source]#

Baseline correction of a time-domain signal using high pass filtering.

Parameters:
  • orig_signal (np.ndarray) – Original signal. Must have two columns.

  • show_fig (bool) – Whether to show figures comparing before and after.

  • cutoff_freq (float) – The frequency (unit: Hz) for high passing. Energies below this frequency are filtered out.

Returns:

corrected – The corrected signal.

Return type:

np.ndarray