windkit.sector.create_ws_bin_coords

windkit.sector.create_ws_bin_coords(bin_width=1.0, nws=40)[source]

Create wind speed bins coordinates from a bin width and a number of bins.

Create a data array with the wind speed bins, ceiling and floor.

Parameters:
  • bin_width (float) – Wind speed bin width, defaults to 1.0

  • nws (int) – Number of wind speed bins, defaults to 40.

Returns:

cen_da – Data array with wind speed bins.

Return type:

xarray.DataArray