Ouranosinc / xclim

Library of derived climate variables, ie climate indicators, based on xarray.
https://xclim.readthedocs.io/en/stable/
Apache License 2.0
333 stars 59 forks source link

Weighted statistics #605

Closed huard closed 2 years ago

huard commented 3 years ago

Ensemble weighting requires to compute stats (mean, std, quantiles) on weighted arrays. There is only partial support for this in numpy and xarray.

huard commented 3 years ago

Reference implementation: https://www.statsmodels.org/dev/generated/statsmodels.stats.weightstats.DescrStatsW.html

https://github.com/statsmodels/statsmodels/blob/master/statsmodels/stats/weightstats.py

https://github.com/pydata/xarray/pull/2922

huard commented 3 years ago

Status:

huard commented 2 years ago

Closing this issue here since it's not out of our hands.