pywasp.weibull_fit#

pywasp.weibull_fit(bwc, include_met_fields=None, keep_attrs=True, n_sectors=None, conf=None)[source]#

Returns sectorwise Weibull parameters using WAsP’s fitting algorithm

Warning

This function is experimental and its signature may change.

Parameters:
  • bwc (xarray.Dataset) – Binned wind climate xr.Dataset object

  • include_met_fields (list of str) – Calculate the included meteorological variables, see fields argument to pywasp.wasp.wind_climate.add_met_fields for more details. (Default: None, which means to not include any meteorological fields)

  • keep_attrs (bool) – Should we keep the attributes from the Binned Wind Climate (Default: True)

  • n_sectors (int) – Number of sectors to fit the weibull, if different from number of sectors in bwc (Default: None, which means to keep the same number of sectors as in the bwc)

  • conf (pywasp.wasp.Config) – WAsP configuration; climate parameters 110-112 control the fit, 111 being its power (Default: None, which means Config(), with the WAsP GUI’s power 0.3333)

Returns:

xarray.Dataset – Weibull Wind Climate of same spatial extent as the input bwc