wavespectra.core.watershed.partition#

wavespectra.core.watershed.partition(dset, wspd='wspd', wdir='wdir', dpt='dpt', swells=3, agefac=1.7, wscut=0.3333)[source]#

Watershed partitioning.

Args:
  • dset (xr.DataArray, xr.Dataset): Spectra array or dataset in wavespectra convention.

  • wspd (xr.DataArray, str): Wind speed DataArray or variable name in dset.

  • wdir (xr.DataArray, str): Wind direction DataArray or variable name in dset.

  • dpt (xr.DataArray, str): Depth DataArray or the variable name in dset.

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

  • agefac (float): Age factor.

  • wscut (float): Wind speed cutoff.

Returns:
  • dspart (xr.Dataset): Partitioned spectra dataset with extra dimension.

References:
  • Hanson, Jeffrey L., et al. “Pacific hindcast performance of three

    numerical wave models.” JTECH 26.8 (2009): 1614-1633.