wavespectra.core.npstats.jonswap#
- wavespectra.core.npstats.jonswap(freq, fpeak, hsig, gamma=3.3, alpha=0.0081, sigma_a=0.07, sigma_b=0.09)[source]#
Jonswap frequency spectrum for developing seas (Hasselmann et al., 1973).
- Parameters:
freq (-) – Frequency array (Hz).
fpeak (-) – Peak wave frequency (Hz).
hsig (-) – Significant wave height (m), if provided the Jonswap spectra are scaled so that \(4\sqrt{m_0} = hs\).
gamma (-) – Peak enhancement parameter.
alpha (-) – Phillip’s fetch-dependent scaling coefficient.
sigma_a (-) – width of the peak enhancement parameter for f <= fp.
sigma_b (-) – width of the peak enhancement parameter for f > fp.
- Returns:
Jonswap spectrum E(f) (m2s).
- Return type:
efth (SpecArray)
Note
This function is a numpy version of the wavespectra.frequency.jonswap function and is primarily defined for spectral fitting.
If hs is provided than the scaling parameter alpha becomes irrelevant.