当前位置:网站首页>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);

边栏推荐
- 界面组件Telerik UI for WPF入门指南 - 如何使用主题切换自定义样式
- Esxi based black Qunhui DSM 7.0.1 installation of VMware Tools
- 如何高效读书学习
- 【DNS 解析】将Name.com的域名接入DNSPod解析
- Taro---day1---搭建项目
- Is there any risk in opening an account for flush stock? Is it safe for flush to open an account
- Some habits of making money in foreign lead
- Huawei partners and Developers Conference 2022 | Kirin software cooperates with Huawei to jointly build the computing industry and create a digital intelligence future
- 有监督、无监督与半监督学习
- 向excel中导入mysql中的数据表
猜你喜欢

What are the requirements for customizing the slip ring for UAV

联想拯救者R720如何组建双通道内存

Why are cloud vendors targeting this KPI?

electron窗口背景透明无边框(可用于启动页面)

Form forms and form elements (input, select, textarea, etc.)

LMSOC:一种对社会敏感的预训练方法

为什么要选择不锈钢旋转接头

Solon 1.8.3 发布,云原生微服务开发框架

Class文件结构和字节码指令集

Solon 1.8.3 release, cloud native microservice development framework
随机推荐
Download, configuration and installation of MySQL
I/O限制进程与CPU限制进程
Adobe Premiere基础-编辑素材文件常规操作(脱机文件,替换素材,素材标签和编组,素材启用,便捷调节不透明度,项目打包)(十七)
Deploy a mongodb single node server locally, enable auth authentication and enable oplog
Web3 技术初体验以及相关学习资料
想开户买股票,在网上办理股票开户安全吗?
Electron window background transparent borderless (can be used to start the page)
国外LEAD赚钱的一些习惯
Adobe Premiere基础-常用的视频特效(裁剪,黑白,剪辑速度,镜像,镜头光晕)(十五)
[open source] open source system sorting - Examination Questionnaire, etc
Lefse analyzes the local implementation method with all installation files and details to ensure success.
有监督、无监督与半监督学习
数据人面试指南 | 准备好这几点做到有备无患!
What are the requirements for customizing the slip ring for UAV
Overview and construction of redis master-slave replication, sentinel mode and cluster
awk注意的几个问题
面试官问:JS的继承
What is the application scope and function of the conductive slip ring of single crystal furnace
Arrays. Aslist() pit
【说明】Jmeter乱码的解决方法