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());
最后就可以成功运行了: