Ouranosinc / xscen

A climate change scenario-building analysis framework.
https://xscen.readthedocs.io/
Apache License 2.0
17 stars 2 forks source link

Better support for periods in `ensemble_stats` #297

Open RondeauG opened 11 months ago

RondeauG commented 11 months ago

Addressing a Problem?

robustness_factors, and maybe other ensemble statistics (but also maybe not, see #298), has no support for multiple periods or horizons (i.e. if given a 1981-2100 timeseries, it will average all the data to compute its deltas).

Also linked to this, but how ref was handled in xs.ensemble_stats in xscen <= 0.7.21 was completely wrong and will be entirely removed in an upcoming PR.

Potential Solution

Implementing a periods argument could solve those problems.

Additional context

No response

Contribution