windkit.weibull.fit_weibull_wasp_m1_m3

windkit.weibull.fit_weibull_wasp_m1_m3(m1, m3, atol=1e-08)[source]

Fit weibull parameters from the first and third moments

Parameters:
Returns:

  • A (xarray.DataArray) – Weibull scale parameter

  • k (xarray.DataArray) – Weibull shape parameter

Notes

This function has the optional dependency ‘numba’. If numba is installed, the function will use a numba-compiled version of the algorithm which is much faster. If numba is not installed, the function will use a scipy-based root-finding algorithm and vectorization through np.vectorize which is much slower.