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})\)

Args:
  • dir (DataArray, 1darray, list): Wave direction coords (degree).

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

  • dspr (DataArray, float): Directional spreading (degree).

  • under_90 (bool): Zero the spreading curve above 90 degrees range from dm.

Returns:
  • gth (DataArray): Normalised spreading function \(g(\theta)\).

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