wavespectra.SpecArray.smooth#
- SpecArray.smooth(freq_window=3, dir_window=3)[source]#
Smooth spectra with a running average.
- Parameters:
freq_window (-) – Rolling window size along freq dim.
dir_window (-) – Rolling window size along dir dim.
- Returns:
- Smoothed spectra, returned as a Dataset with
the non-spectral variables preserved when called from the Dataset accessor.
- Return type:
efth (DataArray)
Note
Window sizes must be odd to ensure symmetry.