Professional Documents
Culture Documents
QUIZ VISUALISASI DATA - Ahmad Helmy 41820010118
QUIZ VISUALISASI DATA - Ahmad Helmy 41820010118
41820010118
BEKASI TIMUR
Dari gambar diatas menyimpulkan bahwa daerah yang berwarna merah memiliki potensi
banjir lebih tingggi
Untuk sintaks nya :
//Untuk hapus awan
function maskS2clouds(image) {
var qa = image.select('QA60');
.and(qa.bitwiseAnd(cirrusBitMask).eq(0));
return image.updateMask(mask).divide(10000);
//Map the function over one year of data and take the median.
.filterDate('2018-01-01', '2019-01-31')
.filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 20))
.filterBounds(geometry)
.map(maskS2clouds)
.median()
var rgbVis = {
min: 0.004,
max: 0.39,
};
'nir':image.select('B8'),
'red':image.select('B4'),
}).rename('NDVI')
'nir':image.select('B8'),
'swir':image.select('B11'),
}).rename('NDWI')
.addBands(ndwi)