运行结果的下载的界面:
ECDI的指数公式:
'(SWIR1 - NIR + SWIR2)/(SWIR1 + NIR - SWIR2)'
本次代码中所选的影像的百分比是2%-98%的像素之间。
代码:
var table = ee.FeatureCollection("users/bqt2000204051/Beijing");
Map.addLayer(table)
Map.centerObject(table,8)
var rmL457Cloud = function(image) {
var qa = image.select('pixel_qa');
var cloud = qa.bitwiseAnd(1 << 5)
.and(qa.bitwiseAnd(1 << 7))// If the cloud bit (5) is set and the cloud confidence (7) is high
.or(qa.bitwiseAnd(1 << 3));// or the cloud shadow bit is set (3), then it's a bad pixel.
var mask