Professional Documents
Culture Documents
Ndvi 1
Ndvi 1
****/
/***** End of imports. If edited, may not auto-convert in the playground. *****/
.filterBounds(BATAS)
.filterDate('2022-04-01', '2022-10-30')
.filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE',20))
.median()
var visualization = {
min: 272,
max: 1153,
opacity: 1
};
print(dataset)
//Memunculan Citra
Map.centerObject(BATAS, 14)
'nir':dataset.select('B8'),
'red':dataset.select('B4'),
}).rename('NDVI')
var igbpPalette = [
'ca3f16',
'37a300',
'00ff14',
'ffa22f',
'fbff00'
];
print ('final_image',final_image)
// Export Data
Export.image.toDrive({
image: NDVI.clip(BATAS),
description: 'NDVI_WG',
scale: 10,
region:BATAS
});