Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
df70d68
enabling daily mass balance functionality but stopping prior to outpu…
drounce Oct 14, 2025
cc1d85f
Remove try/except blocks
btobers Oct 15, 2025
59e5ffb
Update *monthly* output to directly correlate to specified model time…
btobers Oct 15, 2025
ebb0031
Merge branch 'dev' into 133-mb_daily
btobers Oct 15, 2025
eee1034
Ran ruff
btobers Oct 15, 2025
7010ae3
Update days_in_step
btobers Oct 15, 2025
45bbf17
MAD bug fix
btobers Oct 15, 2025
382026f
Simplify nyears definition
btobers Oct 16, 2025
d4376b7
Merge branch 'dev' into 133-mb_daily
btobers Oct 16, 2025
6f56ea7
Output variable bug fix
btobers Oct 16, 2025
cb7d23b
Ruff
btobers Oct 16, 2025
d5711a6
Update calib options table
btobers Oct 16, 2025
d07cee4
Update calib options table
btobers Oct 16, 2025
d164fa4
Update variable names
btobers Oct 16, 2025
8b34447
Store timestep in output model_parameters attribute key
btobers Oct 16, 2025
db80a57
postproc_subannual_mass regardless of monthly/daily model timestep
btobers Oct 16, 2025
b21bef1
Update ouptut dataset variable naming
btobers Oct 16, 2025
b585b00
Update postproc_subannual_mass script bin
btobers Oct 16, 2025
739e70e
Bug fix in output dataset naming when exporting all sims
btobers Oct 17, 2025
e38b86f
Bug fix in compilation - not set up to compile ouput from individual …
btobers Oct 17, 2025
5ef443a
Update binned subannual thickness/mass derivation to account for eith…
btobers Oct 17, 2025
b306cfe
Add test_postproc_binned_subannual_thick() to test04
btobers Oct 17, 2025
9bb7181
Applied ruff formatting
btobers Oct 17, 2025
6f1e98d
Modularize calculate_elev_change_1d() to work with either monthly/dai…
btobers Oct 18, 2025
38b708b
Clean up calculate_elev_change_1d()
btobers Oct 20, 2025
10ccb0c
Ruff formatting
btobers Oct 20, 2025
55b68b6
Update variable naming
btobers Oct 20, 2025
0e70634
Update glacierdynamics.MassRedistributionCurveModel to work with any …
btobers Oct 22, 2025
0fbe1b2
fixed bug in lon conversion for elevation and added more functionalit…
drounce Oct 30, 2025
97c370f
Ran ruff formatter
btobers Nov 3, 2025
cf9ea06
Reaload cftime dates using pd.to_datetime()
btobers Nov 3, 2025
98a0e1a
Update expected types
btobers Nov 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ jobs:
python3 -m pytest --cov=pygem -v --durations=20 pygem/tests/test_01_basics.py
python3 -m pytest --cov=pygem -v --durations=20 pygem/tests/test_02_config.py
python3 -m pytest --cov=pygem -v --durations=20 pygem/tests/test_03_notebooks.py
python3 -m pytest --cov=pygem -v --durations=20 pygem/tests/test_04_postproc.py
python3 -m pytest --cov=pygem -v --durations=20 pygem/tests/test_04_auxiliary.py
python3 -m pytest --cov=pygem -v --durations=20 pygem/tests/test_05_postproc.py
9 changes: 4 additions & 5 deletions docs/calibration_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ Several calibration options exist, which vary with respect to complexity and com

