Skip to content
English
  • There are no suggestions because the search field is empty.

MinDistance()

Returns the distance to the nearest neighbor entity which satisfies the specified conditions. Distance value is converted to specified unit.

Syntax

MinDistance(expression, unit)
  • expression: name of signal
  • unit

Example

MinDistance("oil production rate" in "m3/h" > 20)

By default the function uses the PetroVisor signals "surface x-coordinate" and "surface y-coordinate" with unit "m", alternatively the functions allows 3 more arguments to specify different PetroVisor unit and signals to be used as coordinates.

Example

MinDistance("oil production rate" in "m3/h" > 20, "m", "alternative x-coordinate", "alternative y-coordinate")