Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Reducer.max
Stay organized with collections
Save and categorize content based on your preferences.
Creates a reducer that outputs the maximum value of its (first) input. If numInputs is greater than one, also outputs the corresponding values of the additional inputs.
Usage | Returns | ee.Reducer.max(numInputs) | Reducer |
Argument | Type | Details | numInputs | Integer, default: 1 | The number of inputs. |
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\u003eThis reducer determines the maximum value of its primary input.\u003c/p\u003e\n"],["\u003cp\u003eIf specified with \u003ccode\u003enumInputs\u003c/code\u003e greater than 1, it also returns the corresponding values from the other input bands at the location of the maximum value.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003eee.Reducer.max()\u003c/code\u003e to create an instance of this reducer, optionally specifying the number of inputs to consider.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.max\n\nCreates a reducer that outputs the maximum value of its (first) input. If numInputs is greater than one, also outputs the corresponding values of the additional inputs.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------|---------|\n| `ee.Reducer.max(`*numInputs*`)` | Reducer |\n\n| Argument | Type | Details |\n|-------------|---------------------|-----------------------|\n| `numInputs` | Integer, default: 1 | The number of inputs. |"]]