公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Reducer.disaggregate
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
將匯總輸入內容 (陣列、清單或字典) 分成個別項目,然後將每個項目傳遞至指定的縮減器。如果用於字典,系統會忽略字典鍵。未匯總的輸入內容 (例如數字或字串) 直接傳遞至基礎 reducer。
用量 | 傳回 |
---|
Reducer.disaggregate(axis) | 縮減函式 |
引數 | 類型 | 詳細資料 |
---|
這個:reducer | 縮減函式 | 要取消匯總輸入內容的縮減函式。 |
axis | 整數,預設值為 null | 如果指定,表示要沿著哪個陣列軸進行細分。如未指定,陣列會完全取消匯總。如果不是陣列類型,系統會忽略這項設定。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]