Skip to content
Educational notebooks to be run on
Branch: master
Clone or download
ehultee and fmaussion Fix resolution on MBG notebook (#7)
* Consistent use of physical units & avoiding hard-coded arguments

In flowline_model: The previous flowline_model.ipynb used hard-coded widths in "grid point" units. If the user changed the grid point spacing map_dx, the hard-coded widths did not update (so their physical-unit values changed despite the user not changing them directly). This update adds a line for the user to define widths in physical units and automatically adjusts the width in grid units if map_dx changes.

Also revised to remove double-use of variable name "widths", introducing "wider_widths" instead, so that the notebook cells can be run multiple times and produce correct results.

In mass_balance_gradients: Some initialization aspects of mass_balance_gradients were slightly different in style from flowline_model. Changed so that students more easily see the parallel in the workflow.

Also added units to MBGs and corrected a typo.

Finally, for users not familiar with OGGM function calls, the use of unlabelled arguments could be confusing. Updated so that the user adjusts a single named variable to change ELA, and the notebook then implements that variable instead of a preset value to call OGGM mass balance functions.

* review

* Fix resolution MBG

Higher resolution setting (accidentally included with previous PR) raised a FloatingPointError when user tried to compute response time of glacier with highest mass balance gradient.

Changing the resolution back seems to fix the problem.  Unclear why, but it works.
Latest commit f4f86de Jul 12, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Move from edu to new repo Jun 22, 2019
graphics Add graphics section (#2) Jun 28, 2019
oggm-edu Fix resolution on MBG notebook (#7) Jul 12, 2019
oggm-tuto New frontal ablation notebook (#4) Jul 2, 2019
.gitignore Add graphics section (#2) Jun 28, 2019
LICENSE Move from edu to new repo Jun 22, 2019 Update README Jun 22, 2019
welcome.ipynb Add graphics section (#2) Jun 28, 2019

You can’t perform that action at this time.