addOtherField method

DiscreteFieldFunction addOtherField(
  1. DiscreteFieldFunction otherField
)

Composes a function that adds, point-wise, this function's field result and another across their spatial intersection.

The function result has no data where either of the given fields has no data.

The function result extent is the intersection of the extents of the given fields.

The spatial reference of both fields must be equivalent.

Parameters:

  • otherField — Another discrete field function.

Return Value: A function that adds this function's field result and another.