Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Reducer.forEachBand
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 band in the given image using the band names as output names.
Usage | Returns | Reducer.forEachBand(image) | Reducer |
Argument | Type | Details | this: reducer | Reducer | |
image | Image | |
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-09-19 UTC.
[null,null,["Last updated 2024-09-19 UTC."],[[["\u003cp\u003eCreates a reducer that processes each band of an image separately.\u003c/p\u003e\n"],["\u003cp\u003eOutput reducer uses the original band names for the output bands.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eforEachBand\u003c/code\u003e takes an image as input and applies the reducer to each band.\u003c/p\u003e\n"],["\u003cp\u003eThe method can be called on an existing reducer object.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.forEachBand\n\nCreates a Reducer by combining a copy of the given reducer for each band in the given image using the band names as output names.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|---------|\n| Reducer.forEachBand`(image)` | Reducer |\n\n| Argument | Type | Details |\n|-----------------|---------|---------|\n| this: `reducer` | Reducer | |\n| `image` | Image | |"]]