我正在使用谷歌地球引擎,并且我使用了我在网上找到的一个名为 temporalCollection 的函数(单击此处)来计算一年内的每月平均值。然后我将它们显示在地图上,但也希望为它们制作图表。请参阅下面的代码。
var BIOT = ee.Feature( // BIOT
ee.Geometry.Rectangle(70.7, -4.7, 72.9, -7.7), {label: 'BIOT'});
var sst = ee.ImageCollection('NASA/OCEANDATA/MODIS-Aqua/L3SMI').select('sst')
var sstMonthly = temporalCollection(sst, ee.Date('2013-01-01'), 12, 1,
'month');
print('sstMonthly', sstMonthly)
var check = ee.Image(sstMonthly.first());
Map.addLayer(check, {bands: 'sst_mean', min: 0, max: 40,
'palette':"0000ff,32cd32,ffff00,ff8c00,ff0000"}, 'check')
print(ui.Chart.image.series(sstMonthly, BIOT, ee.Reducer.mean(), 500));
但是,我收到图表错误。所有其他方面似乎都运行良好。
Error generating chart: No features contain non-null values of
"system:time_start".
我不太确定这个错误是什么,或者我错过了什么。我刚刚按照教程中的基本代码进行操作。我对 GEE 很陌生,那里没有太多的研讨会或论坛,非常感谢任何帮助。