wavespectra.core.npstats.dp#

wavespectra.core.npstats.dp(ipeak, dir)[source]#

Peak wave direction Dp.

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

  • dir (1darray): Wave direction array.

Returns:
  • dp (float): Direction of the maximum energy density in the frequency-integrated spectrum.