当前位置:网站首页>Google Earth Engine——Error: Image.clipToBoundsAndScale, argument ‘input‘: Invalid type的错误解决
Google Earth Engine——Error: Image.clipToBoundsAndScale, argument ‘input‘: Invalid type的错误解决
2022-07-31 22:55:00 【此星光明】
这里有一个非常大多的错误就是我们要下载这个时期的GEDI,所以我们就得先进行镶嵌,再裁剪,而不要进行这个直接裁剪。所有新的同学都会有这个问题,所以我们尽量将不同时期的影像来进行分析。
这个数据集:
全球生态系统动态调查(GEDI)任务的目的是描述生态系统的结构和动态,以便从根本上改善对地球碳循环和生物多样性的量化和理解。附在国际空间站上的GEDI仪器在全球范围内收集北纬51.6°和南纬51.6°之间的数据,对地球的三维结构进行最高分辨率和最密集的采样。
GEDI的2A级地理位置海拔和高度指标产品(GEDI02_A)主要由100个相对高度(RH)指标组成,它们共同描述了GEDI收集的波形。
原始的GEDI02_A产品是一个点的表格,空间分辨率(平均足迹)为25米。数据集LARSE/GEDI/GEDI02_A_002_MONTHLY是原始GEDI02_A产品的栅格版本。光栅图像被组织为相应月份的单个轨道的月度合成。只有根级相对湿度值及其相关的质量标志和元数据被保留为栅格带。每个GEDI02_A_002栅格有136个波段。
GEDI L2A矢量数据可以在表集LARSE/GEDI/GEDI02_A_002中找到。
GEDI L4B生物量数据可以在图像LARSE/GEDI/GEDI04_B_002中找到。
rh97 | Relative height metrics at 97% | -213 | 213 | Meters |
This dataset is in the public domain and is available without restriction on use and distribution. See [NASA's Earth Science Data & Information Policy] (Data & Information Policy | Science Mission Directorate) for additional information.
更多信息见用户指南。
ID: 2ZCDDKXCSJ2JSOY4O3IPC7HW
Phase: Failed
Runtime: 0s (started 2022-07-25 14:21:16 +0800)
Attempted 1 time
Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image<unknown bands>. Actual type: ImageCollection. (Error code: 3)
错误代码:
var geometry =
/* color: #d63000 */
/* displayProperties: [
{
"type": "rectangle"
}
] */
ee.Geometry.Polygon(
[[[77.14471820849343, 13.084530890384196],
[77.14471820849343, 12.9614377112641],
[77.33835224169655, 12.9614377112641],
[77.33835224169655, 13.084530890384196]]], null, false);
var GEDI = ee.ImageCollection('LARSE/GEDI/GEDI02_A_002_MONTHLY')
.filter(ee.Filter.date('2019-06-01','2021-12-31'))
.filterBounds(geometry)
.select('rh98');
var GEDI_bands = GEDI.map(function(img){return img.clip(geometry)})
var gediVis = {
min: 1,
max: 60,
palette: 'darkred,red,orange,green,darkgreen',
};
Map.addLayer(GEDI_bands,gediVis, 'rh98')
Export.image.toDrive({image:GEDI_bands});
正确代码:
var geometry =
/* color: #d63000 */
/* displayProperties: [
{
"type": "rectangle"
}
] */
ee.Geometry.Polygon(
[[[77.14471820849343, 13.084530890384196],
[77.14471820849343, 12.9614377112641],
[77.33835224169655, 12.9614377112641],
[77.33835224169655, 13.084530890384196]]], null, false);
//这里一定要对影像先镶嵌然后再裁剪
var GEDI = ee.ImageCollection('LARSE/GEDI/GEDI02_A_002_MONTHLY')
.filter(ee.Filter.date('2019-06-01','2021-12-31'))
.filterBounds(geometry)
.select('rh98').mosaic().clip(geometry);
//var GEDI_bands = GEDI.map(function(img){return img.clip(geometry)})
var gediVis = {
min: 1,
max: 60,
palette: 'darkred,red,orange,green,darkgreen',
};
Map.addLayer(GEDI,gediVis, 'rh98')
Export.image.toDrive({image:GEDI});
结果:
边栏推荐
- Quick Start Tutorial for flyway
- What is customer profile management?
- [QNX Hypervisor 2.2用户手册]9.15 suppress
- Flutter教程之 02 Flutter 桌面程序开发入门教程运行hello world (教程含源码)
- 逐步手撕轮播图3(保姆级教程)
- 周总结
- 什么是客户画像管理?
- Weekly Summary
- #yyds dry goods inventory# Interview must brush TOP101: the entry node of the ring in the linked list
- 【Acwing】第62场周赛 题解
猜你喜欢
The difference between adding or not adding the ref keyword when a variable of reference type is used as a parameter in a method call in C#
Shell common scripts: Nexus batch upload local warehouse enhanced version script (strongly recommended)
Unity - LineRenderer show a line
数据分析(一)——matplotlib
Quick Start Tutorial for flyway
消息队列存储消息数据的MySQL表格
Handwritten a simple web server (B/S architecture)
Dry goods | 10 tips for MySQL add, delete, change query performance optimization
Shell常用脚本:Nexus批量上传本地仓库脚本
20. Support vector machine - knowledge of mathematical principles
随机推荐
《ArchSummit:时代的呐喊,技术人听得到》
Talking about the algorithm security of network security
[QNX Hypervisor 2.2用户手册]9.15 suppress
How to import a Golang external package and use it?
21. Support Vector Machine - Introduction to Kernel Functions
景区手绘地图的绘制流程
iNeuOS industrial Internet operating system, equipment operation and maintenance business and "low-code" form development tools
Quick Start Tutorial for flyway
Transfer Learning - Domain Adaptation
Pytest初体验
UserAgent resolution
"SDOI2016" Journey Problem Solution
「APIO2010」巡逻 题解
Unity - LineRenderer show a line
消息队列存储消息数据的MySQL表格
VOT2021比赛简介
-xms -xmx(information value)
Pytest first experience
Program processes and threads (concurrency and parallelism of threads) and basic creation and use of threads
Flutter教程之四年开发经验的高手给的建议