Skip to content

Commit 0f78d87

Browse files
committed
edits urban green space
1 parent df46432 commit 0f78d87

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

Real_world_examples/Urban_green_space.ipynb

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"metadata": {},
8787
"source": [
8888
"### Connect to the datacube\n",
89-
"Connect to the datacube so we can access DE AFrica data.\n",
89+
"Connect to the datacube so we can access DE Africa data.\n",
9090
"The `app` parameter is a unique name for the analysis which is based on the notebook file name."
9191
]
9292
},
@@ -159,7 +159,7 @@
159159
" <meta name="viewport" content="width=device-width,\n",
160160
" initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />\n",
161161
" <style>\n",
162-
" #map_0a0016f958e13c993f026949793cb32e {\n",
162+
" #map_4708e94c20100f05e3850576b4211e24 {\n",
163163
" position: relative;\n",
164164
" width: 100.0%;\n",
165165
" height: 100.0%;\n",
@@ -189,14 +189,14 @@
189189
"<body>\n",
190190
" \n",
191191
" \n",
192-
" <div class="folium-map" id="map_0a0016f958e13c993f026949793cb32e" ></div>\n",
192+
" <div class="folium-map" id="map_4708e94c20100f05e3850576b4211e24" ></div>\n",
193193
" \n",
194194
"</body>\n",
195195
"<script>\n",
196196
" \n",
197197
" \n",
198-
" var map_0a0016f958e13c993f026949793cb32e = L.map(\n",
199-
" "map_0a0016f958e13c993f026949793cb32e",\n",
198+
" var map_4708e94c20100f05e3850576b4211e24 = L.map(\n",
199+
" "map_4708e94c20100f05e3850576b4211e24",\n",
200200
" {\n",
201201
" center: [6.6975, -1.6286],\n",
202202
" crs: L.CRS.EPSG3857,\n",
@@ -205,79 +205,79 @@
205205
" preferCanvas: false,\n",
206206
" }\n",
207207
" );\n",
208-
" L.control.scale().addTo(map_0a0016f958e13c993f026949793cb32e);\n",
208+
" L.control.scale().addTo(map_4708e94c20100f05e3850576b4211e24);\n",
209209
"\n",
210210
" \n",
211211
"\n",
212212
" \n",
213213
" \n",
214-
" var tile_layer_94aa53f8dea5a6d1d28f4e2e47a9f6f7 = L.tileLayer(\n",
214+
" var tile_layer_ffc7ab65e05d97bf92cc8d8fcf9a237d = L.tileLayer(\n",
215215
" "https://mt1.google.com/vt/lyrs=s\\u0026x={x}\\u0026y={y}\\u0026z={z}",\n",
216216
" {"attribution": "http://mt0.google.com/vt/lyrs=y\\u0026hl=en\\u0026x={x}\\u0026y={y}\\u0026z={z}", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n",
217217
" );\n",
218218
" \n",
219219
" \n",
220-
" tile_layer_94aa53f8dea5a6d1d28f4e2e47a9f6f7.addTo(map_0a0016f958e13c993f026949793cb32e);\n",
220+
" tile_layer_ffc7ab65e05d97bf92cc8d8fcf9a237d.addTo(map_4708e94c20100f05e3850576b4211e24);\n",
221221
" \n",
222222
" \n",
223-
" map_0a0016f958e13c993f026949793cb32e.fitBounds(\n",
223+
" map_4708e94c20100f05e3850576b4211e24.fitBounds(\n",
224224
" [[6.4975, -1.8286], [6.8975, -1.4286]],\n",
225225
" {}\n",
226226
" );\n",
227227
" \n",
228228
" \n",
229-
" function geo_json_3133d596ddc276ad9109b9a6a622feee_styler(feature) {\n",
229+
" function geo_json_9537b00d29a42864d9f014cfad44a49e_styler(feature) {\n",
230230
" switch(feature.id) {\n",
231231
" default:\n",
232232
" return {"fillOpacity": 0.5, "weight": 2};\n",
233233
" }\n",
234234
" }\n",
235-
" function geo_json_3133d596ddc276ad9109b9a6a622feee_highlighter(feature) {\n",
235+
" function geo_json_9537b00d29a42864d9f014cfad44a49e_highlighter(feature) {\n",
236236
" switch(feature.id) {\n",
237237
" default:\n",
238238
" return {"fillOpacity": 0.75};\n",
239239
" }\n",
240240
" }\n",
241-
" function geo_json_3133d596ddc276ad9109b9a6a622feee_pointToLayer(feature, latlng) {\n",
241+
" function geo_json_9537b00d29a42864d9f014cfad44a49e_pointToLayer(feature, latlng) {\n",
242242
" var opts = {"bubblingMouseEvents": true, "color": "#3388ff", "dashArray": null, "dashOffset": null, "fill": true, "fillColor": "#3388ff", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 2, "stroke": true, "weight": 3};\n",
243243
" \n",
244-
" let style = geo_json_3133d596ddc276ad9109b9a6a622feee_styler(feature)\n",
244+
" let style = geo_json_9537b00d29a42864d9f014cfad44a49e_styler(feature)\n",
245245
" Object.assign(opts, style)\n",
246246
" \n",
247247
" return new L.CircleMarker(latlng, opts)\n",
248248
" }\n",
249249
"\n",
250-
" function geo_json_3133d596ddc276ad9109b9a6a622feee_onEachFeature(feature, layer) {\n",
250+
" function geo_json_9537b00d29a42864d9f014cfad44a49e_onEachFeature(feature, layer) {\n",
251251
" layer.on({\n",
252252
" mouseout: function(e) {\n",
253253
" if(typeof e.target.setStyle === "function"){\n",
254-
" geo_json_3133d596ddc276ad9109b9a6a622feee.resetStyle(e.target);\n",
254+
" geo_json_9537b00d29a42864d9f014cfad44a49e.resetStyle(e.target);\n",
255255
" }\n",
256256
" },\n",
257257
" mouseover: function(e) {\n",
258258
" if(typeof e.target.setStyle === "function"){\n",
259-
" const highlightStyle = geo_json_3133d596ddc276ad9109b9a6a622feee_highlighter(e.target.feature)\n",
259+
" const highlightStyle = geo_json_9537b00d29a42864d9f014cfad44a49e_highlighter(e.target.feature)\n",
260260
" e.target.setStyle(highlightStyle);\n",
261261
" }\n",
262262
" },\n",
263263
" });\n",
264264
" };\n",
265-
" var geo_json_3133d596ddc276ad9109b9a6a622feee = L.geoJson(null, {\n",
266-
" onEachFeature: geo_json_3133d596ddc276ad9109b9a6a622feee_onEachFeature,\n",
265+
" var geo_json_9537b00d29a42864d9f014cfad44a49e = L.geoJson(null, {\n",
266+
" onEachFeature: geo_json_9537b00d29a42864d9f014cfad44a49e_onEachFeature,\n",
267267
" \n",
268-
" style: geo_json_3133d596ddc276ad9109b9a6a622feee_styler,\n",
269-
" pointToLayer: geo_json_3133d596ddc276ad9109b9a6a622feee_pointToLayer,\n",
268+
" style: geo_json_9537b00d29a42864d9f014cfad44a49e_styler,\n",
269+
" pointToLayer: geo_json_9537b00d29a42864d9f014cfad44a49e_pointToLayer,\n",
270270
" });\n",
271271
"\n",
272-
" function geo_json_3133d596ddc276ad9109b9a6a622feee_add (data) {\n",
273-
" geo_json_3133d596ddc276ad9109b9a6a622feee\n",
272+
" function geo_json_9537b00d29a42864d9f014cfad44a49e_add (data) {\n",
273+
" geo_json_9537b00d29a42864d9f014cfad44a49e\n",
274274
" .addData(data);\n",
275275
" }\n",
276-
" geo_json_3133d596ddc276ad9109b9a6a622feee_add({"bbox": [-1.8286, 6.4975, -1.4286, 6.8975], "features": [{"bbox": [-1.8286, 6.4975, -1.4286, 6.8975], "geometry": {"coordinates": [[[-1.4286, 6.4975], [-1.4286, 6.8975], [-1.8286, 6.8975], [-1.8286, 6.4975], [-1.4286, 6.4975]]], "type": "Polygon"}, "id": "0", "properties": {"agglosID": 1}, "type": "Feature"}], "type": "FeatureCollection"});\n",
276+
" geo_json_9537b00d29a42864d9f014cfad44a49e_add({"bbox": [-1.8286, 6.4975, -1.4286, 6.8975], "features": [{"bbox": [-1.8286, 6.4975, -1.4286, 6.8975], "geometry": {"coordinates": [[[-1.4286, 6.4975], [-1.4286, 6.8975], [-1.8286, 6.8975], [-1.8286, 6.4975], [-1.4286, 6.4975]]], "type": "Polygon"}, "id": "0", "properties": {"agglosID": 1}, "type": "Feature"}], "type": "FeatureCollection"});\n",
277277
"\n",
278278
" \n",
279279
" \n",
280-
" geo_json_3133d596ddc276ad9109b9a6a622feee.bindTooltip(\n",
280+
" geo_json_9537b00d29a42864d9f014cfad44a49e.bindTooltip(\n",
281281
" function(layer){\n",
282282
" let div = L.DomUtil.create('div');\n",
283283
" \n",
@@ -301,13 +301,13 @@
301301
" ,{"className": "foliumtooltip", "sticky": true});\n",
302302
" \n",
303303
" \n",
304-
" geo_json_3133d596ddc276ad9109b9a6a622feee.addTo(map_0a0016f958e13c993f026949793cb32e);\n",
304+
" geo_json_9537b00d29a42864d9f014cfad44a49e.addTo(map_4708e94c20100f05e3850576b4211e24);\n",
305305
" \n",
306306
"</script>\n",
307307
"&lt;/html&gt;\" style=\"position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;\" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></div></div>"
308308
],
309309
"text/plain": [
310-
"<folium.folium.Map at 0x7fd1f76f9ea0>"
310+
"<folium.folium.Map at 0x7fb9a8712bf0>"
311311
]
312312
},
313313
"execution_count": 3,
@@ -344,7 +344,7 @@
344344
},
345345
"source": [
346346
"### Perform zonal statistics using ESA Worldcover (2020 & 2021)\n",
347-
"This section of the notebook performs zonal statistics on urban agglomeration polygons using ESA WorldCover data from 2020 and 2021. It processes each polygon individually, extracting the relevant data for each year, masking the data to the polygon's boundary, and then calculating frequency histograms of land cover classes within that area. These histograms provide insights into the distribution of different land cover types within the agglomeration. The results are stored for further analysis and comparison."
347+
"This section of the notebook performs zonal statistics on urban agglomeration polygons using ESA WorldCover data from 2020 and 2021. It processes each polygon individually using a loop, extracting the relevant data for each year, masking the data to the polygon's boundary, and then calculating frequency histograms of land cover classes within that area. These histograms provide insights into the distribution of different land cover types within the agglomeration. The results are stored for further analysis and comparison."
348348
]
349349
},
350350
{
@@ -356,7 +356,7 @@
356356
{
357357
"data": {
358358
"application/vnd.jupyter.widget-view+json": {
359-
"model_id": "c8df1f17bfe943e28aa570bcfca09529",
359+
"model_id": "4828920bdf504105949953a91b2ca9e7",
360360
"version_major": 2,
361361
"version_minor": 0
362362
},
@@ -976,7 +976,7 @@
976976
{
977977
"data": {
978978
"text/plain": [
979-
"'2025-01-27'"
979+
"'2025-01-28'"
980980
]
981981
},
982982
"execution_count": 10,

0 commit comments

Comments
 (0)