semantique.CollectionProxy.merge

semantique.CollectionProxy.merge#

CollectionProxy.merge(reducer, **kwargs)[source]#

Merge pixel values of multiple arrays into a single value per pixel.

The values of corresponding pixels (i.e. having the same dimension coordinates) are merged by applying a reducer function. See here for an overview of the built-in reducer functions that can be chosen from (they should be referred to by their name, without the underscore at the end).

Parameters:
  • reducer (str) – Name of the reducer function to be applied.

  • **kwargs – Additional keyword arguments passed on to Collection.merge.

Returns:

ArrayProxy

Examples

>>> import semantique as sq
>>> sq.collection(sq.entity("water"), sq.entity("ice")).merge("or")