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


边栏推荐
猜你喜欢

Summary of the classic drawing method of histogram

What is customer profile management?

一文带你了解 Grafana 最新开源项目 Mimir 的前世今生

面试突击69:TCP 可靠吗?为什么?

VOT2021 game introduction

Program processes and threads (concurrency and parallelism of threads) and basic creation and use of threads

什么是动态规划,什么是背包问题

【Acwing】The 62nd Weekly Game Solution
![[Code Hoof Set Novice Village 600 Questions] Merge two numbers without passing a character array](/img/4d/038e6cd6ecad19934122cff89f4d76.png)
[Code Hoof Set Novice Village 600 Questions] Merge two numbers without passing a character array

A high-quality WordPress download site template theme developed abroad
随机推荐
PHP三元(三目)运算符
SQL injection Less42 (POST type stack injection)
Shell common script: Nexus batch upload local warehouse script
The article you worked so hard to write may not be your original
Learn about C# anonymous methods
ICML2022 | 深入研究置换敏感的图神经网络
如何撰写出一篇优质的数码类好物推荐文
I don't know what to do with sync issues
Flutter教程之 02 Flutter 桌面程序开发入门教程运行hello world (教程含源码)
ThreadLocal
Flink_CDC construction and simple use
数据分析(一)——matplotlib
Network security - crack WiFi through handshake packets (detailed tutorial)
Summary of the classic drawing method of histogram
面试突击69:TCP 可靠吗?为什么?
21. Support Vector Machine - Introduction to Kernel Functions
SQL注入 Less54(限制次数的SQL注入+union注入)
@JsonFormat(pattern=“yyyy-MM-dd“)时间差问题
Unity - by casting and cloning method dynamic control under various UGUI create and display
(26)Blender源码分析之顶层菜单的关于菜单