var l8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')
.filterDate('2021-1-1', '2021-12-31')
.select(['B5','B4'])
.filterMetadata('CLOUD_COVER', 'less_than', 20)
.filterBounds(geometry)
.median();
var NDVI = l8.normalizedDifference(['B5', 'B4']);
Map.addLayer(NDVI);
var forest = NDVI.gte(0.6).and(NDVI.lte(0.9));
Map.setCenter(100, 13, 5);
Map.addLayer(forest, { palette: ['#FFFFFF','#228b22'] }, 'Forest (Thailand)');
Filter by Group type
Filter by Total Members number
Earth engine : Normalized Difference Vegetation Index
Earth engine : Normalized Difference Vegetation Index
var l8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR')
.filterDate('2021-1-1', '2021-12-31')
.select(['B5','B4'])
.filterMetadata('CLOUD_COVER', 'less_than', 20)
.filterBounds(geometry)
.median();
var NDVI = l8.normalizedDifference(['B5', 'B4']);
Map.addLayer(NDVI);
var forest = NDVI.gte(0.6).and(NDVI.lte(0.9));
Map.setCenter(100, 13, 5);
Map.addLayer(forest, { palette: ['#FFFFFF','#228b22'] }, 'Forest (Thailand)');