当前位置:网站首页>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});
结果:
边栏推荐
- Drawing process of hand-drawn map of scenic spots
- 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"
- SQL注入 Less42(POST型堆叠注入)
- 标段参数说明
- 10大主流3D建模技术
- hboot and recovery, boot.img, system.img
- Flutter教程之 02 Flutter 桌面程序开发入门教程运行hello world (教程含源码)
- C程序设计-方法与实践(清华大学出版社)习题解析
- 一款国外开发的高质量WordPress下载站模板主题
- How to get useragent
猜你喜欢
Drawing process of hand-drawn map of scenic spots
Unity-LineRenderer显示一条线
逐步手撕轮播图3(保姆级教程)
Bika LIMS open source LIMS set - use of SENAITE (detection process)
VOT2021比赛简介
IJCAI2022 | 代数和逻辑约束的混合概率推理
登录业务实现(单点登录+微信扫码+短信服务)
21. Support Vector Machine - Introduction to Kernel Functions
SQL27 View user details of different age groups
基于mysql的消息队列设计
随机推荐
数据分析(一)——matplotlib
[QNX Hypervisor 2.2 User Manual]9.14 set
MySQL数据库‘反斜杠\’ ,‘单引号‘’,‘双引号“’,‘null’无法存储
一文概述:VPN的基本模型及业务类型
Unity - by casting and cloning method dynamic control under various UGUI create and display
Flutter教程之 01配置环境并运行demo程序 (教程含源码)
The uniapp applet checks and prompts for updates
手写一个简单的web服务器(B/S架构)
VOT2021比赛简介
uniapp小程序检查、提示更新
HTC using official firmware as bottom bag made ROM brush card bag tutorial
LevelSequence source code analysis
useragent online lookup
高等代数_证明_任何矩阵都相似于一个上三角矩阵
Weekly Summary
Golang - from entry to abandonment
UserAgent resolution
SQL injection Less54 (limited number of SQL injection + union injection)
Daily--Kali opens SSH (detailed tutorial)
IJCAI2022 | 代数和逻辑约束的混合概率推理