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


边栏推荐
- "SDOI2016" Journey Problem Solution
- TestCafeSummary
- IJCAI2022 | 代数和逻辑约束的混合概率推理
- 【Acwing】The 62nd Weekly Game Solution
- Flink_CDC construction and simple use
- 一文带你了解 Grafana 最新开源项目 Mimir 的前世今生
- 21. Support Vector Machine - Introduction to Kernel Functions
- PHP三元(三目)运算符
- SQL injection Less42 (POST type stack injection)
- Go mode tidy reports an error go warning “all” matched no packages
猜你喜欢

Recognize anomalies (you will understand after reading this)

二叉树非递归遍历

基于mysql的消息队列设计

嵌入式开发没有激情了,正常吗?

Program processes and threads (concurrency and parallelism of threads) and basic creation and use of threads
![[NLP] What is the memory of the model!](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[NLP] What is the memory of the model!

iNeuOS industrial Internet operating system, equipment operation and maintenance business and "low-code" form development tools

Shell common script: Nexus batch upload local warehouse script

Audio alignment using cross-correlation

TestCafeSummary
随机推荐
VOT2021 game introduction
UOS - WindTerm use
Quick Start Tutorial for flyway
[QNX Hypervisor 2.2 User Manual]9.16 system
Drawing process of hand-drawn map of scenic spots
"APIO2010" Patrol Problem Solution
「APIO2010」巡逻 题解
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#
日常--Kali开启SSH(详细教程)
Advanced Algebra _ Proof _ Any matrix is similar to an upper triangular matrix
如何导入 Golang 外部包并使用它?
程序进程和线程(线程的并发与并行)以及线程的基本创建和使用
LevelSequence source code analysis
Binary tree non-recursive traversal
Several methods for deleting specified elements in Golang slices
【ACM】2022.7.31训练赛
2022-07-31:给出一个有n个点,m条有向边的图, 你可以施展魔法,把有向边,变成无向边, 比如A到B的有向边,权重为7。施展魔法之后,A和B通过该边到达彼此的代价都是7。 求,允许施展一次魔法
Daily practice——Randomly generate an integer between 1-100 and see how many times you can guess.Requirements: The number of guesses cannot exceed 7 times, and after each guess, it will prompt "bigger"
How to debug TestCafe
IJCAI2022 | 代数和逻辑约束的混合概率推理