公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Algorithms.Landsat.simpleComposite
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
根据一组原始 Landsat 场景计算 Landsat TOA 复合。该函数会应用标准 TOA 校正,然后使用 SimpleLandsatCloudScore 算法为每个像素分配云得分。它会选择每个点上尽可能低的云得分范围,然后根据接受的像素计算每个波段的百分位数值。此算法还使用 LandsatPathRowLimit 算法,仅选择有超过 maxDepth 输入场景的区域中云量最少的场景。
用法 | 返回 |
---|
ee.Algorithms.Landsat.simpleComposite(collection, percentile, cloudScoreRange, maxDepth, asFloat) | 图片 |
参数 | 类型 | 详细信息 |
---|
collection | ImageCollection | 要合成的原始 Landsat ImageCollection。 |
percentile | 整数,默认值:50 | 合成每个波段时要使用的百分位数值。 |
cloudScoreRange | 整数,默认值:10 | 每个像素可接受的云得分范围的大小。 |
maxDepth | 整数,默认值:40 | 用于计算每个像素的场景数量的大致上限。 |
asFloat | 布尔值,默认值:false | 如果为 true,则输出波段的单位与 Landsat.TOA 算法的单位相同;如果为 false,则通过乘以 255(反射波段)或减去 100(热波段)并将结果舍入到最接近的整数,将 TOA 值转换为 uint8。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eCreates a Landsat composite image by selecting the least cloudy pixels from a collection of raw Landsat scenes using the SimpleLandsatCloudScore algorithm.\u003c/p\u003e\n"],["\u003cp\u003eComputes per-band percentile values from the accepted pixels, allowing users to specify the desired percentile.\u003c/p\u003e\n"],["\u003cp\u003eLimits the number of scenes used in the composite for each pixel to reduce computation and potentially enhance image quality.\u003c/p\u003e\n"],["\u003cp\u003eOffers flexibility in output data type, providing options for both floating-point and integer representations of TOA reflectance.\u003c/p\u003e\n"],["\u003cp\u003eEmploys the LandsatPathRowLimit algorithm to prioritize the least cloudy scenes in areas with abundant data.\u003c/p\u003e\n"]]],["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"],null,["# ee.Algorithms.Landsat.simpleComposite\n\nComputes 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.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------------------------------------|---------|\n| `ee.Algorithms.Landsat.simpleComposite(collection, `*percentile* `, `*cloudScoreRange* `, `*maxDepth* `, `*asFloat*`)` | Image |\n\n| Argument | Type | Details |\n|-------------------|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `collection` | ImageCollection | The raw Landsat ImageCollection to composite. |\n| `percentile` | Integer, default: 50 | The percentile value to use when compositing each band. |\n| `cloudScoreRange` | Integer, default: 10 | The size of the range of cloud scores to accept per pixel. |\n| `maxDepth` | Integer, default: 40 | An approximate limit on the maximum number of scenes used to compute each pixel. |\n| `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. |"]]