wavespectra.core.npstats.tps_gufunc#
- wavespectra.core.npstats.tps_gufunc = <ufunc 'tps_gufunc'>#
tps_gufunc(x1, x2, x3, /, out=None, *, casting=’same_kind’, order=’K’, dtype=None, subok=True[, signature, extobj, axes, axis])
Smooth peak wave period Tp.
- Args:
ipeak (int): Index of the maximum energy density in frequency spectrum E(f).
spectrum (1darray): Direction-integrated wave spectrum array E(f).
freq (1darray): Wave frequency array.
- Returns:
tp (float): Period of the maximum energy density in the smooth spectrum.
- Note:
The smooth peak period is the peak of a parabolic fit around the spectral peak. It is the period commonly defined in SWAN and WW3 model output.