wind

adjust_wind_height(ds, var, z=10)

Adjust wind height from z to 2m according to FAO56 equation47.

Parameters
  • ds (xr.Dataset) – Input

  • var (str) – Variable to adjust.

  • z (int, optional) – wind height in ds, by default 10.

Returns

Dataset in which var has been adjusted.

Return type

xr.Dataset

windspeed(ds, var)

Calculate windspeed from u and v wind vectors.

Parameters
  • ds (xr.Dataset) – Input.

  • var (str) – Variable in which to store the windspeed.

Returns

Dataset with added var.

Return type

xr.Dataset