ee.Algorithms.Landsat.simpleComposite
Computes a Landsat TOA composite from a collection of raw Landsat scenes. It applies standard TOA calibration and then assigns a cloud score to each pixel using the SimpleLandsatCloudScore algorithm. It selects the lowest possible range of cloud scores at each point and then computes per-band percentile values from the accepted pixels. This algorithm also uses the LandsatPathRowLimit algorithm to select only the least-cloudy scenes in regions where more than maxDepth input scenes are available.
Usage | Returns |
---|
ee.Algorithms.Landsat.simpleComposite(collection, percentile, cloudScoreRange, maxDepth, asFloat) | Image |
Argument | Type | Details |
---|
collection | ImageCollection | The raw Landsat ImageCollection to composite. |
percentile | Integer, default: 50 | The percentile value to use when compositing each band. |
cloudScoreRange | Integer, default: 10 | The size of the range of cloud scores to accept per pixel. |
maxDepth | Integer, default: 40 | An approximate limit on the maximum number of scenes used to compute each pixel. |
asFloat | Boolean, default: false | If true, output bands are in the same units as the Landsat.TOA algorithm; if false, TOA values are converted to uint8 by multiplying by 255 (reflective bands) or subtracting 100 (thermal bands) and rounding to the nearest integer. |
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-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Creates a Landsat composite image by selecting the least cloudy pixels from a collection of raw Landsat scenes using the SimpleLandsatCloudScore algorithm."],["Computes per-band percentile values from the accepted pixels, allowing users to specify the desired percentile."],["Limits the number of scenes used in the composite for each pixel to reduce computation and potentially enhance image quality."],["Offers flexibility in output data type, providing options for both floating-point and integer representations of TOA reflectance."],["Employs the LandsatPathRowLimit algorithm to prioritize the least cloudy scenes in areas with abundant data."]]],["The algorithm creates a Landsat TOA composite from raw scenes. It calibrates TOA, assigns cloud scores per pixel using SimpleLandsatCloudScore, and selects the lowest cloud score range at each point. It then calculates per-band percentile values from these pixels. The LandsatPathRowLimit algorithm ensures only the least-cloudy scenes are selected when more than `maxDepth` scenes are present. Users specify the raw collection, percentile, cloud score range, scene depth, and whether to output as floats.\n"]]