windkit.binned_wind_climate.wv_count_wrapper

windkit.binned_wind_climate.wv_count_wrapper(func)[source]

Decorator to handle wind vector count format.

Handles the case where the parameter is an xarray.DataArray with a wv_count format or a xarray.Dataset with a ‘wv_count’ data variable, i.e. has wind counts by bin and sector. If so, returns a binned wind climate xarray.Dataset. If it is not the case, it does nothing.