wavespectra.partition.partition.Partition.ptm4#
- Partition.ptm4(wspd, wdir, dpt, 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.
- Args:
wspd (xr.DataArray): Wind speed DataArray.
wdir (xr.DataArray): Wind direction DataArray.
dpt (xr.DataArray): Depth DataArray.
agefac (float): Age factor.
- Returns:
dspart (xr.Dataset): Partitioned spectra with extra part dimension where the 0th index is the wind sea and the 1st index is the swell.
- References:
WW3 documentation (NOAA-EMC/WW3).