| Calibration option | Overview | Reference |
| :--- | :--- | :--- |
| ['HH2015'](HH2015_target) | Finds single set of parameters.<br>Varies in order: $f_{snow}$, $k_{p}$, $T_{bias}$ | [Huss and Hock (2015)](https://www.frontiersin.org/articles/10.3389/feart.2015.00054/full) |
| ['HH2015mod'](HH2015mod_target) | Finds single set of parameters.<br>Varies in order: $k_{p}$, $T_{bias}$ | [Rounce et al. 2020](https://www.cambridge.org/core/journals/journal-of-glaciology/article/quantifying-parameter-uncertainty-in-a-largescale-glacier-evolution-model-using-bayesian-inference-application-to-high-mountain-asia/61D8956E9A6C27CC1A5AEBFCDADC0432) |
| ['emulator'](emulator_target) | Creates emulator for ['MCMC'](MCMC_target).<br>Finds single set of parameters with emulator following ['HH2015mod'](HH2015mod_target) | [Rounce et al. 2023](https://www.science.org/doi/10.1126/science.abo1324) |
| ['MCMC'](MCMC_target) | Finds multiple sets of parameters using Bayesian inference with [emulator](emulator_target).<br> Varies $f_{snow}$, $k_{p}$, $T_{bias}$ | [Rounce et al. 2023](https://www.science.org/doi/10.1126/science.abo1324) |
| ['MCMC_fullsim'](MCMC_target) | Finds multiple sets of parameters using Bayesian inference with full model simulations.<br> Varies $f_{snow}$, $k_{p}$, $T_{bias}$ | [Rounce et al. 2020](https://www.cambridge.org/core/journals/journal-of-glaciology/article/quantifying-parameter-uncertainty-in-a-largescale-glacier-evolution-model-using-bayesian-inference-application-to-high-mountain-asia/61D8956E9A6C27CC1A5AEBFCDADC0432) |
| ['HH2015'](HH2015_target) | Finds single set of parameters.<br>Varies in order: $f_{snow}$, $k_{p}$, $T_{bias}$ | [Huss and Hock, 2015](https://www.frontiersin.org/articles/10.3389/feart.2015.00054/full) |
| ['HH2015mod'](HH2015mod_target) | Finds single set of parameters.<br>Varies in order: $k_{p}$, $T_{bias}$ | [Rounce et al., 2020](https://www.cambridge.org/core/journals/journal-of-glaciology/article/quantifying-parameter-uncertainty-in-a-largescale-glacier-evolution-model-using-bayesian-inference-application-to-high-mountain-asia/61D8956E9A6C27CC1A5AEBFCDADC0432) |
| ['emulator'](emulator_target) | Creates emulator for ['MCMC'](MCMC_target).<br>Finds single set of parameters with emulator following ['HH2015mod'](HH2015mod_target) | [Rounce et al., 2023](https://www.science.org/doi/10.1126/science.abo1324) |
| ['MCMC'](MCMC_target) | Finds many sets of parameters using Bayesian inference. Setting `calib.MCMC_params.option_use_emulator=True` in ~/PyGEM/config.yaml will run Bayesian inference using the mass balance emulator. Setting `calib.MCMC_params.option_use_emulator=False` (or when performing dynamical calibration against elevation change data)$^*$ will run Bayesian inference calibration with full model simulations.<br>Varies $f_{snow}$, $k_{p}$, $T_{bias}$, (optionally $\rho_{ablation}$, $\rho_{accumulation}$)$^*$ | [Rounce et al., 2020](https://www.cambridge.org/core/journals/journal-of-glaciology/article/quantifying-parameter-uncertainty-in-a-largescale-glacier-evolution-model-using-bayesian-inference-application-to-high-mountain-asia/61D8956E9A6C27CC1A5AEBFCDADC0432); [2023](https://www.science.org/doi/10.1126/science.abo1324) |
| [Future options](cal_custom_target) | Stay tuned for new options coming in 2023/2024! | |

The output of each calibration is a .json file that holds a dictionary of the calibration options and the subsequent model parameters. Thus, the .json file will store several calibration options. Each calibration option is a key to the dictionary. The model parameters are also stored in a dictionary (i.e., a dictionary within a dictionary) with each model parameter being a key to the dictionary that provides access to a list of values for that specific model parameter. The following shows an example of how to print a list of the precipitation factors ($k_{p}$) for the calibration option specified in the input file:
Expand Down
314 changes: 0 additions & 314 deletions pygem/bin/postproc/postproc_binned_monthly_mass.py

This file was deleted.

Loading