locan.data.properties.misc.distance_to_region_boundary#

locan.data.properties.misc.distance_to_region_boundary(locdata, region)[source]#

Determine the distance to the nearest region boundary for all localizations. Returns a positive value regardless of weather the point is within or outside the region.

Parameters:
  • locdata (LocData) – Localizations for which distances are determined.

  • region (Region) – Region from which the closest point is selected.

Returns:

Distance for each localization.

Return type:

npt.NDArray[np.float64]