Google Earth Engine(GEE)——计算ECDI展示的代码2013-2020年6-8月份和循环下载以北京市为例

运行结果的下载的界面:

 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

猜你喜欢

转载自blog.csdn.net/qq_31988139/article/details/122697504