windkit.binned_wind_climate.bwc_from_timeseries

windkit.binned_wind_climate.bwc_from_timeseries(ts, ws_bin_width=1.0, nwsbin=30, nsec=12, normalize=True, **kwargs)[source]

Creates object from a timeseries.

Parameters:
  • ts (xarray.Dataset) – Xarray dataset with variables ‘wind_speed’ and ‘wind_direction’ and with a coordinate and dimension ‘time’.

  • ws_bin_width (float) – Width of the wind speed bins, defaults to 1.0.

  • nwsbin (int) – Number of wind speed bins, defaults to 30.

  • nsec (int) – Number of sectors, defaults to 12.

  • normalize (bool) – If set to True, convert wind vector count histogram to wind sector-wise relative frequency. Defaults to True

  • kwargs (dict) – Additional argument ‘wasp_header’

Returns:

bwc – Binned wind climate from the timeseries.

Return type:

xarray.Dataset