Skip to content

Commit d89aec9

Browse files
committed
Merge branch 'scipy-2022' of github.com:planetlabs/notebooks into scipy-2022
pull in latest updates
2 parents 29cecd9 + 28d6524 commit d89aec9

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

jupyter-notebooks/scipy-2022-workshop/2_rasterbands.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@
292292
"metadata": {},
293293
"outputs": [],
294294
"source": [
295-
"plt.figure(0)\n",
296295
"plt.imshow(visual_image)\n",
297296
"plt.title(\"Visual Image\")"
298297
]

jupyter-notebooks/scipy-2022-workshop/3_Compute_NDWI.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@
195195
"metadata": {},
196196
"outputs": [],
197197
"source": [
198-
"plt.figure(0)\n",
199-
"plt.imshow(ndwi)\n",
200-
"plt.title(\"Analytic Image\")\n",
198+
"fig = plt.imshow(ndwi)\n",
199+
"fig.set_cmap('Blues')\n",
200+
"plt.title(\"NDWI\")\n",
201201
"plt.colorbar()"
202202
]
203203
},

jupyter-notebooks/scipy-2022-workshop/4_masks_and_filters.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@
165165
"source": [
166166
"# In the below image, purple areas are those identified as water\n",
167167
"\n",
168-
"plt.figure(1)\n",
169168
"plt.imshow(water_mask)\n",
170169
"plt.title(\"Houston water mask\")\n",
171170
"plt.colorbar()"
@@ -179,7 +178,6 @@
179178
"source": [
180179
"# In the below image, purple areas are those identified as land\n",
181180
"\n",
182-
"plt.figure(2)\n",
183181
"plt.imshow(land_mask)\n",
184182
"plt.title(\"Houston land mask\")\n",
185183
"plt.colorbar()"

jupyter-notebooks/scipy-2022-workshop/5_plotting_a_histogram.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"\n",
128128
"# Define a color for the histogram\n",
129129
"# You can use https://matplotlib.org/2.0.0/examples/color/named_colors.html as a reference\n",
130-
"color = 'lightgreen'\n",
130+
"color = 'royalblue'\n",
131131
"\n",
132132
"# call 'hist` with our x-axis, bins, and color details\n",
133133
"ax.hist(x,bins,color=color)\n",

jupyter-notebooks/scipy-2022-workshop/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Follow the set up instructions below to run the Jupyter Notebooks for this works
66

77
### Option 1: (recommended) Run in Google Colab
88

9-
Interact directly with this repo's Jupyter Notebooks by running them in [Google Colab](http://colab.research.google.com/).
9+
Interact directly with this repo's Jupyter Notebooks by running them in Google Colab.
1010

1111
Each Notebook will have its own **"Open in Colab"** button: once running on Colab, you'll need to run a quick setup cell in each notebook (this will install prerequisites and download data into your Colab workspace). You can also choose to make a copy of the Notebook in your own Google Drive, if you want to save any changes you make (not required for this workshop).
1212

@@ -17,9 +17,8 @@ You can instead choose to open this Notebook in your own local Jupyter instance.
1717
Clone this repo:
1818
```bash
1919
git clone [email protected]:planetlabs/notebooks.git
20-
cd notebooks
21-
git checkout scipy-2022
22-
cd jupyter-notebooks/scipy-2022-workshop/
20+
cd notebooks/jupyter-notebooks/scipy-2022-workshop/
21+
```
2322

2423
**Prerequisites**
2524
- Install: [rasterio](https://pypi.org/project/rasterio) library

0 commit comments

Comments
 (0)