wavespectra.core.watershed.nppart#

wavespectra.core.watershed.nppart(spectrum, freq, dir, wspd, wdir, dpt, swells=3, agefac=1.7, wscut=0.3333)[source]#

Watershed partition on a numpy array.

Args:
  • spectrum (2darray): Wave spectrum array with shape (nf, nd).

  • freq (1darray): Wave frequency array with shape (nf).

  • dir (1darray): Wave direction array with shape (nd).

  • wspd (float): Wind speed.

  • wdir (float): Wind direction.

  • dpt (float): Water depth.

  • swells (int): Number of swell partitions to compute.

  • agefac (float): Age factor.

  • wscut (float): Wind speed cutoff.

Returns:
  • specpart (3darray): Wave spectrum partitions with shape (np, nf, nd).