ee.Reducer.forEachElement

Separately reduces each position in array inputs of equal shape, producing an array output of the same shape.

For example, with the 'sum' reducer applied to 5 arrays with shape 2x2, the output will be a 2x2 array, where each position is the sum of the 5 values at that position.

Usage Returns
Reducer. forEachElement () Reducer
Argument Type Details
this: reducer
Reducer The reducer to apply to each array element.
Create a Mobile Website
View Site in Mobile | Classic
Share by: