forked from GeoScripting-WUR/IntroToRaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeedback.Rmd
53 lines (31 loc) · 940 Bytes
/
feedback.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
---
title: "Feedback raster exercise"
author: "Loïc Dutrieux"
date: "Friday, January 09, 2015"
output: slidy_presentation
---
# Yesterday
* Real world example
* Data from USGS as they come
## Step by step
* Identify RED, NIR, and fmask layers using `list.file()`
* `list.files(dir, pattern = glob2rx('*band3*.tif'), full.names = TRUE)`
* `list.files(dir, pattern = glob2rx('*fmask*.tif'), full.names = TRUE)`
* (Calculate NDVI -> apply cloud mask) * 2
* Crop to intersecting extent
* `intersect()`
* Substract the two layers
* No need to stack
---
# Visualization
<img src="figs/intersect.png" style="width: 1000px;"/>
---
# Visualization
<img src="figs/final.png" style="width: 1000px;"/>
---
# Visualization
<img src="figs/panels.png" style="width: 1000px;"/>
Google earth
---
# My solution:
[https://github.com/GeoScripting-WUR/ExerciseLesson4](https://github.com/GeoScripting-WUR/ExerciseLesson4)