wavespectra.core.npstats.dpm#

wavespectra.core.npstats.dpm(ipeak, momsin, momcos)[source]#

Mean direction at the peak wave period Dpm.

Args:
  • ipeak (int): Index of the maximum energy density in the frequency spectrum E(f).

  • momsin (1darray): Sin component of the 1st directional moment.

  • momcos (1darray): Cos component of the 1st directional moment.

Returns:
  • dpm (float): Mean direction at the frequency peak of the spectrum.