Skip to content

Commit 9375b89

Browse files
committed
updated stats & examples
1 parent 6a3ac8b commit 9375b89

File tree

8 files changed

+163
-13
lines changed

8 files changed

+163
-13
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**** Start of imports. If edited, may not auto-convert in the playground. ****/
2+
var csi_great_basin = ee.ImageCollection("projects/sat-io/open-datasets/CSI/Great_Basin");
3+
/***** End of imports. If edited, may not auto-convert in the playground. *****/
4+
5+
var mosaic = csi_great_basin.mosaic();
6+
7+
var palette = [
8+
'FF0000',
9+
'FFA500',
10+
'FFFF00',
11+
'ADFF2F',
12+
'008000'
13+
];
14+
15+
var visParams = {
16+
min: -1,
17+
max: 1,
18+
palette: palette
19+
};
20+
21+
Map.centerObject(csi_great_basin.first(),6)
22+
23+
Map.addLayer(mosaic.select('CSI'), visParams, 'Great Basin Carbon Security Index');
24+
25+
var snazzy = require("users/aazuspan/snazzy:styles");
26+
snazzy.addStyle("https://snazzymaps.com/style/15/subtle-grayscale", "Greyscale");

awesome-gee-catalog-examples/global-events-layers/USGS-EARTHQUAKES-1923-2023

Lines changed: 0 additions & 5 deletions
This file was deleted.

