windkit.wind.vinterp_wind_speed

windkit.wind.vinterp_wind_speed(wind_speed, height, log_height=True, **kwargs)[source]

Vertically interpolate wind speed to a given height from other height levels.

Parameters:
  • wind_speed (xarray.DataArray) – Wind speed. Must have a height dimension.

  • height (float, xarray.DataArray) – Height to interpolate wind speed to.

  • log_height (bool, optional) – If True, interpolate in log-height space. Defaults to True.

  • **kwargs (dict, optional) – Additional keyword arguments passed to xarray.interp.

Returns:

wind_speed – Interpolated wind speed.

Return type:

xarray.DataArray