wavespectra.partition.partition.np_ptm3#
- wavespectra.partition.partition.np_ptm3(spectrum, spectrum_smooth, freq, dir, parts=3, ihmax=100)[source]#
PTM3 spectra partitioning on numpy arrays.
- Parameters:
spectrum (-) – Wave spectrum array with shape (nf, nd).
spectrum_smooth (-) – Smoothed wave spectrum array with shape (nf, nd).
freq (-) – Wave frequency array with shape (nf).
dir (-) – Wave direction array with shape (nd).
parts (-) – Number of partitions to compute, all detected by default.
ihmax (-) – Number of discrete spectral levels in WW3 Watershed code.
- Returns:
- Wave spectrum partitions sorted in decreasing order of Hs
with shape (np, nf, nd).
- Return type:
specpart (3darray)
Note
The smooth spectrum spectrum_smooth is used to define the watershed boundaries which are applied to the original spectrum.