公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Reducer.disaggregate
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将汇总输入(数组、列表或字典)分隔为单个项,然后将每个项传递给指定的缩减器。如果用于字典,则会忽略字典键。非汇总输入(例如,数字或字符串)直接传递给底层 reducer。
用法 | 返回 |
---|
Reducer.disaggregate(axis) | 缩减器 |
参数 | 类型 | 详细信息 |
---|
此:reducer | 缩减器 | 要对其输入进行分解的 reducer。 |
axis | 整数,默认值:null | 如果指定,则表示要沿哪个数组轴进行分解。如果未指定,则数组会完全分解。对于非数组类型,系统会忽略此属性。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDisaggregates aggregate data structures like arrays, lists, and dictionaries into individual elements for processing by the specified reducer, ignoring dictionary keys.\u003c/p\u003e\n"],["\u003cp\u003eNon-aggregated inputs such as numbers and strings bypass disaggregation and are directly processed by the reducer.\u003c/p\u003e\n"],["\u003cp\u003eOffers an optional \u003ccode\u003eaxis\u003c/code\u003e parameter to specify the dimension along which to disaggregate arrays, enabling partial disaggregation.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new Reducer instance incorporating the disaggregation behavior.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.disaggregate\n\nSeparates aggregate inputs (Arrays, Lists, or Dictionaries) into individual items that are then each passed to the specified reducer. When used on dictionaries, the dictionary keys are ignored. Non-aggregated inputs (e.g., Numbers or Strings) are passed to the underlying reducer directly.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------|---------|\n| Reducer.disaggregate`(`*axis*`)` | Reducer |\n\n| Argument | Type | Details |\n|-----------------|------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `reducer` | Reducer | The reducer for which to disaggregate inputs. |\n| `axis` | Integer, default: null | If specified, indicates an array axis along which to disaggregate. If not specified, arrays are completely disaggregated. Ignored for non-array types. |"]]