Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 394c84f

Browse files
committed
Add notebooks and data for floods and streams.
Add data for Houston Flood 2017. Add notebook and example output. Update README.md for new Spark kernel.
1 parent 67468b5 commit 394c84f

20 files changed

+11559
-33
lines changed

README.md

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -48,50 +48,29 @@ Follow these steps to setup and run this Code Pattern. The steps are
4848
described in detail below.
4949

5050
1. [Sign up for the Watson Studio](#1-sign-up-for-watson-studio)
51-
2. [Create the Spark Service](#2-create-the-spark-service)
52-
3. [Create the notebook](#3-create-the-notebook)
53-
4. [Run the notebook](#4-run-the-notebook)
54-
5. [Analyze the results](#5-analyze-the-results)
55-
6. [Save and Share](#6-save-and-share)
51+
2. [Create the notebook](#2-create-the-notebook)
52+
3. [Run the notebook](#3-run-the-notebook)
53+
4. [Analyze the results](#4-analyze-the-results)
54+
5. [Save and Share](#5-save-and-share)
5655

5756
## 1. Sign up for Watson Studio
5857

5958
Sign up for IBM's [Watson Studio](https://dataplatform.cloud.ibm.com/). By creating a project in Watson Studio a free tier ``Object Storage`` service will be created in your IBM Cloud account. Take note of your service names as you will need to select them in the following steps.
6059

6160
> Note: When creating your Object Storage service, select the ``Free`` storage type in order to avoid having to pay an upgrade fee.
6261
63-
## 2. Create the Spark service
64-
65-
* In your project go to the `Settings` tab, scroll down to `Associated Services` and choose `+ Add service` -> `Spark`
66-
67-
![](doc/source/images/createSparkService.png)
68-
69-
* Either choose and `Existing` Spark service, or create a `New` one
70-
71-
<img width="500" src="doc/source/images/chooseExistingSpark.png">
72-
7362
## 3. Create the notebook
7463

75-
* Clone the github repository:
76-
77-
```
78-
git clone [email protected]:STSA2019/data-visualization-with-python
79-
```
80-
8164
* In [Watson Studio](https://dataplatform.cloud.ibm.com/), click `New Project +` under Projects or, at the top of the page click `+ New` and choose the tile for `Data Science` and then `Create Project`.
82-
* In your project go to the `Settings` tab, scroll down to `Associated Services` and choose `+ Add service` -> `Spark`. Either choose and `Existing` Spark service, or create a `New` one.
8365
* In [Watson Studio](https://dataplatform.cloud.ibm.com/) using the project you've created, click on `+ Add to project` and then choose the `Notebook` tile, OR in the `Assets` tab under `Notebooks` choose `+ New notebook` to create a notebook.
84-
* Select the `From File` tab.
85-
* Enter a name for the notebook.
86-
* Optionally, enter a description for the notebook.
87-
* Navigate to where you cloned this git repository in the step above, and choose `data-visualization-with-python/notebooks/HoustonFlood2017.ipynb`
88-
* Select the Spark runtime you've associated with this project:
89-
90-
<img width="500" src="doc/source/images/chooseSparkRuntime.png">
91-
92-
* Click the `Create` button.
93-
94-
![](doc/source/images/create_notebook.png)
66+
* Select the `From URL` tab. [1]
67+
* Enter a name for the notebook. [2]
68+
* Optionally, enter a description for the notebook. [3]
69+
* Under `Notebook URL` provide the following url: [https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/notebooks/HoustonFlood2017.ipynb](https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/notebooks/HoustonFlood2017.ipynb) [4]
70+
* For `Runtime` select the `Spark Python 3.6` option. [5]
71+
* Click the `Create notebook` button. [6]
72+
73+
![Create Notebook](doc/sourc/images/DataVisualizationCreateNotebook.png)
9574

9675
## 4. Run the notebook
9776

data/HoustonFloodedZips250.geojson

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

data/HuntingBayou.csv

Lines changed: 874 additions & 0 deletions
Large diffs are not rendered by default.

data/houston.geojson

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

data/maxFlood.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
site_name,datetime,Discharge,Gage_Height,latitude,longitude
2+
HuntingBayou,8-27 7:30,6640,37.1,29.808611,-95.313056
3+
WhiteoakBayou,8-27 5:30,30700,39.54,29.775,-95.396944
4+
BraysBayou,8-27 23:00,33200,45.08,29.69694444,-95.41194444
5+
WhiteoakBayouMainSt,8-27 14:00,1,38.09,29.76638889,-95.35833333

data/streamData/BraysBayou.csv

Lines changed: 894 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)