Skip to content

Commit

Permalink
Couple of bugs (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Jan 13, 2019
1 parent f7144f7 commit 8d755e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
1 change: 1 addition & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pip install datashader
pip install descartes
pip install salem
pip install git+https://github.com/OGGM/oggm.git
pip install git+https://github.com/retostauffer/python-colorspace

# Jupyterlab
pip install jupyterlab==0.35.4
Expand Down
34 changes: 9 additions & 25 deletions notebooks/oggm-tuto/getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"metadata": {},
"outputs": [],
"source": [
"from oggm import cfg\n",
"from oggm import cfg, utils\n",
"cfg.initialize(logging_level='WORKFLOW')"
]
},
Expand All @@ -91,29 +91,6 @@
"See [here](https://github.com/OGGM/oggm/blob/master/oggm/params.cfg) for the default parameter file and a description of their role and default value."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We will set the default \"border\" option to a larger value, since we plan to do some simulations of glacier dynamics and expect our glaciers to grow:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"cfg.PARAMS['border'] = 80"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The \"border\" parameter decides on the number of DEM grid points we'd like to add to each side of the glacier for the local map: the larger the glacier will grow, the larger the border parameter should be. Here we will use [pre-processed directories](https://docs.oggm.org/en/latest/input-data.html#pre-processed-directories), therefore the available border values are: **10, 80, 160, 250.**"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -209,7 +186,14 @@
"metadata": {},
"outputs": [],
"source": [
"gdirs = workflow.init_glacier_regions(rgi_ids, from_prepro_level=3)"
"gdirs = workflow.init_glacier_regions(rgi_ids, from_prepro_level=3, prepro_border=80)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The \"border\" parameter decides on the number of DEM grid points we'd like to add to each side of the glacier for the local map: the larger the glacier will grow, the larger the border parameter should be. Here we will use [pre-processed directories](https://docs.oggm.org/en/latest/input-data.html#pre-processed-directories), therefore the available border values are: **10, 80, 160, 250.**"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/oggm-tuto/working_with_rgi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
"metadata": {},
"outputs": [],
"source": [
"workflow.execute_entity_task(tasks.run_random_climate, gdirs, nyears=200,\n",
"workflow.execute_entity_task(tasks.run_random_climate, gdirs, nyears=100,\n",
" y0=2000, output_filesuffix='_2000')\n",
"ds2000 = utils.compile_run_output(gdirs, filesuffix='_2000')"
]
Expand Down

0 comments on commit 8d755e9

Please sign in to comment.