ee.Reducer.countDistinctNonNull
Returns a Reducer that computes the number of distinct inputs, ignoring nulls. Where applicable, the output name is "count".
Usage | Returns |
---|
ee.Reducer.countDistinctNonNull() | 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."],[[["This reducer calculates the number of unique, non-null inputs."],["The output is named \"count\" and represents the distinct input count."],["It is used within the Earth Engine environment and has no input arguments."]]],["This documentation describes a reducer, `ee.Reducer.countDistinctNonNull()`, which calculates the number of unique, non-null input values. The reducer operates without any arguments and outputs a `Reducer` object. The key action is counting distinct values, excluding nulls. When provided, the default output name for the result of this calculation will be \"count\".\n"]]