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

边栏推荐
- The flutter slivereappbar is fully parsed. All the effects you want are here!
- 有监督、无监督与半监督学习
- Ceiling scheme 1
- Flutter SliverAppBar全解析,你要的效果都在这了!
- 网页鼠标点击特效案例收集(直播间红心同理)
- 药物发现综述-01-药物发现概述
- FB、WhatsApp群发消息在2022年到底有多热门?
- . Mp4 video test address
- Why are cloud vendors targeting this KPI?
- What is a through-hole conductive slip ring?
猜你喜欢

Overview of drug discovery-01 overview of drug discovery

Drug interaction prediction based on learning size adaptive molecular substructure

大尺寸导电滑环市场应用强度如何

What are the requirements for customizing the slip ring for UAV

N methods of data De duplication using SQL

Huawei partners and Developers Conference 2022 | Kirin software cooperates with Huawei to jointly build the computing industry and create a digital intelligence future

Form forms and form elements (input, select, textarea, etc.)
![The number of nodes of a complete binary tree [non-O (n) solution > Abstract dichotomy]](/img/56/768f8be9f70bf751f176e40cbb1df2.png)
The number of nodes of a complete binary tree [non-O (n) solution > Abstract dichotomy]

Interviewer asked: Inheritance of JS

The flutter slivereappbar is fully parsed. All the effects you want are here!
随机推荐
Réseau neuronal pour la solution détaillée Multi - diagrammes de fondation zéro
手机股票开户安全吗,买股票在哪开户?
Taro--- day2--- compile and run
药物发现综述-03-分子设计与优化
Can you open an account for stock trading in flush? Is it safe?
Flutter SliverAppBar全解析,你要的效果都在这了!
lodash实现防抖和节流功能及原生实现
万字长文看懂商业智能(BI)|推荐收藏
The research group of Xuyong and duanwenhui of Tsinghua University has developed an efficient and accurate first principles electronic structure deep learning method and program
The contents of the latex table are left, middle and right
如何理解 Transformer 中的 Query、Key 与 Value
Deep parsing of kubernetes controller runtime
Solon 1.8.3 发布,云原生微服务开发框架
网页鼠标点击特效案例收集(直播间红心同理)
MySQL 18: execution of write statements
【DNS 解析】将Name.com的域名接入DNSPod解析
Proe/Creo产品结构设计-钻研不断
SQL Server 2016 detailed installation tutorial (with registration code and resources)
吸顶方案1
Lefse analyzes the local implementation method with all installation files and details to ensure success.