当前位置: 首页 > news >正文

GEE 问题:超限中对于besteffort的使用到底行不行?

目录

问题

函数

 reduceRegion(reducer, geometry, scale, crs, crsTransform, bestEffort, maxPixels, tileScale)

Arguments:

Returns: Dictionary

解答

代码


问题

我正在尝试优化地球地图中的区域统计数据,并且在减少区域时使用bestEffort有一些疑问:

1.如果要分析的区域包含的像素少于 maxPixels 上设置的像素,bestEffort 是否会在分析中改变任何东西?
 

2.我读到 bestEffort 还可以简化用于简化的多边形。这是真的吗?它们是如何简化的?我们可以控制吗?
 

这不是真的。文档中没有提到它会简化多边形。如果确实如此,最好将其添加到文档中。如果您在文档中的某个地方读到它,请在此处分享链接。

3.如果设置 bestEffort:true,即使我想要缩小的区域小于 maxPixels,是否会出现性能问题? 相关 1

4.最后,非常重要的一点是,如果像素数确实高于 maxPixels,那么有什么方法可以知道在什么比例下进行缩减?另外,您能否分享用于计算像素数的代码,以便我们可以使用它来添加我们实际用于分析的像素比例信息。最好的解决方案是,如果可以在 reduceRegion 返回的字典中返回分析的比例,即总和缩减:

{
“总和”:454564564564,

“原始比例” :10,

“实际比例”:355
}

函数

 reduceRegion(reducer, geometryscalecrscrsTransformbestEffortmaxPixelstileScale)

Apply a reducer to all the pixels in a specific region.

Either the reducer must have the same number of inputs as the input image has bands, or it must have a single input and will be repeated for each band.

Returns a dictionary of the reducer's outputs.

Arguments:

this:image (Image):

The image to reduce.

reducer (Reducer):

The reducer to apply.

geometry (Geometry, default: null):

The region over which to reduce data. Defaults to the footprint of the image's first band.

scale (Float, default: null):

A nominal scale in meters of the projection to work in.

crs (Projection, default: null):

The projection to work in. If unspecified, the projection of the image's first band is used. If specified in addition to scale, rescaled to the specified scale.

crsTransform (List, default: null):

The list of CRS transform values. This is a row-major ordering of the 3x2 transform matri


http://www.mrgr.cn/news/51814.html

相关文章:

  • RT-Thread线程的定义和属性
  • 嵌入式:Keil的Code、RW、RO、ZI段的解析
  • 【Python3】Tornado6.4 高性能编程
  • 【ShuQiHere】 AI与自我意识:能否创造真正的自觉机器人?
  • STM32F103C8T6 使用 HAL 库驱动 OLED 显示屏
  • Java面向对象编程基础(二)
  • 【初阶数据结构】归并排序 - 分而治之的排序魔法
  • Linux df 命令详解
  • 基于AES的遥感图像加密算法matlab仿真
  • 法规标准-懂车帝智能化实测标准(2024版)
  • Hadoop查询引擎之Tez
  • 多线程(五):死锁内存可见性问题
  • 数据结构——单链表的基本操作
  • 算法题总结(十三)—— 动态规划(上)
  • 《深度学习》OpenCV库、Dlib库 人脸检测 案例解析
  • 从零开始实现大语言模型(十二):文本生成策略
  • DAY53WEB 攻防-XSS 跨站SVGPDFFlashMXSSUXSS配合上传文件添加脚本
  • 【LeetCode】14.最长公共前缀
  • 代码随想录day40:动态规划part13
  • 【文献及模型、制图分享】干旱区山水林田湖草沙冰一体化保护与系统治理——基于土地退化平衡视角