GEE错误:Image.reduceRegion: Too many pixels in the region. Found 335891209, but maxPixels allows only

错误

Error generating chart: Image.reduceRegion: Too many pixels in the region. Found 335891209, but maxPixels allows only 10000000. Ensure that you are not aggregating at a higher resolution than you intended; that is a frequent cause of this error. If not, then you may set the 'maxPixels' argument to a limit suitable for your computation; set 'bestEffort' to true to aggregate at whatever scale results in 'maxPixels' total pixels; or both.

Image.reduceRegion: Too many pixels in the region. Found 335891209, but maxPixels allows only 10000000. Ensure that you are not aggregating at a higher resolution than you intended; that is a frequent cause of this error. If not, then you may set the 'maxPixels' argument to a limit suitable for your computation; set 'bestEffort' to true to aggregate at whatever scale results in 'maxPixels' total pixels; or both.

问题

我正在尝试计算并打印规模为 500 米的大范围感兴趣区域(例如,如下面的链接所示)的图像直方图。

因此,GEE 出错并显示“ Image.reduceRegion:该区域中的像素太多。找到 335891209,但 maxPixels 只允许 10000000。 ”

我的动机:计算单个法师的多个子区域的直方图(或内存超出限制的单个大ROI)
为此,我有以下解决问题的思路:


1、将一个大区域的ROI分成几个子区域分别计算直方图(是可行的),但是如何在GEE中合并并显示并导出最终的多个子区域直方图?

2、在GEE中将ui.Chart.image.histogram的结果转换为特征并导出而不打印,如何实现?

原始代码

var Large_ROI = 
    /* color: #d63000 */
    /* displayProperties: [
      {
        "type": "rectangle"
      }
    ] */
    ee.Geometry.Polygon(
        [[[-125.6041959688978, 47.228865551819425],
          [-125.6041959688978, 12.310444048965692],
          [-60.916695968
  • 12
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

此星光明

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值