-
Notifications
You must be signed in to change notification settings - Fork 0
/
NLCDchange
119 lines (117 loc) · 1.94 KB
/
NLCDchange
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
var dataset = ee.ImageCollection('USGS/NLCD');
var landcover = dataset.select('landcover')
.filterDate('1991-09-01', '1993-09-30');
var landcover2 = dataset.select('landcover')
.filterDate('2015-01-01', '2016-12-31');
var change = (landcover2.mean()).subtract(landcover.mean());
var landcoverVis = {
min: 0.0,
max: 95.0,
palette: [
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'466b9f',
'd1def8',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'dec5c5',
'd99282',
'eb0000',
'ab0000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'b3ac9f',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'68ab5f',
'1c5f2c',
'b5c58f',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'af963c',
'ccb879',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'dfdfc2',
'd1d182',
'a3cc51',
'82ba9e',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'dcd939',
'ab6c28',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'000000',
'b8d9eb',
'000000',
'000000',
'000000',
'000000',
'6c9fb8'
],
};
var changeVis = {
min: -50.0,
max: 95.0,
palette: ['ffffff','000000','ffffff'],
};
//Map.setCenter(-95, 38, 5);
Map.addLayer(landcover, landcoverVis, 'Landcover 1992');
Map.addLayer(landcover2, landcoverVis, 'Landcover 2016');
Map.addLayer(change, changeVis, 'Landcover Change');