wavespectra.core.npstats.tps#

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

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.