pywasp.bwc_resample_sectors

pywasp.bwc_resample_sectors(source, n_sectors=12, offset=None)[source]

Resamples a histogram to different sector structure.

Parameters:
  • source (xarray.Dataset) – Binned wind climate xr.Dataset object that we want to resample

  • target (xarray.Dataset) – Binned wind climate xr.Dataset object structure that we want to resample to

  • offset (xarray.DataArray or float) – Offset in degrees with which the histogram are rotated (positive for clockwise rotation). If it is a DataArray, needs to have the same spatial shape as the binned wind climate.

Returns:

xarray.Dataset – Binned Wind Climate