当前位置:网站首页>Google Earth Engine(GEE)——ImageCollection (Error)遍历影像集合产生的错误
Google Earth Engine(GEE)——ImageCollection (Error)遍历影像集合产生的错误
2022-06-27 16:26:00 【此星光明2021年博客之星云计算Top3】
失败并出现此错误:
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,
图像收集(错误)
ImageCollection.fromImages,参数“图像”:无效类型。预期类型:List<Image<unknown band>>。实际类型: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,
原始代码:
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);
这里的错误是不能直接使用ee.List()去遍历影像,而是用GEE中内置的
ee.ImageCollection.fromImages(images)
Returns the image collection containing the given images.
Arguments:
images (List):
The images to include in the collection.
Returns: ImageCollection
修改后的代码:
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));
// 在这里,将属性 "system:time_start "与乐队的时间戳(以毫秒为单位)进行设置。
// ee.Date.millis()这里或许能用的上在设置影像时间上
return imageBand.copyProperties(image, ['system:time_start']);
});
var ic = ee.ImageCollection.fromImages(imageBandsAsList);
print(ic);

边栏推荐
- Bit. Store: long bear market, stable stacking products may become the main theme
- Advanced learning of MySQL -- Application -- Optimization of other SQL statements
- About redis master-slave replication
- 在arcgis中以txt格式导出点的坐标
- [Tang Laoshi] C -- encapsulation: member method
- SQL update批量更新
- seata性能可以通过什么方式提高?比如增加数据库的计算节点?
- Open source summer 2022 | opengauss project selected and announced
- [webinar] mongodb and Google cloud accelerate enterprise digital innovation
- 国产数据库认证考试指南汇总(2022年6月16日更新)
猜你喜欢

Alibaba's mission, vision and core values

Wanzhou gold industry: what knowledge points do you need to master to invest in precious metals?

How to arrange digital collections on online platforms such as reading and Chinese online? Will "read/write-to-earn" products be launched in the future?

阿里巴巴的使命、愿景、核心价值观

Push NFT out of the regulatory dilemma, and BSN launched NFT supporting infrastructure network

Space calculation of information and innovation industry in 2022

Good news - British software 2022 has obtained 10 invention patents!
![[UVM basics] set a monitor at the input port of the DUT to explain the necessity](/img/72/0cecd17ab2c893b978b0995363cfcf.jpg)
[UVM basics] set a monitor at the input port of the DUT to explain the necessity

Study on heritability and field experiment design

国内首家!EMQ加入亚马逊云科技“初创加速-全球合作伙伴网络计划”
随机推荐
Asemi rectifier bridge kbp310 function pin diagram
Asemi rectifier bridge kbp307 parameters, kbp307 details, kbp307 pictures
技术分享 | kubernetes pod 简介
How to rewrite tdengine code from 0 to 1 with vscode in "technical class"
The difficulty of realizing time series database "far surpassing" general database in specific scenarios
Redis Series 2: data persistence improves availability
为什么要从 OpenTSDB 迁移到 TDengine
[UVM foundation] can only be used in build_ Research on executing instantiation action in phase
Wechat applet map displays the current position with annotation
Teach you to use elastic search: run the first hello world search command
【协会通知】关于举办人工智能与物联网领域暑假专题师资培训的通知
[JS reverse hundreds of examples] I love to solve 2022 Spring Festival problems and receive red envelopes
云原生数据库:数据库的风口,你也可以起飞
China's Industrial Software Market Research Report is released, and SCADA and MES of force control enrich the ecology of domestic industrial software
如何使用物联网低代码平台进行画面管理?
DOM object in JS
TDengine在数控机床监控中的应用
Computing trends in three times of machine learning
Redis系列2:数据持久化提高可用性
实现时序数据库(Time Series Database)在特定场景下“远超”通用数据库的难点