wavespectra.partition.partition.Partition.ptm4#

Partition.ptm4(wspd=None, wdir=None, dpt=None, agefac=1.7)[source]#

PTM4 WAM partitioning of sea and swell based on wave age criterion..

PTM4 uses the wave age criterion derived from the local wind speed to split the spectrum into a wind-sea and single swell partition. In this case waves with a celerity greater than the directional component of the local wind speed are considered to be freely propogating swell (i.e. unforced by the wind). This is similar to the method commonly used to generate wind-sea and swell from the WAM model.

Parameters:
  • wspd (-) – Wind speed DataArray, taken from the wspd variable in the underlying dataset if not provided.

  • wdir (-) – Wind direction DataArray, taken from the wdir variable in the underlying dataset if not provided.

  • dpt (-) – Depth DataArray, taken from the dpt variable in the underlying dataset if not provided.

  • agefac (-) – Age factor.

Returns:

Partitioned spectra with extra part dimension

where the 0th index is the wind sea and the 1st index is the swell.

Return type:

  • dspart (xr.DataArray, xr.Dataset)

References