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 resampletarget (
xarray.Dataset
) – Binned wind climate xr.Dataset object structure that we want to resample tooffset (
xarray.DataArray
orfloat
) – 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