Skip to content

Commit 9017fc4

Browse files
Merge pull request #1536 from shivanip32/updated_cline_nbk
Updated sample notebooks: coastline extraction and LULC classification using sparse training data
2 parents 24185d6 + 5064f2a commit 9017fc4

File tree

2 files changed

+817
-5
lines changed

2 files changed

+817
-5
lines changed

samples/04_gis_analysts_data_scientists/coastline_extraction-usa-landsat8_multispectral_imagery.ipynb

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Coastline extraction using Landsat-8 multispectral imagery and band ratio technique"
7+
"## Coastline extraction using Landsat-8 multispectral imagery and band ratio technique"
88
]
99
},
1010
{
1111
"cell_type": "markdown",
1212
"metadata": {},
1313
"source": [
1414
"## Table of Contents\n",
15+
"* [Prerequisites](#20)\n",
1516
"* [Introduction](#1)\n",
1617
"* [Necessary imports](#2)\n",
1718
"* [Connect to your GIS](#3)\n",
@@ -33,6 +34,15 @@
3334
"* [Data resources](#19)"
3435
]
3536
},
37+
{
38+
"cell_type": "markdown",
39+
"metadata": {},
40+
"source": [
41+
"## Prerequisites<a class=\"anchor\" id=\"20\"></a>\n",
42+
"\n",
43+
"- This sample demonstrates how the coastlines can be extracted using [ArcGIS Image Server](https://www.esri.com/en-us/arcgis/products/arcgis-image-server). Alternatively, this can be done using [ArcGIS Image for ArcGIS Online](https://www.esri.com/en-us/arcgis/products/arcgis-image/options/arcgis-online)."
44+
]
45+
},
3646
{
3747
"cell_type": "markdown",
3848
"metadata": {},
@@ -1133,7 +1143,8 @@
11331143
"source": [
11341144
"## Get the polygon with largest area as it will represent the coastline\n",
11351145
"df = water_poly.layers[0].query().sdf\n",
1136-
"dfm5 = df[df['SHAPE__Area']==df['SHAPE__Area'].max()]\n",
1146+
"df['MYAREA'] = df.SHAPE.geom.area\n",
1147+
"dfm5 = df[df['MYAREA']==df['MYAREA'].max()]\n",
11371148
"coast_poly = gis2.content.import_data(dfm5, title='coast_poly'+str(datetime.now().microsecond))"
11381149
]
11391150
},
@@ -1400,7 +1411,7 @@
14001411
],
14011412
"metadata": {
14021413
"kernelspec": {
1403-
"display_name": "Python 3 (ipykernel)",
1414+
"display_name": "Python 3",
14041415
"language": "python",
14051416
"name": "python3"
14061417
},
@@ -1414,7 +1425,7 @@
14141425
"name": "python",
14151426
"nbconvert_exporter": "python",
14161427
"pygments_lexer": "ipython3",
1417-
"version": "3.7.11"
1428+
"version": "3.9.11"
14181429
}
14191430
},
14201431
"nbformat": 4,

samples/04_gis_analysts_data_scientists/land_cover_classification_using_sparse_training_data.ipynb

Lines changed: 802 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)