Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Reducer.forEach
Stay organized with collections
Save and categorize content based on your preferences.
Creates 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.
Usage | Returns | Reducer.forEach(outputNames) | Reducer |
Argument | Type | Details | this: reducer | Reducer | |
outputNames | List | |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["\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 | |"]]