windkit.binned_wind_climate.bwc_ws_moment

windkit.binned_wind_climate.bwc_ws_moment(bwc, /, n=1.0, bysector=False)[source]

Calculate the n^th moment of the wind speed from a bwc

Parameters:
  • bwc (xarray.Dataset) – Binned wind climate xr.Dataset object

  • n (float) – Moment to compute, defaults to 1.0.

  • bysector (bool) – Whether to return the sectorwise wind speed moment or the all-sector mean moment. Defaults to False.

Returns:

ws_moment – Array of wind speed moments.

Return type:

xarray.DataArray