wavespectra.core.utils.smooth_spec#
- wavespectra.core.utils.smooth_spec(dset, freq_window=3, dir_window=3)[source]#
Smooth spectra with a running average.
- Parameters:
dset (-) – Spectra to smooth.
freq_window (-) – Rolling window size along freq dim.
dir_window (-) – Rolling window size along dir dim.
- Returns:
Smoothed spectra.
- Return type:
efth (DataArray)
Note
The window size should be an odd value to ensure symmetry.