公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Reducer.forEach
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通过为给定列表中的每个输出名称组合给定 reducer 的副本来创建 Reducer。如果 reducer 只有一个输出,则直接使用输出名称;否则,会在原始输出名称前添加前缀。
用法 | 返回 |
---|
Reducer.forEach(outputNames) | 缩减器 |
参数 | 类型 | 详细信息 |
---|
此:reducer | 缩减器 | |
outputNames | 列表 | |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eGenerates a new Reducer by replicating the input reducer for each specified output name.\u003c/p\u003e\n"],["\u003cp\u003eIf the original reducer has a single output, the output names are directly applied; for multiple outputs, the names are prefixed to the original output names.\u003c/p\u003e\n"],["\u003cp\u003eEmploys a list of output names to determine the replication and naming scheme for the new reducer.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eReducer.forEach\u003c/code\u003e method for creating this multi-output reducer from a single input.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.forEach\n\nCreates a Reducer by combining a copy of the given reducer for each output name in the given list. If the reducer has a single output, the output names are used as-is; otherwise they are prefixed to the original output names.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------|---------|\n| Reducer.forEach`(outputNames)` | Reducer |\n\n| Argument | Type | Details |\n|-----------------|---------|---------|\n| this: `reducer` | Reducer | |\n| `outputNames` | List | |"]]