小编Dan*_*ção的帖子

ee.FeatureCollection flatten() 计算超时 Google Earth Engine

我正在尝试使用 Google Earth Engine 从大量的rapideye 图像中提取水掩模。我在Google Earth Engine 的代码编辑器中开发了这个脚本,它非常适合一小部分图像。但是当我尝试将图像数量增加到 100 以上时,我收到一条消息说

Computation timed out when processing the ee.FeatureCollection.flatten() function, line 84 of the script.
Run Code Online (Sandbox Code Playgroud)

有人对这个问题有任何提示或解决方案吗?

JavaScript 代码:

//Convert image into ImageCollection
function loadImageCollection(folderPath){
var t= ee.data.getInfo(folderPath);
var d=ee.data.getList(t);
var inglst=[];
for (var index = 0; index < d.length; ++index) {
inglst.push(ee.Image(d[index].id));}
return ee.ImageCollection.fromImages(inglst);}

var rapideyetoa= loadImageCollection('users/danielassumpcaoferreira/Rapideye2');
print(rapideyetoa);

//This function calculates Indices
var allbynary = function(image) {
var NIR = image.select('b5').rename ("nir");
var SR1 = image.select('b5').divide(image.select('b2')).rename("sr1");
var SR2 = …
Run Code Online (Sandbox Code Playgroud)

javascript performance flatten google-earth-engine

5
推荐指数
0
解决办法
1947
查看次数