|
19 | 19 | "* [Get data and model for classification](#Get-data-and-model-for-classification)\n",
|
20 | 20 | "* [Extract mangrove forests for 2014](#Extract-mangrove-forests-for-2014)\n",
|
21 | 21 | "* [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", |
23 | 23 | "* [Conclusion](#Conclusion)\n",
|
24 | 24 | "* [References](#References)"
|
25 | 25 | ]
|
|
62 | 62 | },
|
63 | 63 | {
|
64 | 64 | "cell_type": "code",
|
65 |
| - "execution_count": 1, |
| 65 | + "execution_count": 2, |
66 | 66 | "metadata": {},
|
67 | 67 | "outputs": [],
|
68 | 68 | "source": [
|
|
79 | 79 | },
|
80 | 80 | {
|
81 | 81 | "cell_type": "code",
|
82 |
| - "execution_count": 2, |
| 82 | + "execution_count": 10, |
83 | 83 | "metadata": {},
|
84 | 84 | "outputs": [],
|
85 | 85 | "source": [
|
|
102 | 102 | },
|
103 | 103 | {
|
104 | 104 | "cell_type": "code",
|
105 |
| - "execution_count": 3, |
| 105 | + "execution_count": 11, |
106 | 106 | "metadata": {},
|
107 | 107 | "outputs": [],
|
108 | 108 | "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]" |
111 | 111 | ]
|
112 | 112 | },
|
| 113 | + { |
| 114 | + "cell_type": "code", |
| 115 | + "execution_count": null, |
| 116 | + "metadata": {}, |
| 117 | + "outputs": [], |
| 118 | + "source": [] |
| 119 | + }, |
113 | 120 | {
|
114 | 121 | "cell_type": "markdown",
|
115 | 122 | "metadata": {},
|
|
119 | 126 | },
|
120 | 127 | {
|
121 | 128 | "cell_type": "code",
|
122 |
| - "execution_count": 4, |
| 129 | + "execution_count": 13, |
123 | 130 | "metadata": {
|
124 | 131 | "scrolled": true
|
125 | 132 | },
|
|
138 | 145 | " <a href='https://deldev.maps.arcgis.com/home/item.html?id=741a56ae6a5340058b9704a8f68f1b9a' target='_blank'><b>Mangrove Classification (Landsat 8)</b>\n",
|
139 | 146 | " </a>\n",
|
140 | 147 | " <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", |
143 | 150 | " </div>\n",
|
144 | 151 | " </div>\n",
|
145 | 152 | " "
|
|
148 | 155 | "<Item title:\"Mangrove Classification (Landsat 8)\" type:Deep Learning Package owner:esri_analytics>"
|
149 | 156 | ]
|
150 | 157 | },
|
151 |
| - "execution_count": 4, |
| 158 | + "execution_count": 13, |
152 | 159 | "metadata": {},
|
153 | 160 | "output_type": "execute_result"
|
154 | 161 | }
|
|
176 | 183 | },
|
177 | 184 | {
|
178 | 185 | "cell_type": "code",
|
179 |
| - "execution_count": 5, |
| 186 | + "execution_count": 14, |
180 | 187 | "metadata": {},
|
181 | 188 | "outputs": [],
|
182 | 189 | "source": [
|
|
197 | 204 | },
|
198 | 205 | {
|
199 | 206 | "cell_type": "code",
|
200 |
| - "execution_count": 6, |
| 207 | + "execution_count": 18, |
201 | 208 | "metadata": {},
|
202 | 209 | "outputs": [],
|
203 | 210 | "source": [
|
|
215 | 222 | },
|
216 | 223 | {
|
217 | 224 | "cell_type": "code",
|
218 |
| - "execution_count": 7, |
| 225 | + "execution_count": 19, |
219 | 226 | "metadata": {},
|
220 | 227 | "outputs": [],
|
221 | 228 | "source": [
|
|
231 | 238 | },
|
232 | 239 | {
|
233 | 240 | "cell_type": "code",
|
234 |
| - "execution_count": 8, |
| 241 | + "execution_count": 20, |
235 | 242 | "metadata": {},
|
236 | 243 | "outputs": [],
|
237 | 244 | "source": [
|
|
247 | 254 | },
|
248 | 255 | {
|
249 | 256 | "cell_type": "code",
|
250 |
| - "execution_count": 9, |
| 257 | + "execution_count": 21, |
251 | 258 | "metadata": {},
|
252 | 259 | "outputs": [],
|
253 | 260 | "source": [
|
|
262 | 269 | "cell_type": "markdown",
|
263 | 270 | "metadata": {},
|
264 | 271 | "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/)." |
266 | 273 | ]
|
267 | 274 | },
|
268 | 275 | {
|
269 | 276 | "cell_type": "code",
|
270 |
| - "execution_count": 10, |
| 277 | + "execution_count": 22, |
271 | 278 | "metadata": {},
|
272 | 279 | "outputs": [],
|
273 | 280 | "source": [
|
|
284 | 291 | },
|
285 | 292 | {
|
286 | 293 | "cell_type": "code",
|
287 |
| - "execution_count": 11, |
| 294 | + "execution_count": 38, |
288 | 295 | "metadata": {},
|
289 | 296 | "outputs": [],
|
290 | 297 | "source": [
|
|
311 | 318 | },
|
312 | 319 | {
|
313 | 320 | "cell_type": "code",
|
314 |
| - "execution_count": 12, |
| 321 | + "execution_count": 24, |
315 | 322 | "metadata": {},
|
316 | 323 | "outputs": [
|
317 | 324 | {
|
|
338 | 345 | },
|
339 | 346 | {
|
340 | 347 | "cell_type": "code",
|
341 |
| - "execution_count": 13, |
| 348 | + "execution_count": 25, |
342 | 349 | "metadata": {
|
343 | 350 | "scrolled": true
|
344 | 351 | },
|
|
378 | 385 | " 'domain': None}],\n",
|
379 | 386 | " 'features': [{'attributes': {'OID': 0,\n",
|
380 | 387 | " '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", |
385 | 392 | " 'Count': 119036}}]}"
|
386 | 393 | ]
|
387 | 394 | },
|
388 |
| - "execution_count": 13, |
| 395 | + "execution_count": 25, |
389 | 396 | "metadata": {},
|
390 | 397 | "output_type": "execute_result"
|
391 | 398 | }
|
|
403 | 410 | },
|
404 | 411 | {
|
405 | 412 | "cell_type": "code",
|
406 |
| - "execution_count": 14, |
| 413 | + "execution_count": 26, |
407 | 414 | "metadata": {},
|
408 | 415 | "outputs": [
|
409 | 416 | {
|
|
412 | 419 | "107.1324"
|
413 | 420 | ]
|
414 | 421 | },
|
415 |
| - "execution_count": 14, |
| 422 | + "execution_count": 26, |
416 | 423 | "metadata": {},
|
417 | 424 | "output_type": "execute_result"
|
418 | 425 | }
|
|
439 | 446 | },
|
440 | 447 | {
|
441 | 448 | "cell_type": "code",
|
442 |
| - "execution_count": 15, |
| 449 | + "execution_count": 27, |
443 | 450 | "metadata": {},
|
444 | 451 | "outputs": [],
|
445 | 452 | "source": [
|
|
457 | 464 | },
|
458 | 465 | {
|
459 | 466 | "cell_type": "code",
|
460 |
| - "execution_count": 16, |
| 467 | + "execution_count": 28, |
461 | 468 | "metadata": {},
|
462 | 469 | "outputs": [],
|
463 | 470 | "source": [
|
|
473 | 480 | },
|
474 | 481 | {
|
475 | 482 | "cell_type": "code",
|
476 |
| - "execution_count": 17, |
| 483 | + "execution_count": 29, |
477 | 484 | "metadata": {},
|
478 | 485 | "outputs": [],
|
479 | 486 | "source": [
|
|
489 | 496 | },
|
490 | 497 | {
|
491 | 498 | "cell_type": "code",
|
492 |
| - "execution_count": 18, |
| 499 | + "execution_count": 30, |
493 | 500 | "metadata": {},
|
494 | 501 | "outputs": [],
|
495 | 502 | "source": [
|
|
504 | 511 | "cell_type": "markdown",
|
505 | 512 | "metadata": {},
|
506 | 513 | "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. " |
508 | 515 | ]
|
509 | 516 | },
|
510 | 517 | {
|
511 | 518 | "cell_type": "code",
|
512 |
| - "execution_count": 19, |
| 519 | + "execution_count": 31, |
513 | 520 | "metadata": {},
|
514 | 521 | "outputs": [],
|
515 | 522 | "source": [
|
|
526 | 533 | },
|
527 | 534 | {
|
528 | 535 | "cell_type": "code",
|
529 |
| - "execution_count": 20, |
| 536 | + "execution_count": 37, |
530 | 537 | "metadata": {},
|
531 | 538 | "outputs": [],
|
532 | 539 | "source": [
|
|
553 | 560 | },
|
554 | 561 | {
|
555 | 562 | "cell_type": "code",
|
556 |
| - "execution_count": 21, |
| 563 | + "execution_count": 33, |
557 | 564 | "metadata": {},
|
558 | 565 | "outputs": [
|
559 | 566 | {
|
|
580 | 587 | },
|
581 | 588 | {
|
582 | 589 | "cell_type": "code",
|
583 |
| - "execution_count": 22, |
| 590 | + "execution_count": 34, |
584 | 591 | "metadata": {
|
585 | 592 | "scrolled": true
|
586 | 593 | },
|
|
620 | 627 | " 'domain': None}],\n",
|
621 | 628 | " 'features': [{'attributes': {'OID': 0,\n",
|
622 | 629 | " '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", |
627 | 634 | " 'Count': 134872}}]}"
|
628 | 635 | ]
|
629 | 636 | },
|
630 |
| - "execution_count": 22, |
| 637 | + "execution_count": 34, |
631 | 638 | "metadata": {},
|
632 | 639 | "output_type": "execute_result"
|
633 | 640 | }
|
|
645 | 652 | },
|
646 | 653 | {
|
647 | 654 | "cell_type": "code",
|
648 |
| - "execution_count": 23, |
| 655 | + "execution_count": 35, |
649 | 656 | "metadata": {},
|
650 | 657 | "outputs": [
|
651 | 658 | {
|
|
654 | 661 | "121.3848"
|
655 | 662 | ]
|
656 | 663 | },
|
657 |
| - "execution_count": 23, |
| 664 | + "execution_count": 35, |
658 | 665 | "metadata": {},
|
659 | 666 | "output_type": "execute_result"
|
660 | 667 | }
|
|
668 | 675 | "cell_type": "markdown",
|
669 | 676 | "metadata": {},
|
670 | 677 | "source": [
|
671 |
| - "## Change in area over time" |
| 678 | + "## Calculate change in area over time" |
672 | 679 | ]
|
673 | 680 | },
|
674 | 681 | {
|
|
680 | 687 | },
|
681 | 688 | {
|
682 | 689 | "cell_type": "code",
|
683 |
| - "execution_count": 24, |
| 690 | + "execution_count": 36, |
684 | 691 | "metadata": {},
|
685 | 692 | "outputs": [
|
686 | 693 | {
|
|
689 | 696 | "14.252399999999994"
|
690 | 697 | ]
|
691 | 698 | },
|
692 |
| - "execution_count": 24, |
| 699 | + "execution_count": 36, |
693 | 700 | "metadata": {},
|
694 | 701 | "output_type": "execute_result"
|
695 | 702 | }
|
|
738 | 745 | ],
|
739 | 746 | "metadata": {
|
740 | 747 | "kernelspec": {
|
741 |
| - "display_name": "Python 3", |
| 748 | + "display_name": "Python 3 (ipykernel)", |
742 | 749 | "language": "python",
|
743 | 750 | "name": "python3"
|
744 | 751 | },
|
|
0 commit comments