Last updated on Aug 22, 2025.

netsse.analys.spec.spread_dist_to_spec2d#

netsse.analys.spec.spread_dist_to_spec2d(Sf, D, theta)#

Converts the given 1-D wave spectrum and directional spreading function into a 2-D wave spectrum.

Parameters:
  • Sf (array_like of shape (...,Nf,...)) – One-sided variance spectrum of the waves, as a function of frequency.

  • D (array_like of shape (...,Nf,Ntheta,...)) – Directional spreading function.

  • theta (array_like of shape (Ntheta,)) – Vector of wave headings (with arbitrary unit).

Returns:

S2D – Directional wave spectrum, as a function of frequency and wave direction (with arbitrary units).

Return type:

array_like of shape (…,Nf,Ntheta,…)

See also

spec2d_to_spread_dist

Converts the given 2-D wave spectrum into a directional spreading function and a 1-D wave spectrum.

Example

>>> S2D = spread_dist_to_spec2d(Sf,D,theta)