awesome-gee-catalog-examples/global-landuse-landcover/GLOBAL-MANGROVE-WATCH

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ Map.addLayer(gmw_core_raster,{"opacity":1,"bands":["b1"],"min":1,"max":1,"palett
3333
//Tiles
3434
var tiles = ee.FeatureCollection("projects/earthengine-legacy/assets/projects/sat-io/open-datasets/GMW/gmw_v3_tiles");
3535
Map.addLayer(ee.Image().paint(tiles,0,3), {"palette":["#000000"]}, 'Tiles')
36+
37+
//Extent v4
38+
var raster_extent = ee.ImageCollection("projects/sat-io/open-datasets/GMW/annual-extent/GMW_MNG_2020");
39+
var vector_extent = ee.FeatureCollection("projects/sat-io/open-datasets/GMW/annual-extent/GMW_MNG_VEC_2020");
40+
Map.addLayer(raster_extent.median(),{"opacity":1,"bands":["b1"],"min":1,"max":1,"palette":["228B22"]},'GMW Raster Extent 2020 v4.0.19')
41+
Map.addLayer(ee.Image().paint(vector_extent,0,3), {"palette":["red"]}, 'GMW Vector Extent 2020 v4.0.19')
42+

awesome-gee-catalog-examples/global-landuse-landcover/GLOBAL-PEATLAND renamed to awesome-gee-catalog-examples/global-landuse-landcover/GLOBAL-PEATLAND-DATABASE

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/**** Start of imports. If edited, may not auto-convert in the playground. ****/
2-
var peatland_db = ee.Image("projects/sat-io/open-datasets/GLOBAL-PEATLAND-DATABASE"),
3-
peatland_extent = ee.Image("projects/sat-io/open-datasets/ML-GLOBAL-PEATLAND-EXTENT");
2+
var peatland_db = ee.Image("projects/sat-io/open-datasets/GLOBAL-PEATLAND-DATABASE");
43
/***** End of imports. If edited, may not auto-convert in the playground. *****/
5-
64
// Load administrative boundaries for Indonesia
75
var admin1 = ee.FeatureCollection("projects/sat-io/open-datasets/geoboundaries/HPSCGS-ADM1");
86
var geometry = admin1.filter(ee.Filter.eq('shapeGroup', 'IDN'));
@@ -19,6 +17,4 @@ var peat = peatland_db //.clip(geometry)
1917
Map.addLayer(peat.clip(geometry),
2018
{min: 0, max: 1, palette: ['#f7fcf5', '#c7e9c0', '#74c476', '#238b45', '#00441b']},
2119
'Peatland Distribution', true
22-
);
23-
Map.addLayer(peatland_extent,{palette: ['#f7fcf5', '#c7e9c0', '#74c476', '#238b45', '#00441b']},
24-
'Peatland Distribution', true);
20+
);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Load administrative boundaries for Indonesia
2+
var admin1 = ee.FeatureCollection("projects/sat-io/open-datasets/geoboundaries/HPSCGS-ADM1");
3+
var geometry = admin1.filter(ee.Filter.eq('shapeGroup', 'IDN'));
4+
5+
Map.centerObject(geometry, 4);
6+
Map.setOptions("Hybrid");
7+
8+
var peat = ee.Image("projects/sat-io/open-datasets/ML-GLOBAL-PEATLAND-EXTENT")
9+
.clip(geometry)
10+
.unmask();
11+
12+
// Display the results
13+
Map.addLayer(peat.clip(geometry),
14+
{min: 0, max: 100, palette: ['#f7fcf5', '#c7e9c0', '#74c476', '#238b45', '#00441b']},
15+
'Peatland Distribution', true
16+
);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var carbonoffsetscol = ee.FeatureCollection('projects/sat-io/open-datasets/CARBON-OFFSET-PROJECTS-GLOBAL');
2+
3+
var visParams = {
4+
palette: ['#9ab555'],
5+
min: 0.0,
6+
max: 1550000.0,
7+
opacity: 0.8,
8+
};
9+
var carbonoffsets = ee.Image().float().paint(carbonoffsetscol, 'REP_AREA');
10+
11+
Map.setCenter(-52.692,-2.628,6)
12+
Map.addLayer(carbonoffsets, visParams, 'Existing carbon projects area');
13+
14+
var snazzy = require("users/aazuspan/snazzy:styles");
15+
snazzy.addStyle("https://snazzymaps.com/style/15/subtle-grayscale", "Greyscale");
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
2+
var snazzy = require("users/aazuspan/snazzy:styles");
3+
snazzy.addStyle("https://snazzymaps.com/style/15/subtle-grayscale", "Greyscale");
4+
5+
6+
// load the population density
7+
var popDensity = ee.Image("projects/ee-nandometzger/assets/POPCORNv1");
8+
9+
// Define the inferno color palette
10+
var infernoPalette = [
11+
'#000004', '#1b0c41', '#4a0c6b', '#781c81', '#a52c7a', '#cf4446',
12+
'#ed721c', '#fb9b06', '#f7d03c', '#fcffa4'
13+
];
14+
15+
// Define visualization parameters.
16+
var visParams = {
17+
min: 0,
18+
max: 4,
19+
palette: infernoPalette,
20+
opacity: 0.8 // 70% transparent
21+
};
22+
23+
24+
// Mask out the lowest values (e.g., less than a certain threshold)
25+
var threshold = 0.08;
26+
var maskedPopDensity = popDensity.updateMask(popDensity.gt(threshold));
27+
28+
// Add the masked population density layer to the map.
29+
Map.addLayer(maskedPopDensity, visParams, 'Population Density');
30+
31+
// Create a legend
32+
var legend = ui.Panel({
33+
style: {
34+
position: 'bottom-right',
35+
padding: '8px 15px',
36+
}
37+
});
38+
39+
// Create legend title
40+
var legendTitle1 = ui.Label({
41+
value: 'POPCORN',
42+
style: {
43+
fontWeight: 'bold',
44+
fontSize: '32px',
45+
margin: '0 0 4px 0',
46+
padding: '0'
47+
}
48+
});
49+
50+
legend.add(legendTitle1);
51+
52+
// Create another legend title
53+
var legendTitle2 = ui.Label({
54+
value: 'Population Density [People/ha]',
55+
style: {
56+
fontWeight: 'bold',
57+
fontSize: '18px',
58+
margin: '0 0 4px 0',
59+
padding: '0'
60+
}
61+
});
62+
63+
legend.add(legendTitle2);
64+
65+
// Create a continuous color legend
66+
var legendImage = ui.Thumbnail({
67+
image: ee.Image.pixelLonLat().select(0),
68+
params: {
69+
bbox: [0, 0, 1, 0.1],
70+
dimensions: '300x15',
71+
format: 'png',
72+
min: 0,
73+
max: 1,
74+
palette: infernoPalette,
75+
},
76+
style: { margin: '0 0 4px 0' },
77+
});
78+
79+
legend.add(legendImage);
80+
81+
// Create labels for min and max values
82+
var minLabel = ui.Label(visParams.min.toString(), { margin: '0 269px 4px 0' });
83+
var maxLabel = ui.Label(visParams.max.toString(), { margin: '0 0 4px 0' });
84+
85+
// Add labels to the legend
86+
var labelsPanel = ui.Panel([minLabel, maxLabel], ui.Panel.Layout.flow('horizontal'));
87+
legend.add(labelsPanel);
88+
Map.setControlVisibility({all: false});
89+
90+
// Add the legend to the map
91+
Map.add(legend);
92+
93+
// Center map for the rwanda/DRC boarder scene
94+
Map.setCenter(29.244453536522037, -1.6857641047022471, 13); // The third parameter is the zoom level.
95+

docs/stats.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Catalog Stats
22

3-
#### Last updated 2024-08-04
3+
#### Last updated 2024-09-08
44

55
![GEE Community Datasets](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/samapriya/34bc0c1280d475d3a69e3b60a706226e/raw/community.json)
66
![GitHub Release](https://img.shields.io/github/v/release/samapriya/awesome-gee-community-datasets)
77

88

9-
![catalog_stats_20240804](https://github.com/user-attachments/assets/e8c8c69e-0d22-4773-b457-6cf601bf219b)
9+
![catalog_stats_20240908](https://github.com/user-attachments/assets/0a08236d-81fc-4919-86cb-0ab07c2f7d93)

0 commit comments

Comments
 (0)