Skip to content

Commit 31fdbc1

Browse files
committed
Change notebook links for github repo.
Formerly, notebook links use data and images stored in Box. Change this to use github repository.
1 parent ef5632e commit 31fdbc1

File tree

6 files changed

+17
-30
lines changed

6 files changed

+17
-30
lines changed

data/streamGauges.geojson

+1
Large diffs are not rendered by default.

doc/source/images/Harvey.png

1.15 MB
Loading
196 KB
Loading
37.1 KB
Loading

doc/source/images/selectLineChart.png

77.4 KB
Loading

notebooks/HoustonFlood2017.ipynb

+16-30
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"source": [
99
"# STSA Data Visualization With Python\n",
1010
"\n",
11-
"<img width=\"700\" src=\"https://ibm.box.com/shared/static/gk8bni28qatazqhn6wpwyp8c06ogepcx.png\">\n",
11+
"<img width=\"700\" src=\"https://github.com/IBM/visualize-data-with-python/blob/master/doc/source/images/Harvey.png\">\n",
1212
"\n",
1313
"NASA TERRA MODIS INFRARED IMAGE OF HARVEY AT 0419 UTC 26 AUGUST 2017 JUST AFTER LANDFALL AS A\n",
1414
"CATEGORY 4 HURRICANE IN TEXAS. IMAGE COURTESY OF UW/CIMSS.\n",
@@ -140,9 +140,7 @@
140140
"metadata": {},
141141
"outputs": [],
142142
"source": [
143-
"!wget \"https://ibm.box.com/shared/static/vtw86pvek6zeqtt64hfubc4cb03aj83y.csv\"\n",
144-
"!mv vtw86pvek6zeqtt64hfubc4cb03aj83y.csv HuntingBayou\n",
145-
"!ls"
143+
"!wget https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/data/HuntingBayou.csv\n"
146144
]
147145
},
148146
{
@@ -158,7 +156,7 @@
158156
"metadata": {},
159157
"outputs": [],
160158
"source": [
161-
"! head -n 35 HuntingBayou"
159+
"! head -n 35 HuntingBayou.csv"
162160
]
163161
},
164162
{
@@ -175,7 +173,7 @@
175173
"metadata": {},
176174
"outputs": [],
177175
"source": [
178-
"df = pd.read_csv('HuntingBayou',sep='\\t',skiprows=(0-28),header=(29))"
176+
"df = pd.read_csv('HuntingBayou.csv',sep='\\t',skiprows=(0-28),header=(29))"
179177
]
180178
},
181179
{
@@ -226,7 +224,7 @@
226224
"cell_type": "markdown",
227225
"metadata": {},
228226
"source": [
229-
"Let's replace the `site_no` with a `site_name` for `HuntingBayou`:"
227+
"Let's replace the `site_no` with a `site_name` for `HuntingBayou.csv`:"
230228
]
231229
},
232230
{
@@ -236,7 +234,7 @@
236234
"outputs": [],
237235
"source": [
238236
"df.rename(columns={'site_no': 'site_name'}, inplace=True)\n",
239-
"df['site_name'].replace(\"08075770\", \"HuntingBayou\", inplace=True)"
237+
"df['site_name'].replace(\"08075770\", \"HuntingBayou.csv\", inplace=True)"
240238
]
241239
},
242240
{
@@ -432,13 +430,13 @@
432430
" \n",
433431
"#### 2.7.1 Select _DataFrame Table_ icon in the display widget to see the data in tabular form\n",
434432
"\n",
435-
"<img width=\"500\" src=\"https://ibm.box.com/shared/static/v2m8x90x4h27lsjzvny2mjmavx04cuem.png\">\n",
433+
"<img width=\"500\" src=\"https://github.com/IBM/visualize-data-with-python/blob/master/doc/source/selectDataFrameTableIcon.png\">\n",
436434
"\n",
437435
"#### 2.7.2 Select the chart icon to pull down and choose `line chart`. Click the `Options` button, and then for `Keys` drag and drop `datetime` and for `Values` drag and drop `Discharge`. This will display the water discharge at this stream gauge in cubic feet per second.\n",
438436
"\n",
439-
"<img width=\"500\" src=\"https://ibm.box.com/shared/static/jqh9t25jv39q5vplx4ecccl10zpoiudr.png\">\n",
437+
"<img width=\"500\" src=\"https://github.com/IBM/visualize-data-with-python/blob/master/doc/source/selectLineChart.png\">\n",
440438
"\n",
441-
"<img width=\"500\" src=\"https://ibm.box.com/shared/static/pyot4jkd1j2kxgbtlhvqk35i5w9r91f2.png\">\n",
439+
"<img width=\"500\" src=\"https://github.com/IBM/visualize-data-with-python/blob/master/doc/source/chooseDatetimeDischarge.png\">\n",
442440
"\n",
443441
"\n",
444442
"#### 2.7.4 Click the `Options` button, and then for `Keys` drag and drop `datetime` and for `Values` drag and drop `Gauge_Height`. This will display the height of the water at this stream gauge, in feet.\n"
@@ -491,7 +489,7 @@
491489
"metadata": {},
492490
"outputs": [],
493491
"source": [
494-
"!wget \"https://ibm.box.com/shared/static/oh717dsl1d63nhomhguoqwpyp1f00psk.csv\""
492+
"!wget https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/data/maxFlood.csv\n"
495493
]
496494
},
497495
{
@@ -500,17 +498,7 @@
500498
"metadata": {},
501499
"outputs": [],
502500
"source": [
503-
"!mv oh717dsl1d63nhomhguoqwpyp1f00psk.csv flood.csv\n",
504-
"!ls"
505-
]
506-
},
507-
{
508-
"cell_type": "code",
509-
"execution_count": null,
510-
"metadata": {},
511-
"outputs": [],
512-
"source": [
513-
"maxFlood = pd.read_csv('flood.csv')"
501+
"maxFlood = pd.read_csv('maxFlood.csv')"
514502
]
515503
},
516504
{
@@ -592,9 +580,7 @@
592580
"metadata": {},
593581
"outputs": [],
594582
"source": [
595-
"!wget https://ibm.box.com/shared/static/wo7piia0faxp1vu8cfkmrb5e5olon9l0.geojson\n",
596-
"!mv wo7piia0faxp1vu8cfkmrb5e5olon9l0.geojson houstonFlood.geojson\n",
597-
"!ls"
583+
"!wget https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/data/streamGauges.geojson\n"
598584
]
599585
},
600586
{
@@ -626,13 +612,13 @@
626612
"\n",
627613
" self.setLayers([\n",
628614
" {\n",
629-
" \"name\": \"Houston Flood\",\n",
630-
" \"url\": \"https://ibm.box.com/shared/static/wo7piia0faxp1vu8cfkmrb5e5olon9l0.geojson\",\n",
615+
" \"name\": \"Houston Flooded Streets\",\n",
616+
" \"url\": \"https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/data/houston.geojson\",\n",
631617
" \"type\": \"LineString\"\n",
632618
" },\n",
633619
" {\n",
634-
" \"name\": \"STSA homes\",\n",
635-
" \"url\": \"https://ibm.box.com/shared/static/g4go447ovrwmuwvn6f79leeiqftoys0u.geojson\",\n",
620+
" \"name\": \"Random fictional homes\",\n",
621+
" \"url\": \"https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/data/HoustonFloodedZips250.geojson\",\n",
636622
" \"circle-color\": \"rgb(0, 255, 0)\"\n",
637623
" }\n",
638624
" ])\n",

0 commit comments

Comments
 (0)