remainderOtherField method

ContinuousFieldFunction remainderOtherField(
  1. ContinuousFieldFunction otherField
)

Composes a function that applies a remainder operation, point-wise, to this function's field result using values from another field as the divisors across their spatial intersection.

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

The function result has no data where the divisor drawn from the other field is zero.

The sign of this function's field result is preserved. For example, 7 remainder 3 (or -3) will result in 1 and -7 remainder 3 (or -3) will result in -1.

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 — The continuous field function to draw the divisors from.

Return Value: A function that applies a remainder operation, point-wise, to this function's field result using values from another field as the divisors across their spatial intersection.