-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathgee-dw-monitoring.Rmd
264 lines (170 loc) · 11.5 KB
/
gee-dw-monitoring.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
---
title: "Monitoring Landcover Changes using Dynamic World (Full Workshop)"
subtitle: "A hands-on workshop for analyzing and monitoring landcover changes using GEE and Dynamic World."
author: "Ujaval Gandhi"
fontsize: 12pt
output:
# pdf_document:
# latex_engine: xelatex
# toc: yes
# toc_depth: 3
# fig_caption: false
# word_document:
# toc: false
# fig_caption: false
html_document:
df_print: paged
highlight: pygments
includes:
after_body: comment.html
toc: yes
toc_depth: 2
header-includes:
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \renewcommand{\footrulewidth}{0.4pt}
- \fancyhead[LE,RO]{\thepage}
- \geometry{left=1in,top=0.75in,bottom=0.75in}
- \fancyfoot[CE,CO]{{\includegraphics[height=0.5cm]{images/cc-by-nc.png}} Ujaval Gandhi http://www.spatialthoughts.com}
---
\newpage
<!--- Install package vembedr to get YouTube videos rendered -->
```{r echo=FALSE}
suppressWarnings(library("vembedr"))
```
\newpage
# Introduction
Dynamic World is a landcover product developed by Google and World Resources Institute (WRI). It is a unique dataset that is designed to make it easy for users to do near real-time monitoring of landcover changes. The Dynamic World (DW) model gives you the the probability of the pixel belonging to each of the 9 different landcover classes and the dataset is updated continuously with detections from new Sentinel-2 scenes as soon as they are available. This makes DW ideal for change detection and monitoring applications. This workshop covers a wide range of examples for using Dynamic World dataset in Google Earth Engine (GEE) for landcover monitoring.
[![Watch the video](https://img.youtube.com/vi/Cgrni-DsEfo/mqdefault.jpg)](https://www.youtube.com/watch?v=Cgrni-DsEfo){target="_blank"}
[Watch the Video ↗](https://www.youtube.com/watch?v=Cgrni-DsEfo){target="_blank"}
[Access the Presentation ↗](https://docs.google.com/presentation/d/1tDiGSjGyv1Uf37dBYfK9CEQEJlpRMJuWCFbY5D1xDYY/edit?usp=sharing){target="_blank"}
## Quiz - Introduction to Dynamic World
This is a short quiz to test your understanding of the Dynamic World dataset.
[Launch Quiz ↗](https://forms.gle/7r6dYdR4oZxQzcm69){target="_blank"}.
# Setting up the Environment
## Sign-up for Google Earth Engine
If you already have a Google Earth Engine account, you can skip this step.
Visit our [GEE Sign-Up Guide](gee-sign-up.html) for step-by-step instructions.
## Get the Workshop Materials
The workshop material and exercises are in the form of Earth Engine scripts shared via a code repository.
1. [Click this link](https://code.earthengine.google.com/?accept_repo=users/ujavalgandhi/GEE-DW-Monitoring) to open Google Earth Engine code editor and add the repository to your account.
2. If successful, you will have a new repository named `users/ujavalgandhi/GEE-DW-Monitoring` in the *Scripts* tab in the *Reader* section.
3. Verify that your code editor looks like below
```{r echo=FALSE, fig.align='center', out.width='50%', fig.cap='Code Editor After Adding the Workshop Repository'}
knitr::include_graphics('images/gee_dw_monitoring/repository.png')
```
If you do not see the repository in the *Reader* section, click *Refresh repository cache* button in your *Scripts* tab and it will show up.
\newpage
# Module 1: Monitoring Landcover Changes
## 01. Monitoring Surface Water
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Surface Water Extent Monitoring for KrishnaRajaSagara Reservoir, India'}
knitr::include_graphics('images/gee_dw_monitoring/surface_water_monitoring.gif')
```
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3A01-Monitoring%2F01_surface_water_monitoring){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dw_monitoring/01-Monitoring/01_surface_water_monitoring')}
```
## 02. Monitoring Urban Growth
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Urban Changes in São Paulo'}
knitr::include_graphics('images/gee_dw_monitoring/urban_growth_monitoring.gif')
```
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3A01-Monitoring%2F02_urban_growth_monitoring){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dw_monitoring/01-Monitoring/02_urban_growth_monitoring')}
```
## 03. Monitoring Deforestation
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Deforestation Monitoring in Brazil'}
knitr::include_graphics('images/gee_dw_monitoring/deforestation_monitoring.gif')
```
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Discovering Optimal Probability Threshold'}
knitr::include_graphics('images/gee_dw_monitoring/trees_threshold.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3A01-Monitoring%2F03_deforestation_monitoring){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dw_monitoring/01-Monitoring/03_deforestation_monitoring')}
```
## 04. Monitoring Restoration Trends
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Restoration Monitoring in Maasai Mau Forest, Kenya'}
knitr::include_graphics('images/gee_dw_monitoring/restoration_monitoring.gif')
```
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Trend of Landcover Probabilties'}
knitr::include_graphics('images/gee_dw_monitoring/trend.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3A01-Monitoring%2F04_restoration_monitoring){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dw_monitoring/01-Monitoring/04_restoration_monitoring')}
```
# Module 2: Fine-Tuning Dynamic World Classification
## 01. Mangrove Classification
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3A02-Fine-Tuning%2F01_fine_tuning_mangroves){target="_blank"}
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Mangrove Classification using Dynamic World'}
knitr::include_graphics('images/gee_dw_monitoring/fine_tuning_mangroves.gif')
```
## 02. Urban Tree Cover Classification
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3A02-Fine-Tuning%2F02_fine_tuning_urban_tree_cover){target="_blank"}
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Classification of Various Types of Tree Cover in Bengaluru'}
knitr::include_graphics('images/gee_dw_monitoring/fine_tuning_urban_tree_cover.gif')
```
```{r echo=FALSE, fig.align='center', out.width='100%'}
knitr::include_graphics('images/gee_dw_monitoring/landcover_probabilities.png')
```
# Supplement
## Surface Water Monitoring (Large Regions)
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Monitoring Surface Water Extent for Lake Powell, USA'}
knitr::include_graphics('images/gee_dw_monitoring/monitoring_lake_powell.gif')
```
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3ASupplement%2Fsurface_water_monitoring_composites){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dw_monitoring/Supplement/surface_water_monitoring_composites')}
```
## Urban Growth Animation
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Growth of Bengaluru, India (2016-2024)'}
knitr::include_graphics('images/gee_dw_monitoring/urban_growth_animation.gif')
```
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3ASupplement%2Furban_growth_animation){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dw_monitoring/Supplement/urban_growth_animation')}
```
## Urban Growth with Building Counts
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Detecting New Buildings in São Paulo'}
knitr::include_graphics('images/gee_dw_monitoring/urban_growth_buildings.gif')
```
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3ASupplement%2Furban_growth_with_buildings){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dw_monitoring/Supplement/urban_growth_with_buildings')}
```
## Determining Contiguous Built Environment
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Contiguous Urban Area vs. Bengaluru Municipal City Limit'}
knitr::include_graphics('images/gee_dw_monitoring/contiguous_urban_area.gif')
```
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3ASupplement%2Fcontiguous_urban_area){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dw_monitoring/Supplement/contiguous_urban_area')}
```
## Monitoring Refugee Camps
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Monitoring of Refugee Camp Growth'}
knitr::include_graphics('images/gee_dw_monitoring/refugee_camp_monitoring.gif')
```
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3ASupplement%2Fmonitoring_refugee_camps){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dw_monitoring/Supplement/monitoring_refugee_camps')}
```
## Active Lava Classification
[Open in Code Editor ↗](https://code.earthengine.google.com/?scriptPath=users%2Fujavalgandhi%2FGEE-DW-Monitoring%3ASupplement%2Ffine_tuning_lava_flow){target="_blank"}
```{r echo=FALSE, fig.align='center', out.width='100%', fig.cap='Classifying Active Lava Flow vs. Lava Beds'}
knitr::include_graphics('images/gee_dw_monitoring/active_lava_classification.gif')
```
----
# Learning Resources
* [Google Earth Engine User Guide](https://developers.google.com/earth-engine/)
* [Cloud-Based Remote Sensing with Google Earth Engine: Fundamentals and Applications](https://www.eefabook.org/): A free and open-access book with 55-chapters covering fundamentals and applications of GEE. Also includes YouTube videos summarizing each chapter.
* [Spatial Thoughts OpenCourseWare](https://courses.spatialthoughts.com/)
* End-to-End Google Earth Engine
* Google Earth Engine for Water Resources Management
* Creating Publication Quality Charts with GEE
* Earth Engine Advanced Concepts
# Data Credits
* **Sentinel-2 Level-1C, Level-2A**: Contains Copernicus Sentinel data.
* **Dynamic World V1**: Brown, C.F., Brumby, S.P., Guzder-Williams, B. et al. Dynamic World, Near real-time global 10 m land use land cover mapping. Sci Data 9, 251 (2022). doi:10.1038/s41597-022-01307-4
* **FAO GAUL 500m: Global Administrative Unit Layers 2015, Second-Level Administrative Units**: Source of Administrative boundaries: The Global Administrative Unit Layers (GAUL) dataset, implemented by FAO within the CountrySTAT and Agricultural Market Information System
(AMIS) projects.
# License
The course material (text, images, presentation, videos) is licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).
The code (scripts, Jupyter notebooks etc.) is licensed under the MIT License. For a copy, see https://opensource.org/licenses/MIT
Kindly give appropriate credit to the original author as below:
Copyright © 2024 Ujaval Gandhi [www.spatialthoughts.com](https://spatialthoughts.com)
# Citing and Referencing
You can cite the course materials as follows
* Gandhi, Ujaval, 2024. *Monitoring Landcover Changes using Dynamic World* workshop. Spatial Thoughts. https://courses.spatialthoughts.com/gee-dynamic-world.html
***