Ouranosinc / xscen

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

Incorrect weights for independence_level="GCM" #230

Closed RondeauG closed 1 year ago

RondeauG commented 1 year ago

Setup Information

Description

The current code in xs.generate_weights uses this kind of structure: image

This is fine for '1 model - 1 vote' (independence_level='all') since in that case, members of a given model (CanESM2 and CanESM2-CRCM5) will share the same weight. If we compute weights for independence_level='GCM', we get:

However, the thinking behind '1 GCM - 1 vote' is that the GCM is the level at which valuable information is created. The structure should thus instead be: image

Where you start on the basis that the added value is provided by the realisations. In that scheme, we'd get:

Additional context

independence_level=all would be unaffected by the change. However, results for independence_level=GCM could be substantially different depending on the datasets provided, to the level of a breaking change rather than a bugfix.

Contribution