ee.Algorithms.Landsat.simpleComposite

  • The algorithm computes a Landsat TOA composite by applying TOA calibration and a cloud score to each pixel.

  • It selects pixels based on the lowest cloud scores and computes per-band percentile values from the accepted pixels.

  • The algorithm limits the number of scenes used in regions with many available scenes by selecting the least-cloudy ones.

  • The simpleComposite function takes arguments such as collection, percentile, cloudScoreRange, maxDepth, and asFloat to customize the composite creation.

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.

UsageReturns
ee.Algorithms.Landsat.simpleComposite(collection, percentile, cloudScoreRange, maxDepth, asFloat)Image
ArgumentTypeDetails
collectionImageCollectionThe raw Landsat ImageCollection to composite.
percentileInteger, default: 50The percentile value to use when compositing each band.
cloudScoreRangeInteger, default: 10The size of the range of cloud scores to accept per pixel.
maxDepthInteger, default: 40An approximate limit on the maximum number of scenes used to compute each pixel.
asFloatBoolean, default: falseIf 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.