Announcement: On
November 13, 2024, all users will need to
use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require
an exception.
PyramidingPolicy
The 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.
Enums |
PYRAMIDING_POLICY_UNSPECIFIED |
Not specified. |
MEAN |
Output pixel is the mask-weighted mean of the input pixels. Should be used for direct observation results and continuous quantities like temperature. |
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. |
MIN |
Output pixel is the minimum value of the input pixels. |
MAX |
Output pixel is the maximum value of the input pixels. |
MODE |
Output pixel is the mask-weighted mode of the input pixels. Should be used for landcover bands. |
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-05 UTC.
[null,null,["Last updated 2024-06-05 UTC."],[[["The Pyramiding Policy determines the algorithm used for creating lower-resolution versions of image bands."],["Default behavior uses the `MEAN` policy, calculating the average value of input pixels, weighted by their masks."],["Alternative policies like `SAMPLE`, `MIN`, `MAX`, `MODE`, and `MEDIAN` offer different resampling methods depending on the nature of the data."],["The `SAMPLE` policy directly uses the upper-left pixel's value and is suitable for discrete data like quality flags or acquisition dates."],["Policies such as `MODE` and `MEDIAN` are specifically designed for categorical data like landcover and continuous data with potential outliers, respectively."]]],[]]