我正在嘗試按云覆蓋百分比(例如20%)過濾Sentinel 2圖像,然后對輸出執(zhí)行一些圖像算術(shù)運算。我正在嘗試實現(xiàn)在這里找到的內(nèi)容:gis.stackexchange線程(https://gis.stackexchange.com/questions/303344/filter-landsat-images-cloud-cover)。不幸的是,該功能ee.Algorithms.Landsat...不適用于Sentinel 2圖像,這是我正在執(zhí)行的操作所必需的。到目前為止,我的代碼如下。var myCollection = ee.ImageCollection('COPERNICUS/S2');var dataset2 = ee.ImageCollection( myCollection.filterBounds(point) //use only one image that contains the POI .filterDate('2015-06-23', '2019-04-25') //filter by date range);var ds2_cloudiness = dataset2.map(function(image){ var cloud = ee.Algorithms.Landsat.simpleCloudScore(image).select('cloud'); var cloudiness = cloud.reduceRegion({ reducer: 'median' }); return image.set(cloudiness);});var filteredCollection = ds2_cloudiness.filter(ee.Filter.lt('cloud', 20));Map.addLayer(filteredCollection, {min: -.2, max:.2}, 'test')這將輸出一個錯誤:Landsat.simpleCloudScore: Image is not a Landsat scene or is missing SENSOR_ID metadata.朝正確方向的任何輕推都會受到贊賞。
嘗試按百分比云覆蓋率篩選哨兵2張圖像
牛魔王的故事
2021-05-02 13:41:25