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

边栏推荐
- 【MySQL】-【函数】
- What is the e-commerce conversion rate so abstract?
- 现在网上开股票账户安全吗?选择上市券商,最快8分钟开户成功
- 无人机专用滑环定制要求是什么
- Taro---day1---搭建项目
- Import the data table in MySQL into Excel
- 基于可学习尺寸自适应分子亚结构的药物相互作用预测
- The flutter slivereappbar is fully parsed. All the effects you want are here!
- 网页鼠标点击特效案例收集(直播间红心同理)
- 零基礎多圖詳解圖神經網絡
猜你喜欢

How to add live chat in your Shopify store?

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

Proe/creo product structure design - continuous research

FB、WhatsApp群发消息在2022年到底有多热门?

向excel中导入mysql中的数据表

Deepmind | pre training of molecular property prediction through noise removal

Taro---day1---搭建项目

What is the e-commerce conversion rate so abstract?

SPuG - lightweight automatic operation and maintenance platform

Xctf attack and defense world misc wage earner advanced zone
随机推荐
什么是过孔式导电滑环?
MySQL 18: execution of write statements
Set集合用法
awk注意的几个问题
Taro---day2---编译运行
Flutter SliverAppBar全解析,你要的效果都在这了!
How to build an e-commerce platform at low cost
Comprehensive evaluation of free, easy-to-use and powerful open source note taking software
Import the data table in MySQL into Excel
Deepmind | pre training of molecular property prediction through noise removal
Esxi based black Qunhui DSM 7.0.1 installation of VMware Tools
联想拯救者R720如何组建双通道内存
. Mp4 video test address
What is a through-hole conductive slip ring?
網頁鼠標點擊特效案例收集(直播間紅心同理)
如何理解 Transformer 中的 Query、Key 与 Value
国外LEAD赚钱的一些习惯
【MySQL】-【函数】
Some problems in awk
How to add live chat in your Shopify store?