公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
PyramidingPolicy
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
创建图像波段的低分辨率版本时要使用的算法。默认情况下,掩码的计算方法为输入掩码的平均值,反映了计算所请求的输出统计信息时所依据的输入数据的总权重。对于 SAMPLE,直接使用采样像素的掩码。
枚举 |
PYRAMIDING_POLICY_UNSPECIFIED |
未指定。 |
MEAN |
输出像素是输入像素的掩码加权平均值。应适用于直接观测结果和温度等连续量。 |
SAMPLE |
输出像素与左上角输入像素相同。应适用于 QA/位掩码频段或其他非连续字段,例如像素采集日期。 |
MIN |
输出像素是输入像素的最小值。 |
MAX |
输出像素是输入像素的最大值。 |
MODE |
输出像素是输入像素的掩码加权模式。应适用于土地覆盖波段。 |
MEDIAN |
输出像素是输入像素的掩码加权中值。如果出现值相等的情况,则使用中间两个值的平均值。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe pyramiding policy determines how reduced-resolution versions of image bands are created, impacting the representation of pixel values at lower resolutions.\u003c/p\u003e\n"],["\u003cp\u003eBy default, the \u003ccode\u003eMEAN\u003c/code\u003e policy is used, calculating the output pixel as the average of input pixels, weighted by their masks, ideal for continuous data like temperature.\u003c/p\u003e\n"],["\u003cp\u003eAlternative policies like \u003ccode\u003eSAMPLE\u003c/code\u003e, \u003ccode\u003eMIN\u003c/code\u003e, \u003ccode\u003eMAX\u003c/code\u003e, \u003ccode\u003eMODE\u003c/code\u003e, and \u003ccode\u003eMEDIAN\u003c/code\u003e offer different methods for pixel value determination, catering to various data types such as QA bands, categorical data, and more.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSAMPLE\u003c/code\u003e policy directly uses the upper-left input pixel for the output, suitable for non-continuous fields like date of acquisition or QA bitmask bands.\u003c/p\u003e\n"],["\u003cp\u003eUsers can choose the most appropriate policy depending on the nature of the data and desired outcome for image reduction.\u003c/p\u003e\n"]]],[],null,["# PyramidingPolicy\n\nThe algorithm to be used when creating reduced-resolution versions of an image band. By default, the mask is computed as the MEAN of the input masks, reflecting the total weight of the input data over which the requested output statistic was calculated. In the case of SAMPLE, the sampled pixel's mask is used directly.\n\n| Enums ||\n|---------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `PYRAMIDING_POLICY_UNSPECIFIED` | Not specified. |\n| `MEAN` | Output pixel is the mask-weighted mean of the input pixels. Should be used for direct observation results and continuous quantities like temperature. |\n| `SAMPLE` | Output pixel is identical to the upper-left input pixel. Should be used for QA/bitmask bands or other non-continuous fields like date of pixel acquisition. |\n| `MIN` | Output pixel is the minimum value of the input pixels. |\n| `MAX` | Output pixel is the maximum value of the input pixels. |\n| `MODE` | Output pixel is the mask-weighted mode of the input pixels. Should be used for landcover bands. |\n| `MEDIAN` | Output pixel is the mask-weighted median of the input pixels. In case of a tie, the mean of the middle two values is used. |"]]