ee.Reducer.combine

Creates a Reducer that runs two reducers in parallel. The combined reducer's outputs will be those of reducer1 followed by those of reducer2, where the output names of reducer2 are prefixed with the given string.

If sharedInputs is true, the reducers must have the same number of inputs, and the combined reducer's will match them; if it is false, the inputs of the combined reducer will be those of reducer1 followed by those of reducer2.

UsageReturns
Reducer.combine(reducer2, outputPrefix, sharedInputs)Reducer
ArgumentTypeDetails
this: reducer1Reducer

reducer2Reducer

outputPrefixString, default: ""

Prefix for reducer2's output names.

sharedInputsBoolean, default: false

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!