Skip to content

Commit f386898

Browse files
author
Shivani Pathak
committed
updated_nbk
1 parent f6e282e commit f386898

File tree

1 file changed

+54
-47
lines changed

1 file changed

+54
-47
lines changed

samples/04_gis_analysts_data_scientists/mangrove_forest_monitoring_using_deep_learning.ipynb

Lines changed: 54 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"* [Get data and model for classification](#Get-data-and-model-for-classification)\n",
2020
"* [Extract mangrove forests for 2014](#Extract-mangrove-forests-for-2014)\n",
2121
"* [Extract mangrove forests for 2022](#Extract-mangrove-forests-for-2022)\n",
22-
"* [Change in area over time](#Change-in-area-over-time)\n",
22+
"* [Calculate change in area over time](#Calculate-change-in-area-over-time)\n",
2323
"* [Conclusion](#Conclusion)\n",
2424
"* [References](#References)"
2525
]
@@ -62,7 +62,7 @@
6262
},
6363
{
6464
"cell_type": "code",
65-
"execution_count": 1,
65+
"execution_count": 2,
6666
"metadata": {},
6767
"outputs": [],
6868
"source": [
@@ -79,7 +79,7 @@
7979
},
8080
{
8181
"cell_type": "code",
82-
"execution_count": 2,
82+
"execution_count": 10,
8383
"metadata": {},
8484
"outputs": [],
8585
"source": [
@@ -102,14 +102,21 @@
102102
},
103103
{
104104
"cell_type": "code",
105-
"execution_count": 3,
105+
"execution_count": 11,
106106
"metadata": {},
107107
"outputs": [],
108108
"source": [
109-
"ras_2014 = gis.content.get(\"32bb28c98f3c4d63a0a205ae5695bf78\").layers[0]\n",
110-
"ras_2022 = gis.content.get(\"4c52dfb9dc6d44faa714e25580dda969\").layers[0]"
109+
"ras_2014 = gis.content.get(\"e98e43b537354130b6a706e597c37f05\").layers[0]\n",
110+
"ras_2022 = gis.content.get(\"19d8df11f062443286097a744cce1864\").layers[0]"
111111
]
112112
},
113+
{
114+
"cell_type": "code",
115+
"execution_count": null,
116+
"metadata": {},
117+
"outputs": [],
118+
"source": []
119+
},
113120
{
114121
"cell_type": "markdown",
115122
"metadata": {},
@@ -119,7 +126,7 @@
119126
},
120127
{
121128
"cell_type": "code",
122-
"execution_count": 4,
129+
"execution_count": 13,
123130
"metadata": {
124131
"scrolled": true
125132
},
@@ -138,8 +145,8 @@
138145
" <a href='https://deldev.maps.arcgis.com/home/item.html?id=741a56ae6a5340058b9704a8f68f1b9a' target='_blank'><b>Mangrove Classification (Landsat 8)</b>\n",
139146
" </a>\n",
140147
" <br/>Deep learning model to perform mangrove classification on Landsat 8 Imagery.<img src='https://deldev.maps.arcgis.com/home/js/jsapi/esri/css/images/item_type_icons/layers16.png' style=\"vertical-align:middle;\">Deep Learning Package by esri_analytics\n",
141-
" <br/>Last Modified: March 09, 2022\n",
142-
" <br/>4 comments, 862 views\n",
148+
" <br/>Last Modified: June 21, 2023\n",
149+
" <br/>4 comments, 1,847 views\n",
143150
" </div>\n",
144151
" </div>\n",
145152
" "
@@ -148,7 +155,7 @@
148155
"<Item title:\"Mangrove Classification (Landsat 8)\" type:Deep Learning Package owner:esri_analytics>"
149156
]
150157
},
151-
"execution_count": 4,
158+
"execution_count": 13,
152159
"metadata": {},
153160
"output_type": "execute_result"
154161
}
@@ -176,7 +183,7 @@
176183
},
177184
{
178185
"cell_type": "code",
179-
"execution_count": 5,
186+
"execution_count": 14,
180187
"metadata": {},
181188
"outputs": [],
182189
"source": [
@@ -197,7 +204,7 @@
197204
},
198205
{
199206
"cell_type": "code",
200-
"execution_count": 6,
207+
"execution_count": 18,
201208
"metadata": {},
202209
"outputs": [],
203210
"source": [
@@ -215,7 +222,7 @@
215222
},
216223
{
217224
"cell_type": "code",
218-
"execution_count": 7,
225+
"execution_count": 19,
219226
"metadata": {},
220227
"outputs": [],
221228
"source": [
@@ -231,7 +238,7 @@
231238
},
232239
{
233240
"cell_type": "code",
234-
"execution_count": 8,
241+
"execution_count": 20,
235242
"metadata": {},
236243
"outputs": [],
237244
"source": [
@@ -247,7 +254,7 @@
247254
},
248255
{
249256
"cell_type": "code",
250-
"execution_count": 9,
257+
"execution_count": 21,
251258
"metadata": {},
252259
"outputs": [],
253260
"source": [
@@ -262,12 +269,12 @@
262269
"cell_type": "markdown",
263270
"metadata": {},
264271
"source": [
265-
"All the maps are synchronized with each other using [MapView.sync_navigation](https://developers.arcgis.com/python/api-reference/arcgis.widgets.html#arcgis.widgets.MapView.sync_navigation) functionality. It vizualises the extracted mangroves and the FCC composite for reference. Detailed description about advanced map widget options can be referred [here](https://developers.arcgis.com/python/guide/advanced-map-widget-usage/)."
272+
"All the maps are synchronized with each other using [MapView.sync_navigation](https://developers.arcgis.com//python/api-reference/arcgis.widgets.html#arcgis.widgets.MapView.sync_navigation) functionality. It vizualises the extracted mangroves and the FCC composite for reference. Detailed description about advanced map widget options can be referred [here](https://developers.arcgis.com//python/guide/advanced-map-widget-usage/)."
266273
]
267274
},
268275
{
269276
"cell_type": "code",
270-
"execution_count": 10,
277+
"execution_count": 22,
271278
"metadata": {},
272279
"outputs": [],
273280
"source": [
@@ -284,7 +291,7 @@
284291
},
285292
{
286293
"cell_type": "code",
287-
"execution_count": 11,
294+
"execution_count": 38,
288295
"metadata": {},
289296
"outputs": [],
290297
"source": [
@@ -311,7 +318,7 @@
311318
},
312319
{
313320
"cell_type": "code",
314-
"execution_count": 12,
321+
"execution_count": 24,
315322
"metadata": {},
316323
"outputs": [
317324
{
@@ -338,7 +345,7 @@
338345
},
339346
{
340347
"cell_type": "code",
341-
"execution_count": 13,
348+
"execution_count": 25,
342349
"metadata": {
343350
"scrolled": true
344351
},
@@ -378,14 +385,14 @@
378385
" 'domain': None}],\n",
379386
" 'features': [{'attributes': {'OID': 0,\n",
380387
" 'Value': 1,\n",
381-
" 'Class': 'Mangroove',\n",
382-
" 'Red': 33,\n",
383-
" 'Green': 125,\n",
384-
" 'Blue': 147,\n",
388+
" 'Class': 'Mangrove',\n",
389+
" 'Red': 255,\n",
390+
" 'Green': 255,\n",
391+
" 'Blue': 0,\n",
385392
" 'Count': 119036}}]}"
386393
]
387394
},
388-
"execution_count": 13,
395+
"execution_count": 25,
389396
"metadata": {},
390397
"output_type": "execute_result"
391398
}
@@ -403,7 +410,7 @@
403410
},
404411
{
405412
"cell_type": "code",
406-
"execution_count": 14,
413+
"execution_count": 26,
407414
"metadata": {},
408415
"outputs": [
409416
{
@@ -412,7 +419,7 @@
412419
"107.1324"
413420
]
414421
},
415-
"execution_count": 14,
422+
"execution_count": 26,
416423
"metadata": {},
417424
"output_type": "execute_result"
418425
}
@@ -439,7 +446,7 @@
439446
},
440447
{
441448
"cell_type": "code",
442-
"execution_count": 15,
449+
"execution_count": 27,
443450
"metadata": {},
444451
"outputs": [],
445452
"source": [
@@ -457,7 +464,7 @@
457464
},
458465
{
459466
"cell_type": "code",
460-
"execution_count": 16,
467+
"execution_count": 28,
461468
"metadata": {},
462469
"outputs": [],
463470
"source": [
@@ -473,7 +480,7 @@
473480
},
474481
{
475482
"cell_type": "code",
476-
"execution_count": 17,
483+
"execution_count": 29,
477484
"metadata": {},
478485
"outputs": [],
479486
"source": [
@@ -489,7 +496,7 @@
489496
},
490497
{
491498
"cell_type": "code",
492-
"execution_count": 18,
499+
"execution_count": 30,
493500
"metadata": {},
494501
"outputs": [],
495502
"source": [
@@ -504,12 +511,12 @@
504511
"cell_type": "markdown",
505512
"metadata": {},
506513
"source": [
507-
"All the maps are synchronized with each other using [MapView.sync_navigation](https://developers.arcgis.com/python/api-reference/arcgis.widgets.html#arcgis.widgets.MapView.sync_navigation) functionality. It vizualises the extracted mangroves and the FCC composite for reference. "
514+
"All the maps are synchronized with each other using [MapView.sync_navigation](https://developers.arcgis.com//python/api-reference/arcgis.widgets.html#arcgis.widgets.MapView.sync_navigation) functionality. It vizualises the extracted mangroves and the FCC composite for reference. "
508515
]
509516
},
510517
{
511518
"cell_type": "code",
512-
"execution_count": 19,
519+
"execution_count": 31,
513520
"metadata": {},
514521
"outputs": [],
515522
"source": [
@@ -526,7 +533,7 @@
526533
},
527534
{
528535
"cell_type": "code",
529-
"execution_count": 20,
536+
"execution_count": 37,
530537
"metadata": {},
531538
"outputs": [],
532539
"source": [
@@ -553,7 +560,7 @@
553560
},
554561
{
555562
"cell_type": "code",
556-
"execution_count": 21,
563+
"execution_count": 33,
557564
"metadata": {},
558565
"outputs": [
559566
{
@@ -580,7 +587,7 @@
580587
},
581588
{
582589
"cell_type": "code",
583-
"execution_count": 22,
590+
"execution_count": 34,
584591
"metadata": {
585592
"scrolled": true
586593
},
@@ -620,14 +627,14 @@
620627
" 'domain': None}],\n",
621628
" 'features': [{'attributes': {'OID': 0,\n",
622629
" 'Value': 1,\n",
623-
" 'Class': 'Mangroove',\n",
624-
" 'Red': 33,\n",
625-
" 'Green': 125,\n",
626-
" 'Blue': 147,\n",
630+
" 'Class': 'Mangrove',\n",
631+
" 'Red': 255,\n",
632+
" 'Green': 255,\n",
633+
" 'Blue': 0,\n",
627634
" 'Count': 134872}}]}"
628635
]
629636
},
630-
"execution_count": 22,
637+
"execution_count": 34,
631638
"metadata": {},
632639
"output_type": "execute_result"
633640
}
@@ -645,7 +652,7 @@
645652
},
646653
{
647654
"cell_type": "code",
648-
"execution_count": 23,
655+
"execution_count": 35,
649656
"metadata": {},
650657
"outputs": [
651658
{
@@ -654,7 +661,7 @@
654661
"121.3848"
655662
]
656663
},
657-
"execution_count": 23,
664+
"execution_count": 35,
658665
"metadata": {},
659666
"output_type": "execute_result"
660667
}
@@ -668,7 +675,7 @@
668675
"cell_type": "markdown",
669676
"metadata": {},
670677
"source": [
671-
"## Change in area over time"
678+
"## Calculate change in area over time"
672679
]
673680
},
674681
{
@@ -680,7 +687,7 @@
680687
},
681688
{
682689
"cell_type": "code",
683-
"execution_count": 24,
690+
"execution_count": 36,
684691
"metadata": {},
685692
"outputs": [
686693
{
@@ -689,7 +696,7 @@
689696
"14.252399999999994"
690697
]
691698
},
692-
"execution_count": 24,
699+
"execution_count": 36,
693700
"metadata": {},
694701
"output_type": "execute_result"
695702
}
@@ -738,7 +745,7 @@
738745
],
739746
"metadata": {
740747
"kernelspec": {
741-
"display_name": "Python 3",
748+
"display_name": "Python 3 (ipykernel)",
742749
"language": "python",
743750
"name": "python3"
744751
},

0 commit comments

Comments
 (0)