wavespectra.construct.direction.cartwright#

wavespectra.construct.direction.cartwright(dir, dm, dspr, under_90=False, **kwargs)[source]#

Cosine-squared directional spreading of Cartwright (1963).

\(G(\theta,f)=F(s)cos^{2}\frac{1}{2}(\theta-\theta_{m})\)

Parameters:
  • dir (-) – Wave direction coords (degree).

  • dm (-) – (DataArray, float): Mean wave direction (degree).

  • dspr (-) – Directional spreading (degree).

  • under_90 (-) – Zero the spreading curve above 90 degrees range from dm.

Returns:

Normalised spreading function \(g(\theta)\).

Return type:

  • gth (DataArray)

Note

  • If dm and dspr are DataArrays they must share the same coordinates.