var image = ee.Image('LANDSAT/LC08/C01/T1_TOA/LC08_044034_20130603');
Map.addLayer(image,
{bands: ['B5', 'B4', 'B3'], min: 0, max: 0.5},
'original image');
var replacement = ee.Image('LANDSAT/LC08/C01/T1_TOA/LC08_044034_20130416');
var cloud = ee.Algorithms.Landsat.simpleCloudScore(image).select('cloud');
var replaced = image.where(cloud.gt(10), replacement);
Map.centerObject(image, 9);
Map.addLayer(replaced,
{bands: ['B5', 'B4', 'B3'], min: 0, max: 0.5},
'clouds replaced');
GEE把一幅影像的一部分由另外一幅影像代替
最新推荐文章于 2023-04-24 21:50:04 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)