Skip to content

Reformat MCMC calibration framework to make more modular#155

Merged
btobers merged 12 commits intodevfrom
mcmc_reformat
Nov 4, 2025
Merged

Reformat MCMC calibration framework to make more modular#155
btobers merged 12 commits intodevfrom
mcmc_reformat

Conversation

@btobers
Copy link
Collaborator

@btobers btobers commented Oct 29, 2025

Set up observation and prediction variables as dictionary with matched keys to compare in log-likelihood estimation. This removes the hard-coded dependence that the observed and predicted mass balance are the 0th elements, and the observed and predicted elevation change (if available) are the 1st elements. This will make for a more robust calibration framework as various datasets are incorporated.

@btobers btobers changed the base branch from main to dev October 29, 2025 23:38
@btobers btobers linked an issue Oct 31, 2025 that may be closed by this pull request
@btobers
Copy link
Collaborator Author

btobers commented Nov 4, 2025

@drounce this PR is ready for review. Itslightly reformats the mcmc framework to make it far more modular. The observations and predictions are now stored as dictionaries with matching keys, so no variables are hard-coded in the computation of log-likelihoods. This PR also modifies the chain plotting to now include the along-chain average residual for calibration other than the glacier wide balance (e.g. binned elevation change, snowline elevation, etc.).

@btobers btobers marked this pull request as ready for review November 4, 2025 15:16
@btobers btobers requested a review from drounce November 4, 2025 15:16
@btobers btobers merged commit 7ad4cae into dev Nov 4, 2025
1 check passed
@btobers btobers deleted the mcmc_reformat branch November 4, 2025 15:35
btobers added a commit that referenced this pull request Nov 4, 2025
Closes #152

* Allow user to specify their own mass balance dataset and field names

Closes #156

* process 2d dhdt to glacierwide mass balance and 1d elev change profiles

* Add dhdt_processing notebook to test suite

* Reformat MCMC calibration framework to make more modular (#155)

Closes #151

* set up obs and preds of mcmc as dictionary and match keys when calculating log likelihood of each step

Closes #154

* Plot residual for any pred-obs pairs that aren't glacierwide mb, whether 2d or 1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make MCMC calibration more modular for various calibration options

2 participants