Date: 23 Nov 2026
Author: Fabien


## Intro 

I started this repository a couple of weeks ago to test some ideas by myself before handing over to Chloe and Rodrigo. As always, it took a bit more time than planned. This lead to some changes in OGGM itself, and was not all as easy (uncertainty is much harder than calibration)!

It is entirely AI generated (Claude Opus 5.5, high effort) based on my prompts. I didn't change any single line of code or text, but nudged the AI in one direction or another.

## Contents

There are two notebooks which were written for me to play around but still have value (geodetic_equifinality, wgms_static_calibration). They help understand the simpler things I think.

The other three (dynamic_*) are what we are trying to do here. What I think are the main "changes" to Chloe's current setup (I don't know it in detail so this is just inferred):
- The initialisation and spinup is now:
    - (i) doing the ice thickness inversion with the MB parameters 
    - (ii) adds a "growth/retreat" period before the actual historical spinup to mirror what the dynamic calibration is doing
    - (iii) shortened the spinup to 30 years instead of 50
- The observations are area, volume, volume change but with slighlty different targets and tolerances. The targets on volume and volume change are arbitrary and should be discussed.
- I tried to steer AI to write code according to the principles Francesca wanted (separating obs from target from runs) but I think the repo is still a bit messy and exploratory.

## What I think should happen with this

Code-wise, this repo could stay but would need still quite some work. I don't think that fully AI generated code repos is the way to go at this stage, and I think we should all take ownership of this by either tearing it down or studying it in more depth, otherwise we are on the way to an unmaintainable code base. The worst part of the repo are probably the notebooks, which are difficult to understand and have the best potental for human intervation.

Other more specific thoughts:

- It should be renamed to "OGGM-calib" or "oggm-sensi" or something less specific to AdaPBS. The AdaPBS part itself will be moved out of this repo when Esteban published his repository anyway, so this repo will import MUSA and adaPBS to add the domain knowledge
- I am unsure if the dynamic intialisation (growth or retreat) is a good idea. It seems to only be adding more noise, and within all the other uncertainties. We can try to keep it but if it becomes annoying one can switch it off. Note that the temperature offset used for this is part of the AdaPBS parameter ensemble, so it can be scrutinised. But what it does seems to be compensating for the Glen A / Volume relationship
- Chloe had a few more parameters in her setup. Here I think that the precipitation phase temperature should stay, but I am much less certain about the melt temperature threshold. It's so obviously linear with the temp_bias that we might as well just remove it already.
- I also had temp gradient and precip gradients in mind. But I'd rather not touch this can of worms for now.
- Salib should be used for the Sensitivity analysis.

## More general strategic thoughts

This has the potential to do a lot for us. In parallel to your work, I am already using AdaPBS to calibrate OGGM for my attribution paper, and we will probably use it as part of the DTC Glaciers project. It's very trivial to add observations (E.g. snowlines) to the objective function. But this is *calibration*, not *uncertainty*. And this doesn't change the plan for your paper I think.

Given the HUGE error bars after the default setup, I think that only a first part of the paper should deal with the default setup: the conclusions are that the parameter uncertainty is even crazier big than Rounce et al or Schuster et al describe, and this paper adds value by describing the relationship between the parameters and focussing on runoff.

But then we will need a second objective for the paper. I'm really curious about where your brainstorming took you for the paper draft, but we should discuss ASAP!