taper_Tukey#

PySeismoSoil.helper_signal_processing.taper_Tukey(input_signal: ndarray, width: float = 0.05) ndarray[source]#

Taper a time-domain signal on both ends with a Tukey window

Parameters:
  • input_signal (np.ndarray) – Signal to be tapered. Can be 1D numpy array or 2D array with 2 columns.

  • width (float) – The width of the Tukey window.

Returns:

output – The tapered signal.

Return type:

np.ndarray

Raises:

TypeError – When the input signal is not a numpy array