Skip to content

Commit 493deb0

Browse files
authored
Merge pull request #981 from CLIMADA-project/feature/climada_osmflex
Add osm-flex to CLIMADA core
2 parents 86061e2 + b90d42e commit 493deb0

File tree

5 files changed

+659
-3
lines changed

5 files changed

+659
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Code freeze date: YYYY-MM-DD
1212

1313
### Added
1414

15+
- Add `osm-flex` package to CLIMADA core [#981](https://github.com/CLIMADA-project/climada_python/pull/981)
16+
- `doc.tutorial.climada_entity_Exposures_osm.ipynb` tutorial explaining how to use `osm-flex`with CLIMADA
1517
- `climada.util.coordinates.bounding_box_global` function [#980](https://github.com/CLIMADA-project/climada_python/pull/980)
1618
- `climada.util.coordinates.bounding_box_from_countries` function [#980](https://github.com/CLIMADA-project/climada_python/pull/980)
1719
- `climada.util.coordinates.bounding_box_from_cardinal_bounds` function [#980](https://github.com/CLIMADA-project/climada_python/pull/980)

doc/tutorial/climada_entity_Exposures_osm.ipynb

Lines changed: 646 additions & 0 deletions
Large diffs are not rendered by default.

doc/tutorial/climada_entity_Exposures_polygons_lines.ipynb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
" * Interpolate geometries to points to fit in an `Exposure` instance; \n",
2525
" * Disaggregate the respective geometry values to the point values\n",
2626
"2. Perform the impact calculation in CLIMADA with the point exposure\n",
27-
"3. Aggregate the calculated point `Impact` back to an impact instance for the initial polygons or lines "
27+
"3. Aggregate the calculated point `Impact` back to an impact instance for the initial polygons or lines \n",
28+
"\n",
29+
"Note:\n",
30+
"Polygons or lines can be useful to represent specific types of exposures such as infrastructures (e.g. roads)\n",
31+
"or landuse types (e.g. crops, forests). In CLIMADA, it is possible to retrieve such specific exposure types using \n",
32+
"[OpenStreetMap data](https://www.openstreetmap.org/). Please refer to the associated [tutorial](https://climada-python.readthedocs.io/en/latest/tutorial/climada_entity_Exposures_osm.html) to learn \n",
33+
"how to do so."
2834
]
2935
},
3036
{
@@ -2692,7 +2698,7 @@
26922698
"metadata": {
26932699
"hide_input": false,
26942700
"kernelspec": {
2695-
"display_name": "Python 3 (ipykernel)",
2701+
"display_name": "climada_osm",
26962702
"language": "python",
26972703
"name": "python3"
26982704
},
@@ -2706,7 +2712,7 @@
27062712
"name": "python",
27072713
"nbconvert_exporter": "python",
27082714
"pygments_lexer": "ipython3",
2709-
"version": "3.8.12"
2715+
"version": "3.9.18"
27102716
},
27112717
"latex_envs": {
27122718
"LaTeX_envs_menu_present": true,

doc/tutorial/exposures.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ Exposures Tutorials
88
climada_entity_Exposures
99
LitPop <climada_entity_LitPop>
1010
Polygons or Lines as Exposures <climada_entity_Exposures_polygons_lines>
11+
OpenStreetMap data as Exposures <climada_entity_Exposures_osm>

requirements/env_climada.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies:
1818
- numba>=0.60
1919
- numexpr>=2.10
2020
- openpyxl>=3.1
21+
- osm-flex>=1.1
2122
- pandas>=2.1,<2.2 # 2.2 is not compatible with the default pytables=3.7 and yields a very high deprecation warning number through geopandas
2223
- pandas-datareader>=0.10
2324
- pathos>=0.3

0 commit comments

Comments
 (0)