fourier_transform#
- PySeismoSoil.helper_signal_processing.fourier_transform(signal_2_col: ndarray, *, real_val: bool = True, double_sided: bool = False, show_fig: bool = False) ndarray [source]#
Fourier transform using FFT.
- Parameters:
signal_2_col (np.ndarray) – Signal in two columns (time array and signal array).
real_val (bool) – Whether to return the amplitude (or “magnitude”) of the complex numbers.
double_sided (bool) – Whether to return the second half of the spectrum (i.e. beyond the Nyquist frequency).
show_fig (bool) – Whether to show figures of the spectrum.
- Returns:
spectra – A two-column array containing [freq_array, spectrum].
- Return type:
np.ndarray