Skip to content

Commit 6bd940a

Browse files
committed
update
1 parent db5ab80 commit 6bd940a

28 files changed

+918
-71
lines changed
762 Bytes
Binary file not shown.
7.94 KB
Binary file not shown.
-4.99 KB
Binary file not shown.
1.29 KB
Binary file not shown.
33 Bytes
Binary file not shown.

book/_build/html/_sources/activities/07-activity.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"name": "python",
9292
"nbconvert_exporter": "python",
9393
"pygments_lexer": "ipython3",
94-
"version": "3.10.9"
94+
"version": "3.9.18"
9595
}
9696
},
9797
"nbformat": 4,

book/_build/html/_sources/activities/08-activity.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@
128128
"May have to drop the `index_right` columns before running this function.\n",
129129
"```\n",
130130
"\n",
131-
"* g) Make a plot of buildings in Harney County that are within 1/2 mile of the highway using `explore()`."
131+
"* g) Make a plot of buildings in Harney County that are within 1/2 mile of the highway using `explore()`.\n",
132+
"\n",
133+
"```{important} \n",
134+
"Save your notebook to your local course folder and submit assignment (in **.pdf** format) to Canvas by the deadline.\n",
135+
"```"
132136
]
133137
},
134138
{
@@ -156,7 +160,7 @@
156160
"name": "python",
157161
"nbconvert_exporter": "python",
158162
"pygments_lexer": "ipython3",
159-
"version": "3.8.12"
163+
"version": "3.9.18"
160164
}
161165
},
162166
"nbformat": 4,
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "d2bc3def",
6+
"metadata": {},
7+
"source": [
8+
"# Practice activity\n",
9+
"\n",
10+
"If you have installed Python locally, launch JupyterLab by running:\n",
11+
"\n",
12+
"```\n",
13+
"conda activate sds\n",
14+
"```\n",
15+
"and\n",
16+
"\n",
17+
"```\n",
18+
"jupyter lab\n",
19+
"```\n",
20+
"\n",
21+
"*****************************\n",
22+
"\n",
23+
"## Remote sensing in Python\n",
24+
"\n",
25+
"## Task 1 (10 points)\n",
26+
"\n",
27+
"* a) Download the Landsat data from [here](https://www.dropbox.com/sh/k3bkxwa2j9fovta/AADX4yZiIAEHiG9VPcyCON2pa?dl=0).\n",
28+
"\n",
29+
"* b) Read each band (i.e. `src1 = rasterio.open(files[0])`) and scale the values between 0 and 1 by dividing by the maximum value of a 16-bit integer (i.e. `band1 = src1.read(1) / 65536`).\n",
30+
"\n",
31+
"* c) Compute all eight of the spectral indices on [this website](https://www.usgs.gov/landsat-missions/landsat-surface-reflectance-derived-spectral-indices). For each index, make a plot (with a colorbar and a different colormap for each one) to show your answers.\n",
32+
"\n",
33+
"```{note}\n",
34+
"Note that the images we are using are from **Landsat 8**.\n",
35+
"```\n",
36+
"\n",
37+
"```{important} \n",
38+
"Save your notebook to your local course folder and submit assignment (in **.pdf** format) to Canvas by the deadline.\n",
39+
"```\n"
40+
]
41+
}
42+
],
43+
"metadata": {
44+
"kernelspec": {
45+
"display_name": "Python 3 (ipykernel)",
46+
"language": "python",
47+
"name": "python3"
48+
},
49+
"language_info": {
50+
"codemirror_mode": {
51+
"name": "ipython",
52+
"version": 3
53+
},
54+
"file_extension": ".py",
55+
"mimetype": "text/x-python",
56+
"name": "python",
57+
"nbconvert_exporter": "python",
58+
"pygments_lexer": "ipython3",
59+
"version": "3.9.18"
60+
}
61+
},
62+
"nbformat": 4,
63+
"nbformat_minor": 5
64+
}

book/_build/html/_sources/assignments/10-assignment.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,6 @@ Download elevation data for Mt Rainier [here](https://www.dropbox.com/s/ej4rdh93
3131

3232
* d) Which five glaciers span the most elevation (i.e. difference between maximum and minimum elevation)?
3333

34-
*****************************
35-
36-
## Task 2 (15 points)
37-
38-
Download the Landsat data from [here](https://www.dropbox.com/sh/k3bkxwa2j9fovta/AADX4yZiIAEHiG9VPcyCON2pa?dl=0).
39-
40-
* a) Compute a [Normalized Difference Vegetation Index](https://www.usgs.gov/landsat-missions/landsat-normalized-difference-vegetation-index) using bands 4 and 5.
41-
42-
* b) Compute a [Normalized Difference Moisture Index](https://www.usgs.gov/landsat-missions/normalized-difference-moisture-index) using bands 5 and 6.
43-
44-
* c) Find the area of water in the **NDWI** image.
45-
46-
* d) Find the area of sand in **Band 1** image
47-
48-
* e) Calculate the area of **healthy vegetation** and **non-vegetation** in the **NDVI** image. Note that you may need to subtract the sand and water pixels from non-vegetation classification - a pixel should only have one land cover.
49-
50-
* f) Compute the area of all four land covers in $km^{2}$.
51-
5234

5335
*****************************
5436

book/_build/html/activities/07-activity.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ <h1 class="site-logo" id="site-title">Programming for spatial data science</h1>
319319
Assignment 8
320320
</a>
321321
</li>
322+
<li class="toctree-l1">
323+
<a class="reference internal" href="08-activity.html">
324+
Practice activity
325+
</a>
326+
</li>
322327
</ul>
323328
<p aria-level="2" class="caption" role="heading">
324329
<span class="caption-text">
@@ -341,6 +346,11 @@ <h1 class="site-logo" id="site-title">Programming for spatial data science</h1>
341346
Assignment 9
342347
</a>
343348
</li>
349+
<li class="toctree-l1">
350+
<a class="reference internal" href="09-activity.html">
351+
Practice activity
352+
</a>
353+
</li>
344354
</ul>
345355
<p aria-level="2" class="caption" role="heading">
346356
<span class="caption-text">

0 commit comments

Comments
 (0)