wavespectra.core.npstats.tps#

wavespectra.core.npstats.tps(ipeak, spectrum, freq)[source]#

Smooth peak wave period Tp.

Parameters:
  • ipeak (-) – Index of the maximum energy density in frequency spectrum E(f).

  • spectrum (-) – Direction-integrated wave spectrum array E(f).

  • freq (-) – Wave frequency array.

Returns:

Period of the maximum energy density in the smooth spectrum.

Return type:

  • tp (float)

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.