公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Reducer.repeat
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通过合并指定数量的给定 reducer 副本来创建 Reducer。输出名称与给定的缩减器相同,但每个输出名称都对应于每个缩减器的相应输出列表。
用法 | 返回 |
---|
Reducer.repeat(count) | 缩减器 |
参数 | 类型 | 详细信息 |
---|
此:reducer | 缩减器 | |
count | 整数 | 要合并的 reducer 的副本数。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eCreates a new Reducer by repeating a given Reducer multiple times.\u003c/p\u003e\n"],["\u003cp\u003eOutput names remain the same but the values are transformed into lists, reflecting outputs from each repetition of the original Reducer.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecount\u003c/code\u003e argument determines the number of repetitions, effectively controlling the length of the output lists.\u003c/p\u003e\n"],["\u003cp\u003ePrimarily used for combining multiple instances of a reducer into a single, unified Reducer.\u003c/p\u003e\n"]]],["Combines multiple copies of a specified reducer into a single Reducer. The `Reducer.repeat(count)` method takes an integer `count` representing the number of reducer copies to merge. It returns a new Reducer. The output names from the combined reducer are identical to the original, but each output is now a list containing the respective output from each of the individual reducers.\n"],null,["# ee.Reducer.repeat\n\nCreates a Reducer by combining the specified number of copies of the given reducer. Output names are the same as the given reducer, but each is a list of the corresponding output from each of the reducers.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------|---------|\n| Reducer.repeat`(count)` | Reducer |\n\n| Argument | Type | Details |\n|-----------------|---------|-------------------------------------------------|\n| this: `reducer` | Reducer | |\n| `count` | Integer | The number of copies of the reducer to combine. |"]]