Date (Error)
Image.date: Image ‘1’ has a ‘system:time_start’ property which is not a number: 2001-06-01T00:00:00
mage.date:图像“1”具有“system:time_start”属性,该属性不是数字:2010-01-01T00:00:00
function setSystime(image){
var systime = ee.Date(ee.List(image).get(1))
return ee.Image(ee.List(image).get(0)).set('system:time_start', systime)}
我是这样设置系统时间的
但是显示不是数字
后面看到了一个博客加上millis()就好了
function setSystime(image){
var systime = ee.Date(ee.List(image).get(1))
return ee.Image(ee.List(image).get(0)).set('system:time_start', systime.millis())}
参考博客:
https://stackoverflow.com/questions/65105717/i-want-to-solve-the-systemtime-start-error-when-trying-to-output-gldas-monthl