问题标签 [google-earth-engine]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 在 Earth Engine python 脚本中获取结果
我正在尝试使用地球引擎 python API 在特征集合中的每个多边形中获取 NDVI 平均值。我认为我成功获得了结果(特征集合中的特征集合),但是我不知道如何从中获取数据。我想要的数据是来自特征的 ID 和每个特征中的 ndvi 平均值。
time-series - Export large time series in Google Earth Engine
How can I export large time series of a specific region? The idea is to get a table with the Date and the average band value for this region. In this case it would be the mean NDVI of a region.
In the case of a single point time serie it would be
This is working well and you get a chart where you can download the time serie in csv. But when it is a large region, I get issues with the memory and computation time.
Using this code I got the following error "User memory limit exceeded".
I also tried this:
But I got the same error and "d.yc is not a function".
json - 使用 Google 地球引擎中图像集中每个图像的波段值填充 FeatureCollection
在 Google 地球引擎中,我已将 Featurecollection 作为 JSON 加载,其中包含一些多边形。我想向此 FeatureCollection 添加列,它为每个多边形和图像集合中包含的多个图像中的每一个提供了两个波段的平均值。
这是我到目前为止的代码。
在控制台中,我收到一条错误消息
元素(错误)无法解码 JSON。错误:对象 '{"type":"ArgumentRef","value":null}' 的字段 'value' 缺失或为空。对象:{"type":"ArgumentRef","value":null}。
在我生成的 csv 文件中,我得到一个名为 mean 的新列,但它填充了实际值,没有实际值。
javascript - 谷歌地球图像:从图像集合创建上下四分位数合成图像
我正在尝试从图像集合(在此示例中为 Sentinel 2)创建合成图像,其中生成的合成的像素值是像素值分布的下四分位数或上四分位数。
很容易获得平均值、中值、最大和最小像素值,但我不知道如何合成较低的四分位数值。
如果有人可以建议一种方法来创建较低四分位数像素值的组合,那将非常有用。
javascript - 如何在谷歌地球引擎中处理图像绝对值总和的卷积
我想对图像做如下卷积操作:计算窗口中每个值与中心像素值之差的绝对值之和。
我怎么能在谷歌地球引擎 Javascript API 中做到这一点?
非常感谢 !
python - 可以在谷歌地球引擎python api中上传shapefile吗?
是否可以使用 Google Earth Engine python API 将 shapefile 或 geoJSON 作为资产上传?
虽然在浏览器中使用 JavaScript API 的上传点击非常容易,但我找不到任何适用于 python API 的解决方案。
google-app-engine - Windows 中的 Google App Engine 和 Google Earth Engine
我正在尝试使用带有 Google Earth Engine App 的时尚灯光示例来测试带有 Google App Engine 的基本应用程序。
我从 GEE github 存储库中克隆了 Trendy-lights 应用程序,并更新了 app.yaml 中的应用程序名称、config.py 中的 EE_ACCOUNT 和 privatekey.pem 文件。我没有做任何其他改变。然而,时尚灯应用程序不起作用。
我正在尝试在 MS Windows 7 上运行它,当我运行它时出现错误错误:服务器错误服务器遇到错误,无法完成您的请求。请在 30 秒后重试。
我查看了示例,我可以看到人们已经通过 Linux 而不是 Windows 来实现这一点。有没有人有这个工作?
python-2.7 - ee.mapclient 与 python 2.7 和 Anaconda,可能的替代方案?
我已经在我的 MACOS 中安装了谷歌地球引擎 python API,其中也安装了 Anaconda。我遇到了对象 ee.mapclient 的问题。我使用它来修改导入的行
从 PIL 导入图像,ImageTk
现在它不会产生错误消息,但它也不起作用。当我在 Spyder 中运行脚本时,控制台返回几条消息并进入循环。在控制台中逐行运行相同的脚本,打开一个黑色的大窗口,但没有显示任何内容。
有什么解决方案可以让它工作吗?我知道开发人员没有维护这个对象,因为太依赖于 TK 库。还有其他显示卫星数据的解决方案吗?
javascript - Google 地球引擎 - 在 ee.Image.getDownloadURL() 中指定波段
我想为 中的每个乐队选择特定bands
的和一个参数,但我不能让它工作。scale
getDownloadURL
javascript - 如何计算 Google Earth Engine 中分类图像(Landsat)中每个类别的像素总和?
我正在写一篇关于冰川变化的论文。我对 Landsat 8 图像进行了监督分类,我想计算每个类中有多少像素。顺便做个图表。
但我卡住了,我的代码出错了。我尝试使用带有指定参数的 ui.Chart.image.byClass() 方法,但它不起作用。
我的代码:
以及它抛出的错误:
Dictionary.get:字典不包含键:组。
是否有任何其他工具来计算每个类中的像素数?