Google Earth Engine(GEE)——export影像导出错误Error: Image.clipToBoundsAndScale, argument ‘input‘: Invalid

简介: Google Earth Engine(GEE)——export影像导出错误Error: Image.clipToBoundsAndScale, argument ‘input‘: Invalid

前一段时间RSEI的文章中,大家想下载每一年的RESI的影像,有很多人遇到了影像无法下载的问题,我在这里举个例子,先看问题:


这里的错误: Error: Image. clipToBoundsAndScale, argument ' input': Invalid type. Expected type: Image<unknown bands>. Actual type: ImageCollection. (Error code: 3)


其实,这里需要给大家简单明确一下问题的所在,就是我们要获取的影像下载,而我们通过遍历却获取了很多景影像,所以我们就没有办法下载,其实有一个很好的办法,就用镶嵌,我们要把多景影像镶嵌在一起,然后就可以按照一景影像下载。

举个例子:

var Years = ee.List.sequence(2000,2020);  // 生成逐年的List
// 逐年进行Map操作,遍历下载影像
var yearlist = Years.getInfo();
print(yearlist); 
var year_imgcol = ee.ImageCollection.fromImages(yearlist.map(function(year) {
    var img = VI.filter(ee.Filter.calendarRange(year, year, 'year')).mosaic();
    var y=img.set({name:ee.String(ee.Number(year).int())})
    Export.image.toDrive({
      image:img,
      description:'rsei'+year.toString(),
      region:sa,
      scale:500,
      maxPixels:1e13
      });
  Map.addLayer(img, ndviVis, 'rsei');
    return img;
}));


就是这句代码:  

var img = VI.filter(ee.Filter.calendarRange(year, year, 'year'));

var img = VI.filter(ee.Filter.calendarRange(year, year, 'year')).mosaic();

mosaic()

Composites all the images in a collection, using the mask.

使用掩码对一个集合中的所有图像进行合成。


Arguments:

this:collection (ImageCollection):

The collection to mosaic.


Returns: Image

最后成功了:

 


相关文章
|
数据可视化 定位技术 Sentinel
如何用Google Earth Engine快速、大量下载遥感影像数据?
【2月更文挑战第9天】本文介绍在谷歌地球引擎(Google Earth Engine,GEE)中,批量下载指定时间范围、空间范围的遥感影像数据(包括Landsat、Sentinel等)的方法~
6602 1
如何用Google Earth Engine快速、大量下载遥感影像数据?
|
编解码 人工智能 算法
Google Earth Engine——促进森林温室气体报告的全球时间序列数据集
Google Earth Engine——促进森林温室气体报告的全球时间序列数据集
522 0
|
编解码 人工智能 数据库
Google Earth Engine(GEE)——全球道路盘查项目全球道路数据库
Google Earth Engine(GEE)——全球道路盘查项目全球道路数据库
674 0
Error:java.util.zip.ZipException: duplicate entry: com/google/firebase/iid/zzc.class ,EvalIssueExcep
Error:java.util.zip.ZipException: duplicate entry: com/google/firebase/iid/zzc.class ,EvalIssueExcep
|
机器学习/深度学习 算法 数据可视化
基于Google Earth Engine云平台构建的多源遥感数据森林地上生物量AGB估算模型含生物量模型应用APP
基于Google Earth Engine云平台构建的多源遥感数据森林地上生物量AGB估算模型含生物量模型应用APP
1171 0
GEE——Google dynamic world中在影像导出过程中无法完全导出较大面积影像的解决方案(投影的转换)EPSG:32630和EPSG:4326的区别
GEE——Google dynamic world中在影像导出过程中无法完全导出较大面积影像的解决方案(投影的转换)EPSG:32630和EPSG:4326的区别
609 0
|
人工智能
Google Earth Engine(GEE)——全球1公里的云量MODIS图像数据集
Google Earth Engine(GEE)——全球1公里的云量MODIS图像数据集
558 0
Google Earth Engine(GEE)——全球1公里的云量MODIS图像数据集
|
数据处理
Google Earth Engine(GEE)——sentinel-1数据处理过程中出现错误Dictionary does not contain key: bucketMeans
Google Earth Engine(GEE)——sentinel-1数据处理过程中出现错误Dictionary does not contain key: bucketMeans
569 0
|
数据采集 编解码 人工智能
Google Earth Engine(GEE)——全球每日近地表空气温度(2003-2020年)
Google Earth Engine(GEE)——全球每日近地表空气温度(2003-2020年)
903 0
|
人工智能
Google Earth Engine(GEE)——1984-2019年美国所有土地上的大火烧伤严重程度和范围数据集
Google Earth Engine(GEE)——1984-2019年美国所有土地上的大火烧伤严重程度和范围数据集
433 0

热门文章

最新文章

推荐镜像

更多