Skip to content

Commit ea1cda7

Browse files
Tutorial updates for v163 (#143)
* oggm v163 updates, + removing typos * updated gdirs to 2025.6
1 parent d077d84 commit ea1cda7

36 files changed

Lines changed: 827 additions & 587 deletions

‎_config.yml‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ html:
2323
use_repository_button: true
2424
use_issues_button: true
2525
use_edit_page_button: true
26-
announcement: |
27-
<p class="announcement">
28-
🚧 <strong>Scheduled maintenance:</strong> the OGGM cluster will be offline <strong>April 27 (evening CEST) – April 30 (morning CEST) 2025</strong>.
29-
<a href="https://oggm.org/2025/04/15/service-maintenance/">Learn more</a>.
30-
</p>
26+
announcement:
3127
extra_footer: |
3228
<p>
3329
These notebooks are licensed under a <a href="https://github.com/OGGM/tutorials/blob/master/LICENSE.txt" target="_blank">BSD-3-Clause license</a>.

‎notebooks/10minutes/dynamical_spinup.ipynb‎

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,16 @@
3535
"\n",
3636
"# Locals\n",
3737
"import oggm.cfg as cfg\n",
38-
"from oggm import utils, workflow, tasks, DEFAULT_BASE_URL\n",
39-
"from oggm.shop import gcm_climate"
38+
"from oggm import utils, workflow, DEFAULT_BASE_URL"
39+
]
40+
},
41+
{
42+
"cell_type": "code",
43+
"execution_count": null,
44+
"metadata": {},
45+
"outputs": [],
46+
"source": [
47+
"DEFAULT_BASE_URL"
4048
]
4149
},
4250
{
@@ -250,9 +258,9 @@
250258
"cell_type": "markdown",
251259
"metadata": {},
252260
"source": [
253-
"This is not really visible in the plots above, but the \"old\" method of initialisation in OGGM had another issue. It assumed dynamical steady state at the begining of the simulation (the RGI date), which was required by the bed inversion process. This could lead to artifacts (mainly in the glacier length and area, as well as velocities) during the first few years of the simulation. The dynamical spinup addresses this issue by starting the simulation in 1980. \n",
261+
"This is not really visible in the plots above, but the \"old\" method of initialisation in OGGM had another issue. It assumed a dynamical steady state at the beginning of the simulation (the RGI date), which was required by the bed inversion process. This could lead to artifacts (mainly in the glacier length and area, as well as velocities) during the first few years of the simulation. The dynamical spinup addresses this issue by starting the simulation in 1980.\n",
254262
"\n",
255-
"One of the way to see the importance of the spinup is to have a look at glacier velocities. Let's plot glacier volocities along the flowline in the year 2005 (the first year we have velocities from both the dynamical spinup, and without the spinup (\"cold start\" from an equilibrium):"
263+
"One of the way to see the importance of the spinup is to have a look at glacier velocities. Let's plot glacier velocities along the flowline in the year 2005 (the first year we have velocities from both the dynamical spinup, and without the spinup (\"cold start\" from an equilibrium):"
256264
]
257265
},
258266
{
@@ -262,15 +270,15 @@
262270
"outputs": [],
263271
"source": [
264272
"f = gdir.get_filepath('fl_diagnostics', filesuffix='_historical')\n",
265-
"with xr.open_dataset(f, group=f'fl_0') as dg:\n",
273+
"with xr.open_dataset(f, group='fl_0') as dg:\n",
266274
" dgno = dg.load()\n",
267275
"f = gdir.get_filepath('fl_diagnostics', filesuffix='_spinup_historical')\n",
268-
"with xr.open_dataset(f, group=f'fl_0') as dg:\n",
276+
"with xr.open_dataset(f, group='fl_0') as dg:\n",
269277
" dgspin = dg.load()\n",
270278
"\n",
271279
"year = 2005\n",
272-
"dgno.ice_velocity_myr.sel(time=year).plot(label='No spinup');\n",
273-
"dgspin.ice_velocity_myr.sel(time=year).plot(label='With spinup');\n",
280+
"dgno.ice_velocity_myr.sel(time=year).plot(label='No spinup')\n",
281+
"dgspin.ice_velocity_myr.sel(time=year).plot(label='With spinup')\n",
274282
"plt.title(f'Velocity along the flowline at year {year}'); plt.legend();"
275283
]
276284
},
@@ -305,6 +313,13 @@
305313
"- return to the [OGGM documentation](https://docs.oggm.org)\n",
306314
"- back to the [table of contents](../welcome.ipynb)"
307315
]
316+
},
317+
{
318+
"cell_type": "code",
319+
"execution_count": null,
320+
"metadata": {},
321+
"outputs": [],
322+
"source": []
308323
}
309324
],
310325
"metadata": {

0 commit comments

Comments
 (0)