当前位置:网站首页>Google Earth engine (GEE) -- an error caused by the imagecollection (error) traversing the image collection
Google Earth engine (GEE) -- an error caused by the imagecollection (error) traversing the image collection
2022-06-28 01:37:00 【The star light blog in 2021 cloud computing top3】
Failed with this error :
That failed with this error:
ImageCollection (Error)
ImageCollection.fromImages, argument 'images': Invalid type. Expected type: List<Image<unknown bands>>. Actual type: Image<[daymet_01_20150101_hourly_temp, daymet_01_20150101_rel_hum,
daymet_02_20150101_hourly_temp,
daymet_02_20150101_rel_hum,
daymet_03_20150101_hourly_temp,
daymet_03_20150101_rel_hum,
Image collection ( error )
ImageCollection.fromImages, Parameters “ Images ”: Invalid type . Expected type :List<Image<unknown band>>. Actual type :Image<[daymet_01_20150101_hourly_temp, daymet_01_20150101_rel_hum,
daymet_02_20150101_hourly_temp,
daymet_02_20150101_rel_hum,
daymet_03_20150101_hourly_temp,
daymet_03_20150101_rel_hum,
Original code :
var tmrh = ee.Image('users/japolo/temp_min_max/tmnr_15_q1');
var tmrh2 = ee.ImageCollection(tmrh);
var tmrh2 = ee.List(tmrh);
var tmrh3 = ee.ImageCollection(tmrh2);
print( tmrh3);
The mistake here is that you can't directly use ee.List() To traverse the image , It's about using GEE The built-in
ee.ImageCollection.fromImages(images)
Returns the image collection containing the given images.
Arguments:
images (List):
The images to include in the collection.
Returns: ImageCollection
The modified code :
var image = ee.Image("users/japolo/temp_min_max/tmnr_15_q1");
var bands = image.bandNames();
print(bands);
var imageBandsAsList = bands.map(function(b) {
var imageBand = image.select(ee.String(b));
// ad locum , Attribute "system:time_start " With the band's timestamp ( In Milliseconds ) Set it up .
// ee.Date.millis() This may be useful in setting the video time
return imageBand.copyProperties(image, ['system:time_start']);
});
var ic = ee.ImageCollection.fromImages(imageBandsAsList);
print(ic);
边栏推荐
- How to build an e-commerce platform at low cost
- Ten MySQL locks, one article will give you full analysis
- Taro---day2---编译运行
- LATEX 表格内容居左,中,右
- Ceiling scheme 1
- SQL Server 2016 detailed installation tutorial (with registration code and resources)
- .mp4视频测试地址
- Why are cloud vendors targeting this KPI?
- Download, configuration and installation of MySQL
- Adobe Premiere基础-编辑素材文件常规操作(脱机文件,替换素材,素材标签和编组,素材启用,便捷调节不透明度,项目打包)(十七)
猜你喜欢
MapReduce elementary programming practice
N methods of data De duplication using SQL
Meituan dynamic thread pool practice idea has been open source
Latest MySQL advanced SQL statement Encyclopedia
What are the requirements for customizing the slip ring for UAV
.mp4视频测试地址
Taro--- day2--- compile and run
[untitled]
MySQL十种锁,一篇文章带你全解析
Solon 1.8.3 发布,云原生微服务开发框架
随机推荐
Interview guide for data person | prepare these points to be prepared!
How to understand query, key and value in transformer
Proe/creo product structure design - continuous research
【无标题】
药物发现综述-03-分子设计与优化
Xctf attack and defense world misc wage earner advanced zone
Overview and construction of redis master-slave replication, sentinel mode and cluster
基于可学习尺寸自适应分子亚结构的药物相互作用预测
Collection de cas d'effets spéciaux en cliquant sur la souris de la page Web
【开源】开源系统整理-考试问卷等
MapReduce elementary programming practice
Arrays. Aslist() pit
Meituan dynamic thread pool practice idea has been open source
章凡:飞猪基于因果推断技术的广告投后归因
N methods of data De duplication using SQL
同花顺股票开户是会有什么风险吗?同花顺开户安全吗
Esxi based black Qunhui DSM 7.0.1 installation of VMware Tools
AI+临床试验患者招募|Massive Bio完成900万美元A轮融资
Taro--- day2--- compile and run
什么是数字化?什么是数字化转型?为什么企业选择数字化转型?