Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Reducer.allNonZero
Stay organized with collections
Save and categorize content based on your preferences.
Returns a Reducer that returns 1 if all of its inputs are non-zero, 0 otherwise. Where applicable, the output name is "all".
Usage | Returns | ee.Reducer.allNonZero() | 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 outputs 1 if all inputs are non-zero and 0 otherwise.\u003c/p\u003e\n"],["\u003cp\u003eThe Reducer is named "all" when applicable.\u003c/p\u003e\n"],["\u003cp\u003eIt can be used with the syntax \u003ccode\u003eee.Reducer.allNonZero()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis reducer takes no arguments.\u003c/p\u003e\n"]]],["The `ee.Reducer.allNonZero()` function creates a Reducer that outputs 1 if all input values are non-zero, and 0 otherwise. The output is optionally named \"all\". This function takes no arguments and is used to aggregate multiple inputs into a single boolean-like result based on whether all inputs meet the non-zero criteria.\n"],null,["# ee.Reducer.allNonZero\n\nReturns a Reducer that returns 1 if all of its inputs are non-zero, 0 otherwise. Where applicable, the output name is \"all\".\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------|---------|\n| `ee.Reducer.allNonZero()` | Reducer |\n\n**No arguments.**"]]