|
7 | 7 | "source": [
|
8 | 8 | "# Module 1: Working in JupyterHub\n",
|
9 | 9 | "\n",
|
10 |
| - "Let's look at some data." |
| 10 | + "Let's look at some data.\n", |
| 11 | + "\n", |
| 12 | + "* **Read this notebook and execute each cell (`SHIFT+ENTER`) as you go!**" |
11 | 13 | ]
|
12 | 14 | },
|
13 | 15 | {
|
|
29 | 31 | "\n",
|
30 | 32 | "We've prepared a simple dataset in an open format, [GeoJSON](https://geojson.org/), which contains one point: The Sustainability, Energy, and Environment Community (SEEC) building where we are now.\n",
|
31 | 33 | "\n",
|
| 34 | + "When loading this data, we call the variable `gdf`, short for `GeoDataFrame`, an object provided by `geopandas` for tabular geospatial data.\n", |
| 35 | + "\n", |
32 | 36 | "We'll look at the raw data in tabular form, and then plot it."
|
33 | 37 | ]
|
34 | 38 | },
|
|
69 | 73 | "source": [
|
70 | 74 | "## That's not a very useful plot, is it?\n",
|
71 | 75 | "\n",
|
72 |
| - ":) No! We'll come back to this." |
| 76 | + "😉 No! We'll come back to this." |
73 | 77 | ]
|
74 | 78 | },
|
75 | 79 | {
|
|
97 | 101 | " {\n",
|
98 | 102 | " \"Address\": [\"National Snow and Ice Data Center CIRES, 449 UCB University of Colorado Boulder\"],\n",
|
99 | 103 | " \"Name\": [\"National Snow and Ice Data Center (NSIDC)\"],\n",
|
100 |
| - " \"geometry\": [Point(-105.25271574468819, 40.01262175838934)], # Longitude first!\n", |
| 104 | + " \"geometry\": [Point(-105.25271574468819, 40.01262175838934)], # IMPORTANT: Longitude first!\n", |
101 | 105 | " },\n",
|
102 | 106 | " crs=\"EPSG:4326\",\n",
|
103 | 107 | ")\n",
|
|
136 | 140 | "\n",
|
137 | 141 | "Well, we can see that these points are relatively near each-other!\n",
|
138 | 142 | "\n",
|
139 |
| - "Just kidding, we need more. :)\n", |
| 143 | + "Again, just kidding, we need more. 😉\n", |
140 | 144 | "\n",
|
141 | 145 | "We could write a bunch of additional code to visualize it effectively, but there are easier ways. We'll look at this in Module 2."
|
142 | 146 | ]
|
|
166 | 170 | "source": [
|
167 | 171 | "## Challenge: Create some data of our own\n",
|
168 | 172 | "\n",
|
169 |
| - "Fill in the blanks in the cells below!\n", |
| 173 | + "* **Create a add a GeoDataFrame containing a point that is meaningful to you**:\n", |
| 174 | + " * Your favorite coffee shop?\n", |
| 175 | + " * The shelter where you adopted your pet?\n", |
| 176 | + " * The town where you grew up?\n", |
| 177 | + "\n", |
| 178 | + " Hint: Modify code from one of the cells above.\n", |
170 | 179 | "\n",
|
171 |
| - "Perhaps add a data point that is meaningful to you: Your favorite coffee shop? The shelter where you adopted your pet? The town where you grew up?\n", |
| 180 | + " Hint: Right click on a location in [Google Maps](https://www.google.com/maps) to get a latitude and longitude.\n", |
172 | 181 | "\n",
|
173 |
| - "Right click on a location in [Google Maps](https://www.google.com/maps) to get the latitude and longitude." |
| 182 | + " Hint: Longitude first 😉" |
174 | 183 | ]
|
175 | 184 | },
|
176 | 185 | {
|
|
180 | 189 | "metadata": {},
|
181 | 190 | "outputs": [],
|
182 | 191 | "source": [
|
183 |
| - "my_gdf = # ... populate your data here!" |
| 192 | + "my_gdf = # ... create your GeoDataFrame here!" |
184 | 193 | ]
|
185 | 194 | },
|
186 | 195 | {
|
|
0 commit comments