Skip to content

Commit b90d42e

Browse files
committed
Fix broken links
1 parent abe8b70 commit b90d42e

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

doc/tutorial/climada_entity_Exposures_osm.ipynb

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"metadata": {},
2121
"source": [
2222
"## Quick example\n",
23-
"Here we provide a quick example of an impact calculation with CLIMADA and OSM data.\n",
23+
"Here we provide a quick example of an impact calculation with CLIMADA and OpenStreetMap (OSM) data.\n",
2424
"We use in this example main roads in Honduras as exposures, and historical tropical cyclones\n",
25-
"as hazard. We load the osm data using `osm-flex` and disaggregate the exposures, \n",
25+
"as hazard. We load the OSM data using `osm-flex` and disaggregate the exposures, \n",
2626
"compute the damages, and reaggregate the exposures to their original shape using the \n",
2727
"function `calc_geom_impact` from the util module `lines_polys_handler`. \n",
2828
"For more details on the `lines_polys_handler` module, please refer to the [documentation](https://climada-python.readthedocs.io/en/latest/tutorial/climada_entity_Exposures_polygons_lines.html)."
@@ -65,7 +65,7 @@
6565
"metadata": {},
6666
"source": [
6767
"The first step is to download a raw osm.pbf file (\"data dump\") for Honduras from geofabrik.de \n",
68-
"and extract the layer of interest (here roads), but other layers can be calculated (see CLIMADA and OpenStreetMap [section](#climada-and-openstreetmap))"
68+
"and extract the layer of interest (here roads). See the set-up CLIMADA exposures from OpenStreetMap [section](#set-up-climada-exposures-from-openstreetmap) for more details."
6969
]
7070
},
7171
{
@@ -148,12 +148,12 @@
148148
},
149149
{
150150
"cell_type": "code",
151-
"execution_count": 5,
151+
"execution_count": 20,
152152
"metadata": {},
153153
"outputs": [],
154154
"source": [
155155
"# disaggregate in the same CRS as the exposures are defined (here meters), resolution 500m\n",
156-
"# divide values on points\n",
156+
"# replicate values on points\n",
157157
"# aggregate by summing\n",
158158
"\n",
159159
"impact = u_lp.calc_geom_impact(\n",
@@ -224,12 +224,13 @@
224224
"3. **Pre-process**; apply pre-processing steps as e.g. clipping, simplifying, or reprojecting the retrieved layer.\n",
225225
"4. **Cast** the geodataframe into a CLIMADA `Exposures` object.\n",
226226
"5. **Disagreggate** complex shapes exposures into points for impact calculation.\n",
227+
"\n",
227228
"Once those 5 steps are completed, one can proceed with the impact calculation. For more details on \n",
228229
"how to use lines and polygons as exposures within CLIMADA, please refer to the [documentation](https://climada-python.readthedocs.io/en/latest/tutorial/climada_entity_Exposures_polygons_lines.html).\n",
229230
"\n",
230-
"In the following, we illustrate how to obtain different exposures types such as healthcare facilities,\n",
231-
"road networks, or forests and how to use them within CLIMADA as points, lines,\n",
232-
"and polygons exposures. We also briefly illustrate the use of the `clip` and `simplify` modules\n",
231+
"In the following, we illustrate how to obtain different exposures types such as forests or \n",
232+
"healthcare facilities, and how to use them within CLIMADA as points, lines,\n",
233+
"and polygons exposures. We also briefly illustrate the use of the `simplify` module\n",
233234
"available within the `osm-flex` package."
234235
]
235236
},
@@ -239,7 +240,7 @@
239240
"source": [
240241
"#### Download a raw osm.pbf file (\"data dump\")\n",
241242
"First, we need to select a specific country and download its data from geofabrik.de. It is possible to\n",
242-
"download data from specific countries using iso3 codes or for regions directly."
243+
"download data from specific countries using iso3 codes or from regions directly."
243244
]
244245
},
245246
{
@@ -269,8 +270,8 @@
269270
"#### Extract the features of interest\n",
270271
"\n",
271272
"We next extract the exposures data of interest from OSM using the `extract()` method which\n",
272-
"allows us to query any tags available on openstreetmap.\n",
273-
"Two variables have to be specified: `osm_keys`, a list with all the columns to report in the gdf, and `osm_query`, a string of key-value constraints to apply during the search. We illustrate its use by querying the download of forests for Honduras."
273+
"allows us to query any tags available on OpenStreetMap.\n",
274+
"Two variables have to be specified: `osm_keys`, a list with all the columns to report in the GeoDataFrame, and `osm_query`, a string of key-value constraints to apply during the search. We illustrate its use by querying the download of forests for Honduras."
274275
]
275276
},
276277
{

0 commit comments

Comments
 (0)