wind_speed#

rojak.turbulence.calculations.wind_speed(u_wind: DataArray, v_wind: DataArray, is_abs: bool = False, is_squared: bool = False) DataArray[source]#

Wind speed

\[| \mathbf{u} | = \sqrt{u^2 + v^2}\]
Parameters:
  • u_wind (DataArray) – \(u\) wind component

  • v_wind (DataArray) – \(v\) wind component

  • is_abs (optional) – If True, use absolute value of wind components. Defaults to False.

  • is_squared (optional) – If True, returns wind speed squared, i.e. \(u^2 + v^2\). Defaults to False.

Return type:

DataArray