Google Earth Engine(GEE)——found inconsistent types: UInt16 and Byte.影像数据导出到Google硬盘中的错误

Error: Exported bands must have compatible data types; found inconsistent types: UInt16 and Byte. (Error code: 3)

这个错误就是我们没有进行reduce统计而直接镶嵌的结果,就会出现无法下载的问题,所以最后在下载前先进行波段平均值或者最大值最小值的运算,然后把运算后的影像传入到 Export.image.toDrive()中的image中即可。

类似于添加一种这样的代码:

var ndvi = s2_nocloud.map(s2_ndvi).select("NDVI").reduce(ee.Reducer.mean());

最后就可以成功运行了:

猜你喜欢

转载自blog.csdn.net/qq_31988139/article/details/124195352