Professional Documents
Culture Documents
Syntax Bener
Syntax Bener
812]);
//print (start,finish);
//print (land);
.filterDate(start,finish)
//.filter(ee.Filter.eq('WRS_PATH', 44))
//.filter(ee.Filter.eq('WRS_ROW', 34))
.sort('CLOUD_COVER', false);
Map.centerObject(kampai,10);
//print (lists);
//print (ls);
//print(ee.Image(lists.get(ls.subtract(1))).get("DATE_ACQUIRED"));
//Map.addLayer(ee.Image(lists.get(ls.subtract(1))),Color,'True Color');
Export.image.toDrive({
image: besar,
description: 'imageToDriveExample',
scale: 30,
region: batas
});
Map.addLayer(LC8_image, {min:0.05, max: 0.8, bands: 'B6, B5, B4'}, "Landsat 8 Scene");
// Create an NDVI image using bands the nir and red bands (5 and 4)
// Display the NDVI image - Use a grayscale stretch for display Map.addLayer(NDVI,{min: -0.2,
max:0.5, palette: ['FFFFFF', '339900']},"NDVI");
Export.image.toDrive({
image: LC8_image,
description: 'imageToDriveExample',
scale: 30,
region: roi
});
Export.image.toDrive({
image: NDVI,
description: 'imageToDriveExample',
scale: 30,
region: roi
});
// Mask the non-water body of the Imagery, where NDWI < 0.1