windkit.sector.create_ws_bin_coords_from_values

windkit.sector.create_ws_bin_coords_from_values(wsbins)[source]

Create wind speed bins coordinates from an array of bins.

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

Parameters:

wsbins (numpy.ndarray or array_like) – 1D array with wind speed bins.

Returns:

cen_da – Data array with wind speed bins.

Return type:

xarray.DataArray