-
Notifications
You must be signed in to change notification settings - Fork 18
/
gee-dynamic-world.Rmd
676 lines (416 loc) · 28.5 KB
/
gee-dynamic-world.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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
---
title: "Hands-on Introduction to Dynamic World (Full Workshop)"
subtitle: "An introductory workshop to utilize the Dynamic World dataset in Google Earth Engine."
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 develop locally-relevant landcover classification easily. Contrary to other landcover products which try to classify the pixels into a single class – the Dynamic World (DW) model gives you the the probability of the pixel belonging to each of the 9 different landcover classes. The full dataset contains the DW class probabilities for every Sentinel-2 scene since 2015 having <35% cloud-cover. It is also 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.
```{r echo=FALSE, fig.align='center', out.width='100%'}
knitr::include_graphics('images/gee_dynamic_world/dw_banner.png')
```
This workshop focuses on building skills in Google Earth engine to utilize Dynamic World. The workshop consists of the following 4 modules:
1. Change Detection
2. Supervised Classification
3. Time Series Processing
4. Earth Engine Apps
Pre-requisites:
* Familiarity with remote sensing datasets and concepts is helpful but not required.
* **No programming background or experience is required.**
[![View Presentation](images/gee_dynamic_world/introduction.png){width="400px"}](https://docs.google.com/presentation/d/141OgchhM12UE3mWBZH_sCdPpfIzeHOAYCg8g5zuQ2as/edit?usp=sharing){target="_blank"}
[View the Presentation ↗](https://docs.google.com/presentation/d/141OgchhM12UE3mWBZH_sCdPpfIzeHOAYCg8g5zuQ2as/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.co.in/?accept_repo=users/ujavalgandhi/GEE-Dynamic-World) 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-Dynamic-World` 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_dynamic_world/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: Change Detection
## 01. Hello World
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F01b_Hello_World_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/01b_Hello_World_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F01c_Hello_World_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/01c_Hello_World_(exercise)')}
```
## 02. Image Collections
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F02b_Image_Collections_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/02b_Image_Collections_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F02c_Image_Collections_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/02c_Image_Collections_(exercise)')}
```
## 03. Hello Dynamic World
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/gee_dynamic_world/hello_dw.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F03b_Hello_Dynamic_World_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/03b_Hello_Dynamic_World_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F03c_Hello_Dynamic_World_(exercise)){target="_blank"}
```{js eval=FALSE}
// Exercise
// Change the startDate and endDate variables in the script
// to load the Dynamic World Composite for Jan-Mar 2023
// Set the center to your area of interest
```
## 04. Filtering Image Collections
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F04b_Filtering_Image_Collection_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/04b_Filtering_Image_Collection_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F04c_Filtering_Image_Collection_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/04c_Filtering_Image_Collection_(exercise)')}
```
## 05. Mosaics and Composites
```{r echo=FALSE, fig.align='center', out.width='75%', fig.cap='Mean Composite of Built Probability'}
knitr::include_graphics('images/gee_dynamic_world/dw_composite.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F05b_Mosaics_and_Composites_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/05b_Mosaics_and_Composites_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F05c_Mosaics_and_Composites_(exercise)){target="_blank"}
```{js eval=FALSE}
// Exercise
// Change the code to display the probability of 'crops'
// from the Dynamic World Composite
// Display the results in a green palette.
```
## 06. Feature Collections
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F06b_Feature_Collections_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/06b_Feature_Collections_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F06c_Feature_Collections_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/06c_Feature_Collections_(exercise)')}
```
## 07. Import
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F07b_Import_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/07b_Import_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F07c_Import_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/07c_Import_(exercise)')}
```
## 08. Clipping
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F08b_Clipping_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/08b_Clipping_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F08c_Clipping_(exercise)){target="_blank"}
```{js eval=FALSE}
// Change the Admin4 region to your region of choice
// Clip the dwComposite and display the 'built' probability on the Map
```
## 09. Change Detection
```{r echo=FALSE, fig.align='center', out.width='75%', fig.cap='Newly Urbanized Areas Detected in Langata, Nairobi'}
knitr::include_graphics('images/gee_dynamic_world/new_urban.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F09b_Change_Detection_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/09b_Change_Detection_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F09c_Change_Detection_(exericse)){target="_blank"}
```{js eval=FALSE}
// Exercise
// Change the script to find urban growth in your selected
// admin4 region
```
## 10. Convert to Vector
```{r echo=FALSE, fig.align='center', out.width='75%', fig.cap='Vectorized Polygons for Newly Urbanized Areas'}
knitr::include_graphics('images/gee_dynamic_world/urban_polygons.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F10b_Convert_to_Vector_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/10b_Convert_to_Vector_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F10c_Convert_to_Vector_(exercise)){target="_blank"}
```{js eval=FALSE}
// Exercise
// Change the script to see change polygons your selected
// admin4 region
```
## 11. Export
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F11b_Export_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/01_Change_Detection/11b_Export_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A01_Change_Detection%2F11c_Export_(exercise)){target="_blank"}
```{js eval=FALSE}
// Exercise
// Change the filter to your chosen region
// Export the results
```
## Quiz - Module 1
This is a short quiz to test your understanding of the Module 1 concepts.
[Launch Quiz ↗](https://forms.gle/ygkmHMyJbmDJoB6P6){target="_blank"}.
# Module 2: Supervised Classification
[![View Presentation](images/gee_dynamic_world/module2.png){width="400px"}](https://docs.google.com/presentation/d/1vVNZQn0WVYIMSIeIhBi6GlfAEVK7tsyt8i5NJ7eogKo/edit?usp=sharing){target="_blank"}
[View the Presentation ↗](https://docs.google.com/presentation/d/1vVNZQn0WVYIMSIeIhBi6GlfAEVK7tsyt8i5NJ7eogKo/edit?usp=sharing){target="_blank"}
## 01. Basic Supervised Classification
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F01b_Basic_Supervised_Classification_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/02_Supervised_Classification/01d_Basic_Supervised_Classification_(noimport))')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F01c_Basic_Supervised_Classification_(exercise)){target="_blank"}
```{js eval=FALSE}
// Perform supervised classification for your chosen region
// Delete the 'geometry' from imports
// Draw a polygon anywhere along the coastline to
// create a new geometry
// Make sure the chosen region has mangroves and water
```
## 02. Supervised Classification with Dynamic World Bands
```{r echo=FALSE, fig.align='center', out.width='75%', fig.cap='Comparison of classification results using S2 vs DW bands'}
knitr::include_graphics('images/gee_dynamic_world/s2_vs_dw.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F02b_Supervised_Classification_with_DW_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/02_Supervised_Classification/02d_Supervised_Classification_with_DW_(noimport)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F01c_Basic_Supervised_Classification_(exercise)){target="_blank"}
```{js eval=FALSE}
// Perform supervised classification for your chosen region
// Delete the 'geometry' from imports
// Draw a polygon anywhere along the coastline to
// create a new geometry
// Make sure the chosen region has mangroves and water
```
## 03. Accuracy Assessment
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F03b_Accuracy_Assessment_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/02_Supervised_Classification/03b_Accuracy_Assessment_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F03c_Accuracy_Assessment_(exercise)){target="_blank"}
```{js eval=FALSE}
// Calculate and print the following assessment metrics
// 1. Producer's accuracy
// 2. Consumer's accuracy
// 3. F1-score
// Hint: Look at the ee.ConfusionMatrix module for appropriate methods
```
## 04. Improving the Classification
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F04b_Improving_the_Classification_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/02_Supervised_Classification/04b_Improving_the_Classification_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F04c_Improving_the_Classification_(exercise)){target="_blank"}
```{js eval=FALSE}
// Classify S2 + DW Composite
// Create a new image by stacking S2 and DW Bands
var stacked = composite.addBands(probabilityImage);
// Run the classifyImage() function on the stacked image
// and display the results
```
## 05. Exporting Classification Results
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F05b_Exporting_Classification_Results_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/02_Supervised_Classification/05b_Exporting_Classification_Results_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F05c_Exporting_Classification_Results_(exercise)){target="_blank"}
```{js eval=FALSE}
// Exercise
// Export both classified images as assets
// Run the script and start the export tasks
```
## 06. Calculating Area
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F06b_Calculating_Area_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/02_Supervised_Classification/06b_Calculating_Area_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A02_Supervised_Classification%2F06c_Calculating_Area_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/02_Supervised_Classification/06c_Calculating_Area_(exercise)')}
```
## Quiz - Module 2
This is a short quiz to test your understanding of the Module 2 concepts.
[Launch Quiz ↗](https://forms.gle/8Kx6HqZvuGQnozt78){target="_blank"}.
# Module 3: Time Series Processing
[![View Presentation](images/gee_dynamic_world/mapreduce.png){width="400px"}](https://docs.google.com/presentation/d/12vXc6uxZTK9vK-zvUkdbIlwzXwLU0RbQeoyoVZptNZo/edit?usp=sharing){target="_blank"}
[View the Presentation ↗](https://docs.google.com/presentation/d/12vXc6uxZTK9vK-zvUkdbIlwzXwLU0RbQeoyoVZptNZo/edit?usp=sharing){target="_blank"}
## 01. Mapping a Function
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F01b_Mapping_a_Function_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/03_Time_Series_Processing/01b_Mapping_a_Function_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F01c_Mapping_a_Function_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/03_Time_Series_Processing/01c_Mapping_a_Function_(exercise)')}
```
## 02. Reducers
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F02b_Reducers_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/03_Time_Series_Processing/02b_Reducers_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F02c_Reducers_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/03_Time_Series_Processing/02c_Reducers_(exercise)')}
```
## 03. Computation on ImageCollections
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F03b_Computation_on_Image_Collections_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/03_Time_Series_Processing/03b_Computation_on_Image_Collections_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F03c_Computation_on_Image_Collections_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/03_Time_Series_Processing/03c_Computation_on_Image_Collections_(exercise)')}
```
## 04. Time-Series Charts
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F04b_Time_Series_Charts_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/03_Time_Series_Processing/04b_Time_Series_Charts_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F04c_Time_Series_Charts_(exercise)){target="_blank"}
```{js eval=FALSE}
// Delete the farm boundary and add another farm at a location of your choice
// Print the chart.
```
## 05. Dynamic World Time-Series charts
```{r echo=FALSE, fig.align='center', out.width='75%', fig.cap='Dynamic World Time-Series'}
knitr::include_graphics('images/gee_dynamic_world/dw_chart.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F05b_Dynamic_World_Time_Series_Chart_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/03_Time_Series_Processing/05b_Dynamic_World_Time_Series_Chart_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A03_Time_Series_Processing%2F05c_Dynamic_World_Time_Series_Chart_(exercise)){target="_blank"}
```{js eval=FALSE}
// Delete the farm boundary and add another farm at a location of your choice
// Select the probability bands to those relevant to the location
// Update the series colors
// Print the chart.
```
## Quiz - Module 3
This is a short quiz to test your understanding of the Module 3 concepts.
[Launch Quiz ↗](https://forms.gle/8Kx6HqZvuGQnozt78){target="_blank"}.
# Module 4: Earth Engine Apps
[![View Presentation](images/gee_dynamic_world/apps.png){width="400px"}](https://docs.google.com/presentation/d/1K91rkDQtmV6pWsdqxlPTIVl7z-9nekPBdyUj6Z1xlXY/edit?usp=sharing){target="_blank"}
[View the Presentation ↗](https://docs.google.com/presentation/d/1K91rkDQtmV6pWsdqxlPTIVl7z-9nekPBdyUj6Z1xlXY/edit?usp=sharing){target="_blank"}
## 01. Client vs. Server
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F01b_Client_vs_Server_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/04_Earth_Engine_Apps/01b_Client_vs_Server_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F01c_Client_vs_Server_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/04_Earth_Engine_Apps/01c_Client_vs_Server_(exercise)')}
```
## 02. Using UI Elements
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F02b_Using_UI_Elements_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/04_Earth_Engine_Apps/02b_Using_UI_Elements_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F02c_Using_UI_Elements_(exercise)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/04_Earth_Engine_Apps/02c_Using_UI_Elements_(exercise)')}
```
## 03. Building a Change Detection App
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/gee_dynamic_world/change-detection-app.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F03b_Change_Detection_App_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/04_Earth_Engine_Apps/03b_Change_Detection_App_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F03c_Change_Detection_App_(exercise)){target="_blank"}
```{js eval=FALSE}
// Add a button called 'Reset'
// Clicking the button should remove all loaded layers
// Hint: Use Map.clear() for removing the layers
```
## 04. Publishing the App
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F04b_Publishing_the_App_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/04_Earth_Engine_Apps/04b_Publishing_the_App_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F04c_Publishing_the_App_(exercise)){target="_blank"}
```{js eval=FALSE}
// Set the map center to your area of interst
// Replace the author label with your name
// Publish the app.
```
## 05. Split-Panel App
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/gee_dynamic_world/split_panel_app.png')
```
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F05b_Split_Panel_App_(complete)){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/04_Earth_Engine_Apps/05b_Split_Panel_App_(complete)')}
```
### Exercise
[Try in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3A04_Earth_Engine_Apps%2F04c_Publishing_the_App_(exercise)){target="_blank"}
```{js eval=FALSE}
// Add the following labels to the appropriate map
var label1 = ui.Label({value: 'Sentinel-2 Composite',
style: {'fontSize': '20px', backgroundColor: '#f7f7f7', position:'top-left'}});
var label2 = ui.Label({value: 'Dynamic World Classification',
style: {'fontSize': '20px', backgroundColor: '#f7f7f7', position:'top-right'}});
```
# Supplement
## Automated GCP Collection for Mangrove Classification
[Open in Code Editor ↗](https://code.earthengine.google.co.in/?scriptPath=users%2Fujavalgandhi%2FGEE-Dynamic-World%3ASupplement%2FMangrove_GCP_Prep){target="_blank"}
```{js eval=FALSE, code=readLines('code/gee_dynamic_world/Supplement/Mangrove_GCP_Prep')}
```
----
# 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** and **Sentinel-1 SAR GRD**: 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
* **Kenya Admin Level 4 boundaries**: Central Bureau of Statistics (CBS), OCHA Regional Office for Southern and Eastern Africa (ROSEA). Downloaded from https://data.humdata.org/dataset/kenya-admin-level-4-boundaries
* **LSIB 2017: Large Scale International Boundary Polygons, Simplified**: United States Department of State, Office of the Geographer
* **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) 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 © 2023 Ujaval Gandhi [www.spatialthoughts.com](https://spatialthoughts.com)
# Citing and Referencing
You can cite the course materials as follows
* Gandhi, Ujaval, 2023. *Hands-on Introduction to Dynamic World* workshop. Spatial Thoughts. https://courses.spatialthoughts.com/gee-dynamic-world.html
***