windkit.wind.resample_wind_and_direction

windkit.wind.resample_wind_and_direction(ds, freq, var_ws='wind_speed', var_wd='wind_direction', min_availability=0.5, **kwargs)[source]

Resample wind speed and direction to a given frequency.

Parameters:
  • ds (xarray.Dataset) – Dataset with wind speed and direction.

  • freq (str) – Resampling frequency.

  • var_ws (str, optional) – Name of wind speed variable, by default “wind_speed”.

  • var_wd (str, optional) – Name of wind direction variable, by default “wind_direction”.

Returns:

Resampled dataset.

Return type:

xarray.Dataset