Earth Engine has introduced
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
ee.Reducer.countDistinctNonNull
Stay organized with collections
Save and categorize content based on your preferences.
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.
[null,null,["Last updated 2024-07-13 UTC."],[],["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"]]