Skip to content

Commit d72134d

Browse files
author
Neha Sharma
committed
update mussel farms notebook
1 parent e6de1ac commit d72134d

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

samples/04_gis_analysts_data_scientists/detecting_mussel_farms_using_deep_learning.ipynb

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@
347347
"metadata": {},
348348
"outputs": [],
349349
"source": [
350-
"import zipfile\n",
350+
"# Unzip training data\n",
351351
"with zipfile.ZipFile(filepath, 'r') as zip_ref:\n",
352352
" zip_ref.extractall(Path(filepath).parent)"
353353
]
@@ -869,6 +869,7 @@
869869
}
870870
],
871871
"source": [
872+
"#get raster data using item id\n",
872873
"sample_inference_raster = gis.content.get('d6f035f5de504c86855e0ee70e83ad0e')\n",
873874
"sample_inference_raster"
874875
]
@@ -1032,6 +1033,7 @@
10321033
}
10331034
],
10341035
"source": [
1036+
"#get feature layer using item id\n",
10351037
"fc = gis.content.get('477d756f79e4400fa91c5b220406d98c')\n",
10361038
"fc"
10371039
]
@@ -1072,6 +1074,7 @@
10721074
}
10731075
],
10741076
"source": [
1077+
"#get webmap using item id\n",
10751078
"wm_item = gis.content.get('36714d14f80649e99aaf702f3cec6455')\n",
10761079
"wm_item"
10771080
]
@@ -1085,10 +1088,17 @@
10851088
},
10861089
"outputs": [],
10871090
"source": [
1088-
"mapp = gis.map(wm_item)\n",
1091+
"#Create map object with webmap layer\n",
1092+
"mapp = gis.map(wm_item) \n",
1093+
"\n",
1094+
"# Add feature layer over map\n",
10891095
"mapp.content.add(fc)\n",
1090-
"mapp.zoom_to_layer(fc)\n",
1091-
"mapp"
1096+
"\n",
1097+
"# Zoom to the feature layer extent\n",
1098+
"mapp.zoom_to_layer(fc) \n",
1099+
"\n",
1100+
"# Display map\n",
1101+
"mapp "
10921102
]
10931103
},
10941104
{

0 commit comments

Comments
 (0)