Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 1 addition & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ html:
use_repository_button: true
use_issues_button: true
use_edit_page_button: true
announcement: |
<p class="announcement">
🚧 <strong>Scheduled maintenance:</strong> the OGGM cluster will be offline <strong>April 27 (evening CEST) – April 30 (morning CEST) 2025</strong>.
<a href="https://oggm.org/2025/04/15/service-maintenance/">Learn more</a>.
</p>
announcement:
extra_footer: |
<p>
These notebooks are licensed under a <a href="https://github.com/OGGM/tutorials/blob/master/LICENSE.txt" target="_blank">BSD-3-Clause license</a>.
Expand Down
31 changes: 23 additions & 8 deletions notebooks/10minutes/dynamical_spinup.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,16 @@
"\n",
"# Locals\n",
"import oggm.cfg as cfg\n",
"from oggm import utils, workflow, tasks, DEFAULT_BASE_URL\n",
"from oggm.shop import gcm_climate"
"from oggm import utils, workflow, DEFAULT_BASE_URL"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"DEFAULT_BASE_URL"
]
},
{
Expand Down Expand Up @@ -250,9 +258,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"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",
"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",
"\n",
"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):"
"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):"
]
},
{
Expand All @@ -262,15 +270,15 @@
"outputs": [],
"source": [
"f = gdir.get_filepath('fl_diagnostics', filesuffix='_historical')\n",
"with xr.open_dataset(f, group=f'fl_0') as dg:\n",
"with xr.open_dataset(f, group='fl_0') as dg:\n",
" dgno = dg.load()\n",
"f = gdir.get_filepath('fl_diagnostics', filesuffix='_spinup_historical')\n",
"with xr.open_dataset(f, group=f'fl_0') as dg:\n",
"with xr.open_dataset(f, group='fl_0') as dg:\n",
" dgspin = dg.load()\n",
"\n",
"year = 2005\n",
"dgno.ice_velocity_myr.sel(time=year).plot(label='No spinup');\n",
"dgspin.ice_velocity_myr.sel(time=year).plot(label='With spinup');\n",
"dgno.ice_velocity_myr.sel(time=year).plot(label='No spinup')\n",
"dgspin.ice_velocity_myr.sel(time=year).plot(label='With spinup')\n",
"plt.title(f'Velocity along the flowline at year {year}'); plt.legend();"
]
},
Expand Down Expand Up @@ -305,6 +313,13 @@
"- return to the [OGGM documentation](https://docs.oggm.org)\n",
"- back to the [table of contents](../welcome.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading
Loading