Proximity

Allocation

xrspatial.proximity.allocation(raster[, x, ...])

Calculates, for all cells in the array, the downward slope direction Calculates, for all pixels in the input raster, the nearest source based on a set of target values and a distance metric.

Direction

xrspatial.proximity.direction(raster[, x, ...])

Calculates, for all cells in the array, the downward slope direction Calculates, for all pixels in the input raster, the direction to nearest source based on a set of target values and a distance metric.

Proximity

xrspatial.proximity.euclidean_distance(x1, ...)

Calculates Euclidean (straight line) distance between (x1, y1) and (x2, y2).

xrspatial.proximity.great_circle_distance(x1, ...)

Calculates great-circle (orthodromic/spherical) distance between (x1, y1) and (x2, y2), assuming each point is a longitude, latitude pair.

xrspatial.proximity.manhattan_distance(x1, ...)

Calculates Manhattan distance (sum of distance in x and y directions) between (x1, y1) and (x2, y2).

xrspatial.proximity.proximity(raster[, x, ...])

Computes the proximity of all pixels in the image to a set of pixels in the source image based on a distance metric.