windkit.create_wsbin_coords

windkit.create_wsbin_coords(bins=40, width=1.0, start=0.0)[source]

Create wind speed bins coordinates.

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

Parameters:
  • bins (int, array_like) – Wind speed bins. Either a single integer number of bins, or an array of float bin edges.

  • width (float, optional) – Width of the bins, by default 1.0. Only used if bins is an integer.

  • start (float, optional) – Starting value of the bins, by default 0.0. Only used if bins is an integer.

Returns:

Data array with wind speed bins and center, ceiling, and floor coordinates.

Return type:

xarray.DataArray