ee.Reducer.fixed2DHistogram

Creates a reducer that will compute a 2D histogram of the inputs using a fixed number of fixed width bins. Values outside of the [min, max) range on either axis are ignored. The output is a 2D array of counts, and 2 1-D arrays of bucket lower edges for the xAxis and the yXais. This reducer is suitable for use per-pixel, however it is always unweighted. The maximum count for any bucket is 2^31 - 1.

UsageReturns
ee.Reducer.fixed2DHistogram(xMin, xMax, xSteps, yMin, yMax, ySteps)Reducer
ArgumentTypeDetails
xMinFloat

The lower (inclusive) bound of the first bucket on the X axis.

xMaxFloat

The upper (exclusive) bound of the last bucket on the X axis.

xStepsInteger

The number of buckets to use on the X axis.

yMinFloat

The lower (inclusive) bound of the first bucket on the Y axis.

yMaxFloat

The upper (exclusive) bound of the last bucket on the Y axis.

yStepsInteger

The number of buckets to use on the Y axis.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!