Skip to content

Commit

Permalink
module 3 complete
Browse files Browse the repository at this point in the history
  • Loading branch information
spatialthoughts committed Nov 23, 2023
1 parent 9639ec5 commit e568e02
Show file tree
Hide file tree
Showing 12 changed files with 598 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**** Start of imports. If edited, may not auto-convert in the playground. ****/
var geometry = /* color: #00ff00 */ee.Geometry.Polygon(
[[[36.62513180012346, -1.2332928138897847],
[36.62499232525469, -1.2339685738967323],
[36.62524981732012, -1.234011479288199],
[36.62541074986101, -1.2334322564449516]]]);
/***** End of imports. If edited, may not auto-convert in the playground. *****/
var s2 = ee.ImageCollection('COPERNICUS/S2_HARMONIZED');

var geometry = ee.Geometry.Polygon([[
[36.62513180012346, -1.2332928138897847],
[36.62499232525469, -1.2339685738967323],
[36.62524981732012, -1.234011479288199],
[36.62541074986101, -1.2334322564449516]]
]);

Map.addLayer(geometry, {color: 'red'}, 'Farm');
Map.centerObject(geometry);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**** Start of imports. If edited, may not auto-convert in the playground. ****/
var geometry = /* color: #00ff00 */ee.Geometry.Polygon(
[[[36.62513180012346, -1.2332928138897847],
[36.62499232525469, -1.2339685738967323],
[36.62524981732012, -1.234011479288199],
[36.62541074986101, -1.2334322564449516]]]);
/***** End of imports. If edited, may not auto-convert in the playground. *****/
// Charting Class Probabilities Over Time

var geometry = ee.Geometry.Polygon([[
[36.62513180012346, -1.2332928138897847],
[36.62499232525469, -1.2339685738967323],
[36.62524981732012, -1.234011479288199],
[36.62541074986101, -1.2334322564449516]]
]);

Map.addLayer(geometry, {color: 'red'}, 'Selected Location')
Map.centerObject(geometry, 16)

Expand Down Expand Up @@ -60,7 +60,10 @@ var chart = ui.Chart.image.series({
hAxis: {title: '', format: 'YYYY-MMM'},
series: {
0: {color: 'green'},
1: {color: 'yellow'}
1: {color: 'orange'}
},
legend: {
position: 'top'
}
});
print(chart);
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**** Start of imports. If edited, may not auto-convert in the playground. ****/
var geometry = /* color: #00ff00 */ee.Geometry.Polygon(
[[[36.62513180012346, -1.2332928138897847],
[36.62499232525469, -1.2339685738967323],
[36.62524981732012, -1.234011479288199],
[36.62541074986101, -1.2334322564449516]]]);
/***** End of imports. If edited, may not auto-convert in the playground. *****/
var s2 = ee.ImageCollection('COPERNICUS/S2_HARMONIZED');

var geometry = ee.Geometry.Polygon([[
[36.62513180012346, -1.2332928138897847],
[36.62499232525469, -1.2339685738967323],
[36.62524981732012, -1.234011479288199],
[36.62541074986101, -1.2334322564449516]]
]);

Map.addLayer(geometry, {color: 'red'}, 'Farm');
Map.centerObject(geometry);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**** Start of imports. If edited, may not auto-convert in the playground. ****/
var geometry = /* color: #00ff00 */ee.Geometry.Polygon(
[[[36.62513180012346, -1.2332928138897847],
[36.62499232525469, -1.2339685738967323],
[36.62524981732012, -1.234011479288199],
[36.62541074986101, -1.2334322564449516]]]);
/***** End of imports. If edited, may not auto-convert in the playground. *****/
// Charting Class Probabilities Over Time

var geometry = ee.Geometry.Polygon([[
[36.62513180012346, -1.2332928138897847],
[36.62499232525469, -1.2339685738967323],
[36.62524981732012, -1.234011479288199],
[36.62541074986101, -1.2334322564449516]]
]);

Map.addLayer(geometry, {color: 'red'}, 'Selected Location')
Map.centerObject(geometry, 16)

Expand Down Expand Up @@ -60,7 +60,10 @@ var chart = ui.Chart.image.series({
hAxis: {title: '', format: 'YYYY-MMM'},
series: {
0: {color: 'green'},
1: {color: 'yellow'}
1: {color: 'orange'}
},
legend: {
position: 'top'
}
});
print(chart);
467 changes: 467 additions & 0 deletions docs/gee-dynamic-world.html

Large diffs are not rendered by default.

Binary file added docs/images/gee_dynamic_world/dw_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/gee_dynamic_world/mapreduce.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/gee_dynamic_world/module2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/gee_dynamic_world/s2_vs_dw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
96 changes: 95 additions & 1 deletion gee-dynamic-world.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,106 @@ var stacked = composite.addBands(probabilityImage);

## 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"}.


----

# Learning Resources

* [Google Earth Engine User Guide](https://developers.google.com/earth-engine/)
Expand Down
Binary file added images/gee_dynamic_world/dw_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gee_dynamic_world/mapreduce.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e568e02

Please sign in to comment.