Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Reducer.first
Stay organized with collections
Save and categorize content based on your preferences.
Returns a Reducer that returns the first of its inputs. Where applicable, the output name is "first".
Usage | Returns | ee.Reducer.first() | Reducer |
No arguments.
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\u003eReturns a Reducer that selects the first element from a collection or array.\u003c/p\u003e\n"],["\u003cp\u003eThe output of the reducer is commonly named "first".\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eee.Reducer.first()\u003c/code\u003e is the function used to create this type of reducer and requires no arguments.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.first\n\nReturns a Reducer that returns the first of its inputs. Where applicable, the output name is \"first\".\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------|---------|\n| `ee.Reducer.first()` | Reducer |\n\n**No arguments.**"]]