|
16 | 16 | }
|
17 | 17 | },
|
18 | 18 | "source": [
|
19 |
| - "# Perform Analysis" |
| 19 | + "# Perform Analysis - Concepts" |
20 | 20 | ]
|
21 | 21 | },
|
22 | 22 | {
|
|
37 | 37 | },
|
38 | 38 | "source": [
|
39 | 39 | "<h1>Table of Contents<span class=\"tocSkip\"></span></h1>\n",
|
40 |
| - "<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#Import-packages\" data-toc-modified-id=\"Import-packages-1\">Import packages</a></span></li><li><span><a href=\"#Chain-raster-functions\" data-toc-modified-id=\"Chain-raster-functions-2\">Chain raster functions</a></span></li><li><span><a href=\"#Visualize-the-workflow-using-draw_graph\" data-toc-modified-id=\"Visualize-the-workflow-using-draw_graph-3\">Visualize the workflow using <code>draw_graph</code></a></span></li><li><span><a href=\"#Use-case---change-detection\" data-toc-modified-id=\"Use-case---change-detection-4\">Use case - change detection</a></span><ul class=\"toc-item\"><li><span><a href=\"#Get-images-of-two-different-times-of-the-same-area\" data-toc-modified-id=\"Get-images-of-two-different-times-of-the-same-area-4.1\">Get images of two different times of the same area</a></span></li><li><span><a href=\"#Difference-Image-through-map-algebra\" data-toc-modified-id=\"Difference-Image-through-map-algebra-4.2\">Difference Image through map algebra</a></span></li></ul></li><li><span><a href=\"#Save-your-result\" data-toc-modified-id=\"Save-your-result-5\">Save your result</a></span></li></ul></div>" |
| 40 | + "<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#Getting-Prepared\" data-toc-modified-id=\"Getting-Prepared-1\">Getting Prepared</a></span></li><li><span><a href=\"#Chain-raster-functions\" data-toc-modified-id=\"Chain-raster-functions-2\">Chain raster functions</a></span></li><li><span><a href=\"#Visualize-the-workflow-using-draw_graph\" data-toc-modified-id=\"Visualize-the-workflow-using-draw_graph-3\">Visualize the workflow using <code>draw_graph</code></a></span></li><li><span><a href=\"#Use-case---change-detection\" data-toc-modified-id=\"Use-case---change-detection-4\">Use case - change detection</a></span><ul class=\"toc-item\"><li><span><a href=\"#Get-images-of-two-different-times-of-the-same-area\" data-toc-modified-id=\"Get-images-of-two-different-times-of-the-same-area-4.1\">Get images of two different times of the same area</a></span></li><li><span><a href=\"#Obtain-difference-through-map-algebra\" data-toc-modified-id=\"Obtain-difference-through-map-algebra-4.2\">Obtain difference through map algebra</a></span></li></ul></li><li><span><a href=\"#Save-your-result\" data-toc-modified-id=\"Save-your-result-5\">Save your result</a></span></li></ul></div>" |
41 | 41 | ]
|
42 | 42 | },
|
43 | 43 | {
|
|
63 | 63 | }
|
64 | 64 | },
|
65 | 65 | "source": [
|
66 |
| - "## Import packages" |
| 66 | + "## Getting Prepared" |
67 | 67 | ]
|
68 | 68 | },
|
69 | 69 | {
|
|
87 | 87 | },
|
88 | 88 | {
|
89 | 89 | "cell_type": "code",
|
90 |
| - "execution_count": 8, |
| 90 | + "execution_count": 1, |
91 | 91 | "metadata": {
|
92 | 92 | "extensions": {
|
93 | 93 | "jupyter_dashboards": {
|
|
108 | 108 | "from arcgis.raster.functions import *\n",
|
109 | 109 | "from IPython.display import display\n",
|
110 | 110 | "\n",
|
111 |
| - "gis = GIS(\"https://pythonapi.playground.esri.com/portal\", \"arcgis_python\", \"amazing_arcgis_123\")" |
| 111 | + "gis = GIS(profile=\"your_enterprise_profile\")" |
112 | 112 | ]
|
113 | 113 | },
|
114 | 114 | {
|
|
191 | 191 | "\n",
|
192 | 192 | "There are cases where one raster function is not enough and we need to chain multiple raster functions together.\n",
|
193 | 193 | "\n",
|
194 |
| - "For example, if we would like to highlight the difference between land and water, we can first extract Red, NIR, Green [4,5,3] band using `ExtractBand`, and then use `Stretch` function to enhance the contrast further." |
| 194 | + "For example, if we would like to highlight the difference between land and water, we can first extract Red, NIR, Green [4,5,3] bands using `ExtractBand`, and then use `Stretch` function to enhance the contrast further." |
195 | 195 | ]
|
196 | 196 | },
|
197 | 197 | {
|
|
399 | 399 | }
|
400 | 400 | },
|
401 | 401 | "source": [
|
402 |
| - "Now we are going demonstrate how to use raster function chaining to perform change detection, which is one of the most common tasks in remote sensing is to compare images of the same area from two different times." |
| 402 | + "Now we are going demonstrate how to use raster function chaining to perform change detection, which is one of the most common tasks in remote sensing. The goal is to compare images of the same area from two different times." |
403 | 403 | ]
|
404 | 404 | },
|
405 | 405 | {
|
|
659 | 659 | }
|
660 | 660 | },
|
661 | 661 | "source": [
|
662 |
| - "### Difference Image through map algebra\n", |
| 662 | + "### Obtain difference through map algebra\n", |
663 | 663 | "\n",
|
664 | 664 | "Now I have the images, let's compute the NDVI and get their difference.\n",
|
665 | 665 | "\n",
|
666 |
| - "Instead of using the `ndvi()` method, let's do this through `BandArithmetic()` method that allows you to perform user-defined map algebra. All you need to do is to specify your own formula." |
| 666 | + "Instead of using the `ndvi()` method that applies a fixed raster algebra, let's do this through `BandArithmetic()` method that allows you to perform user-defined map algebra. All you need to do is to specify your own formula." |
667 | 667 | ]
|
668 | 668 | },
|
669 | 669 | {
|
|
769 | 769 | }
|
770 | 770 | },
|
771 | 771 | "source": [
|
772 |
| - "It's hard to tell which area has changed the most. So let's reclassify it using `remap` and display big increase with green using `colormap`" |
| 772 | + "It's hard to tell which area has changed the most. So let's reclassify it using `remap` and display high increase with the color of green using `colormap`." |
773 | 773 | ]
|
774 | 774 | },
|
775 | 775 | {
|
|
0 commit comments