Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Reducer.firstNonNull
Stay organized with collections
Save and categorize content based on your preferences.
Returns a Reducer that returns the first of its non-null inputs. Where applicable, the output name is "first".
Usage | Returns | ee.Reducer.firstNonNull() | 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 non-null value from a set of inputs.\u003c/p\u003e\n"],["\u003cp\u003eThe Reducer will be named "first" when applied within Earth Engine workflows.\u003c/p\u003e\n"],["\u003cp\u003eThis reducer has no arguments and is accessed with \u003ccode\u003eee.Reducer.firstNonNull()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.firstNonNull\n\nReturns a Reducer that returns the first of its non-null inputs. Where applicable, the output name is \"first\".\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------|---------|\n| `ee.Reducer.firstNonNull()` | Reducer |\n\n**No arguments.**"]]