Skip to content

Commit a61e006

Browse files
authored
Add least-cost corridor analysis (#965) (#968)
* Add least-cost corridor function (#965) Computes corridors of low cumulative cost between source locations by summing two cost-distance surfaces and normalizing. Supports absolute and relative thresholding, pre-computed cost-distance inputs, and multi-source pairwise corridors. * Add tests for least_cost_corridor (#965) Covers symmetry, optimal path minimum, absolute and relative thresholding, precomputed surfaces, multi-source pairwise, barriers, unreachable sources, single-cell input, and input validation. All parametrized across numpy and dask+numpy backends. * Add corridor docs, user guide notebook, and README entry (#965) Adds API reference entry under Proximity, a user guide notebook (20_Corridor_Analysis) covering all major features, and a row in the README feature matrix.
1 parent 7cad73b commit a61e006

File tree

6 files changed

+1029
-0
lines changed

6 files changed

+1029
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ In the GIS world, rasters are used for representing continuous phenomena (e.g. e
241241
| [Allocation](xrspatial/proximity.py) | Assigns each cell to the identity of the nearest source feature | ✅️ || ✅️ | ✅️ |
242242
| [Balanced Allocation](xrspatial/balanced_allocation.py) | Partitions a cost surface into territories of roughly equal cost-weighted area | ✅️ || ✅️ | ✅️ |
243243
| [Cost Distance](xrspatial/cost_distance.py) | Computes minimum accumulated cost to the nearest source through a friction surface | ✅️ || ✅️ | ✅️ |
244+
| [Least-Cost Corridor](xrspatial/corridor.py) | Identifies zones of low cumulative cost between two source locations | ✅️ || ✅️ | ✅️ |
244245
| [Direction](xrspatial/proximity.py) | Computes the direction from each cell to the nearest source feature | ✅️ || ✅️ | ✅️ |
245246
| [Proximity](xrspatial/proximity.py) | Computes the distance from each cell to the nearest source feature | ✅️ || ✅️ | ✅️ |
246247
| [Surface Distance](xrspatial/surface_distance.py) | Computes distance along the 3D terrain surface to the nearest source | ✅️ || ✅️ | ✅️ |

docs/source/reference/proximity.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ Cost Distance
3535

3636
xrspatial.cost_distance.cost_distance
3737

38+
Least-Cost Corridor
39+
====================
40+
.. autosummary::
41+
:toctree: _autosummary
42+
43+
xrspatial.corridor.least_cost_corridor
44+
3845
Balanced Allocation
3946
====================
4047
.. autosummary::

0 commit comments

Comments
 (0)