Skip to content
2 changes: 1 addition & 1 deletion notebooks/02-introduction-geospatial-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/02-introduction-geospatial-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down
2 changes: 1 addition & 1 deletion notebooks/03-coordinate-reference-systems.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/03-coordinate-reference-systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down
2 changes: 1 addition & 1 deletion notebooks/04-spatial-relationships-joins.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/04-spatial-relationships-joins.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down
5 changes: 4 additions & 1 deletion notebooks/05-spatial-operations-overlays.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down Expand Up @@ -2761,6 +2761,9 @@
],
"metadata": {
"celltoolbar": "Nbtutor - export exercises",
"jupytext": {
"cell_metadata_filter": "-run_control,-deletable,-editable,-jupyter,-slideshow"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
Expand Down
3 changes: 2 additions & 1 deletion notebooks/05-spatial-operations-overlays.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
jupytext:
cell_metadata_filter: -run_control,-deletable,-editable,-jupyter,-slideshow
text_representation:
extension: .md
format_name: myst
Expand All @@ -15,7 +16,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down
2 changes: 1 addition & 1 deletion notebooks/11-xarray-intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/11-xarray-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down
2 changes: 1 addition & 1 deletion notebooks/12-xarray-advanced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/12-xarray-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down
19 changes: 4 additions & 15 deletions notebooks/13-raster-processing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down Expand Up @@ -4062,7 +4062,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Alternatively to masking the nodata value manually, you can do this explicitly when loading the data, using the `mask_and_scale=True` keyword:"
"__Remember__ Alternatively to masking the nodata value manually, you can do this explicitly when loading the data, using the `mask_and_scale=True` keyword (see also notebook [11-xarray-intro.ipynb](11-xarray-intro.ipynb)):"
]
},
{
Expand Down Expand Up @@ -7777,7 +7777,6 @@
}
],
"source": [
"%%time\n",
"green_area = focal.focal_stats(green_arr, kernel, stats_funcs=[\"sum\"])"
]
},
Expand Down Expand Up @@ -7833,24 +7832,14 @@
},
{
"cell_type": "code",
"execution_count": 109,
"execution_count": null,
"metadata": {
"tags": [
"nbtutor-solution"
]
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 28.7 ms, sys: 76.5 ms, total: 105 ms\n",
"Wall time: 107 ms\n"
]
}
],
"outputs": [],
"source": [
"%%time\n",
"green_area_arr = signal.convolve(green_arr, kernel, mode='same')"
]
},
Expand Down
6 changes: 2 additions & 4 deletions notebooks/13-raster-processing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down Expand Up @@ -514,7 +514,7 @@ dem_masked = dem.where(dem != dem.rio.nodata)
dem_masked.plot.imshow(robust=True, cmap="terrain")
```

Alternatively to masking the nodata value manually, you can do this explicitly when loading the data, using the `mask_and_scale=True` keyword:
__Remember__ Alternatively to masking the nodata value manually, you can do this explicitly when loading the data, using the `mask_and_scale=True` keyword (see also notebook [11-xarray-intro.ipynb](11-xarray-intro.ipynb)):

```{code-cell} ipython3
dem_masked = xr.open_dataarray("zip://./data/gent/DHMVIIDTMRAS25m.zip", engine="rasterio", mask_and_scale=True).sel(band=1)
Expand Down Expand Up @@ -1085,7 +1085,6 @@ kernel = convolution.circle_kernel(x, y, 500)
```{code-cell} ipython3
:tags: [nbtutor-solution]

%%time
green_area = focal.focal_stats(green_arr, kernel, stats_funcs=["sum"])
```

Expand All @@ -1104,7 +1103,6 @@ from scipy import signal
```{code-cell} ipython3
:tags: [nbtutor-solution]

%%time
green_area_arr = signal.convolve(green_arr, kernel, mode='same')
```

Expand Down
4 changes: 2 additions & 2 deletions notebooks/14-combine-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down Expand Up @@ -2517,7 +2517,7 @@
" \n",
"- Prepare all the links by composing the base_url ('http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/surface/air.sig995') with the required years\n",
"- Use the list of file links as the inputfor the `xr.open_mfdataset` to create a single `xarray.DataSet`.\n",
"- Whereas this i 600MB of data, the initial loading is not actually reading in the data.\n",
"- Whereas this is 600MB of data, the initial loading is not actually reading in the data.\n",
" \n",
"<details>\n",
" \n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/14-combine-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down Expand Up @@ -214,7 +214,7 @@ We want to download the surface temperature data from 1990 till 2000 and combine

- Prepare all the links by composing the base_url ('http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis/surface/air.sig995') with the required years
- Use the list of file links as the inputfor the `xr.open_mfdataset` to create a single `xarray.DataSet`.
- Whereas this i 600MB of data, the initial loading is not actually reading in the data.
- Whereas this is 600MB of data, the initial loading is not actually reading in the data.

<details>

Expand Down
4 changes: 2 additions & 2 deletions notebooks/15-xarray-dask-big-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2020*\n",
"> *November, 2022*\n",
">\n",
"> *© 2020, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down Expand Up @@ -2118,7 +2118,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.10.6"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
4 changes: 2 additions & 2 deletions notebooks/15-xarray-dask-big-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.13.0
jupytext_version: 1.14.0
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand All @@ -15,7 +15,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2020*
> *November, 2022*
>
> *© 2020, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down
2 changes: 1 addition & 1 deletion notebooks/90_package_numpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/90_package_numpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down
2 changes: 1 addition & 1 deletion notebooks/91_package_rasterio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"\n",
"> *DS Python for GIS and Geoscience* \n",
"> *October, 2022*\n",
"> *November, 2022*\n",
">\n",
"> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/91_package_rasterio.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kernelspec:


> *DS Python for GIS and Geoscience*
> *October, 2022*
> *November, 2022*
>
> *© 2022, Joris Van den Bossche and Stijn Van Hoey. Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*

Expand Down
Loading