Skip to content
Merged
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
17 changes: 12 additions & 5 deletions notebooks/10minutes/preprocessed_directories.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This tutorial is a first introduction into running OGGM. The OGGM workflow is best explained with an example. In the following, we will show you the OGGM fundamentals ([Doc page: model structure and fundamentals](https://docs.oggm.org/en/stable/structure.html)). This example is also meant to guide you through a first-time setup if you are using OGGM on your own computer. If you prefer not to install OGGM on your computer, you can always run this notebook [online](https://docs.oggm.org/en/stable/cloud.html) instead!"
"This tutorial provides a first introduction to running OGGM. The OGGM workflow is best understood through a concrete example, and in the following we will guide you through the core concepts and workflow of OGGM ([model structure and fundamentals](https://docs.oggm.org/en/stable/structure.html)).\n",
"\n",
"This example is also designed to help you set up OGGM for the first time on your own computer. If you prefer not to install OGGM locally, you can run this notebook online instead via [MyBinder or OGGM-Hub](https://docs.oggm.org/en/stable/cloud.html)."
]
},
{
Expand Down Expand Up @@ -180,7 +182,7 @@
},
"outputs": [],
"source": [
"rgi_ids = ['RGI60-11.01328', 'RGI60-11.01450'] "
"rgi_ids = ['RGI60-11.01328', 'RGI60-11.01450']"
]
},
{
Expand Down Expand Up @@ -249,7 +251,7 @@
"gdirs = workflow.init_glacier_directories(\n",
" rgi_ids, # which glaciers?\n",
" prepro_base_url=DEFAULT_BASE_URL, # where to fetch the data?\n",
" from_prepro_level=4, # what kind of data? \n",
" from_prepro_level=4, # what kind of data?\n",
" prepro_border=80 # how big of a map?\n",
")"
]
Expand Down Expand Up @@ -509,7 +511,7 @@
"fl = inversion_output[0]\n",
"# the last grid points often have irrealistic velocities\n",
"# because of the equilibrium assumption\n",
"vel = fl['u_surface'][:-1] \n",
"vel = fl['u_surface'][:-1]\n",
"plt.plot(vel, label='Velocity along flowline (m yr-1)'); plt.legend();"
]
},
Expand Down Expand Up @@ -547,6 +549,11 @@
],
"metadata": {
"hide_input": false,
"kernelspec": {
"display_name": "oggm_env_314",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand All @@ -557,7 +564,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
"version": "3.14.0"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down
10 changes: 4 additions & 6 deletions notebooks/welcome.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"source": [
"# OGGM tutorials\n",
"\n",
"Welcome to the OGGM tutorials, a collection of interactive notebooks designed to guide you through glacier modelling with OGGM.\n",
"**Welcome to the OGGM tutorials, a collection of interactive notebooks designed to guide you through glacier modelling with OGGM.**\n",
"\n",
"If you are new to Jupyter Notebooks or JupyterLab, we recommend starting with our [introduction to jupyter notebooks](https://edu.oggm.org/en/latest/notebooks_howto.html)!\n",
"\n",
"If you are reading this on our website (https://oggm.org/tutorials), note that each page displayed here is in fact a Jupyter notebook. You can launch an interactive version of these tutorials online with [MyBinder or OGGM-Hub](https://docs.oggm.org/en/latest/cloud.html) by clicking the launch button at the top right of this page (the little rocket 🚀).\n",
"If you are reading this on our website (https://oggm.org/tutorials), note that each page displayed here is in fact a Jupyter notebook. You can launch an interactive version of these tutorials online with [MyBinder or OGGM-Hub](https://docs.oggm.org/en/latest/cloud.html) by clicking the \"launch\" button at the top right of this page (the little rocket 🚀).\n",
"\n",
"\n",
"```{admonition} A note on tutorial versions\n",
"```{admonition} A note on OGGM versions\n",
":class: note, dropdown\n",
"\n",
"⚠️ These tutorials are available in several versions:\n",
Expand All @@ -23,9 +23,7 @@
"- [v1.5.3](https://tutorials.oggm.org/v1.5.3/notebooks/welcome.html) (2022): legacy tutorials for OGGM versions prior to v1.6 and the mass-balance calibration overhaul.\n",
"\n",
"You can download the notebooks for any version from GitHub by selecting the corresponding branch:\n",
"[stable](https://github.com/OGGM/tutorials/tree/stable), \n",
"[master](https://github.com/OGGM/tutorials), \n",
"[v1.5.3](https://github.com/OGGM/tutorials/tree/v1.5.3).\n",
"[stable](https://github.com/OGGM/tutorials/tree/stable), [master](https://github.com/OGGM/tutorials), [v1.5.3](https://github.com/OGGM/tutorials/tree/v1.5.3).\n",
"\n",
"Please make sure you are using matching versions of OGGM and the tutorials.\n",
"```"
Expand Down
Loading