Skip to content

Commit 15a3ab7

Browse files
committed
remove warnings cells, update text
1 parent 1fbccdf commit 15a3ab7

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

samples/04_gis_analysts_data_scientists/chennai_floods_analysis_rn.ipynb

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -751,16 +751,6 @@
751751
"The Interpolate Points tool uses [empirical Bayesian kriging](https://pro.arcgis.com/en/pro-app/latest/help/analysis/geostatistical-analyst/what-is-empirical-bayesian-kriging-.htm) to perform the interpolation."
752752
]
753753
},
754-
{
755-
"cell_type": "code",
756-
"execution_count": 53,
757-
"metadata": {},
758-
"outputs": [],
759-
"source": [
760-
"import warnings\n",
761-
"warnings.filterwarnings(\"ignore\", \"Warning\")"
762-
]
763-
},
764754
{
765755
"cell_type": "code",
766756
"execution_count": 54,
@@ -853,7 +843,9 @@
853843
"metadata": {},
854844
"source": [
855845
"### A wrong call that sank Chennai\n",
856-
"Much of the flooding and subsequent waterlogging was a consequence of the outflows from major reservoirs into swollen rivers and into the city following heavy rains. The <b>release of waters from the Chembarambakkam reservoir</b> in particular has received much attention. [Source: The Hindu, http://www.thehindu.com/news/cities/chennai/chennai-floods-a-wrong-call-that-sank-the-city/article7967371.ece]"
846+
"Much of the flooding and subsequent waterlogging was a consequence of the outflows from major reservoirs into swollen rivers and into the city following heavy rains. The <b>release of waters from the Chembarambakkam reservoir</b> in particular has received much attention. \n",
847+
"\n",
848+
"> *Source:* The Hindu, http://www.thehindu.com/news/cities/chennai/chennai-floods-a-wrong-call-that-sank-the-city/article7967371.ece"
857849
]
858850
},
859851
{
@@ -911,7 +903,7 @@
911903
"source": [
912904
"Let's have look at the major lakes and water reservoirs that were filled to the brim in Chennai due the rains. We plot the locations of some of the reservoirs that had a large outflow during the rains:\n",
913905
"\n",
914-
"To plot the locations, we use the [geocode()](/python/api-reference/arcgis.geocoding.html#geocode) function from the [geocoding](/python/api-reference/arcgis.geocoding.html) module to get the coordinate location for 3 places. A Web GIs can have more than 1 geocoding service configured, so you can use the function's _gis_ parameter to specify a specific geocoder. For this example, we'll use the default service configured for the organzation by not providing an argument for that parameter.\n",
906+
"To plot the locations, we use the [geocode()](/python/api-reference/arcgis.geocoding.html#geocode) function from the [geocoding](/python/api-reference/arcgis.geocoding.html) module to get the coordinate location for 3 places. A Web GIS can have more than 1 geocoding service configured, so you can use the function's _geocoder_ parameter to specify a specific geocoder if necessary. For this example, we'll use the default service configured for the organization by not providing an argument for that parameter.\n",
915907
"\n",
916908
"After geocoding, we'll update the returned location with spatial reference information, then initialize a Geometry object from it to draw on the widget. Lastly, we'll configure a popup for each feature and enable it in the widget. "
917909
]
@@ -928,7 +920,9 @@
928920
" ]\n",
929921
"\n",
930922
"for loc in reservoir_locations:\n",
931-
" geocode_res = geocode(loc)[0][\"location\"]\n",
923+
" geocode_res = geocode(\n",
924+
" address=loc\n",
925+
" )[0][\"location\"]\n",
932926
" geocode_res.update({\"spatialReference\": {\"wkid\":4326}})\n",
933927
" geocode_pt = Point(iterable=geocode_res)\n",
934928
" lakemap.content.draw(geocode_pt)"
@@ -1059,16 +1053,6 @@
10591053
"Now, let's call the **`Trace Downstream`** analysis tool from the GIS:"
10601054
]
10611055
},
1062-
{
1063-
"cell_type": "code",
1064-
"execution_count": 253,
1065-
"metadata": {},
1066-
"outputs": [],
1067-
"source": [
1068-
"import warnings\n",
1069-
"warnings.filterwarnings(\"ignore\", \"Warning\")"
1070-
]
1071-
},
10721056
{
10731057
"cell_type": "code",
10741058
"execution_count": 254,

0 commit comments

Comments
 (0)