ee.ImageCollection.qualityMosaic()
- mosaic获取的是最后一个有值的像素,然后生成一张影像;
- qualityMosaic提取的是像素点的最大值,类似对集合使用max函数。在处理NDVI时可以有去云的效果;
var l8 = ee.ImageCollection("LANDSAT/LC08/C01/T1_TOA");
var l8_select=l8.filterBounds(ee.Geometry.Point(106.5,29.6))
.filterDate("2018-01-01","2018-12-31")
.select("B[3,4,5]")
function add_NDVI(image){
var NDVI=image.normalizedDifference(["B5","B4"]).rename(