pyrfu.pyrf.wave_fft module#

pyrfu.pyrf.wave_fft.wave_fft(inp, window, frame_overlap: float = 10.0, frame_length: float = 20.0, f_sampling: float | None = None)[source]#

Short-Time Fourier Transform.

Parameters:
  • inp (xarray.DataArray) – Time series of the one dimension data.

  • window (str) – Window function such as rectwin, hamming (default).

  • frame_overlap (float, Optional) – Length of each frame overlaps in second.

  • frame_length (float, Optional) – Length of each frame in second.

  • f_sampling (float, Optional) – Sampling frequency.

Returns:

  • spectrogram (ndarray) – Spectrogram of x.

  • time (ndarray) – Value corresponds to the center of each frame (x-axis) in sec.

  • frequencies (ndarray) – Vector of frequencies (y-axis) in Hz.