ee.Image.arrayReduce

Reduces elements of each array pixel.

UsageReturns
Image.arrayReduce(reducer, axes, fieldAxis)Image
ArgumentTypeDetails
this: inputImage

Input image.

reducerReducer

The reducer to apply

axesList

The list of array axes to reduce in each pixel. The output will have a length of 1 in all these axes.

fieldAxisInteger, default: null

The axis for the reducer's input and output fields. Only required if the reducer has multiple inputs or outputs.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!