错误
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