sdc-catchment
Floating catchment area (FCA) spatial-accessibility metrics — 2SFCA, E2SFCA,
KD2SFCA, 3SFCA, modified-2SFCA, balanced FCA, and commute-based FCA, all as
parameter variations of a single catchment_ratio().
Part of the Social Data Commons
toolkit. Extracted from sdc_core.catchment; the Python replacement for the R
catchment package.
Install
uv add sdc-catchment # or: pip install sdc-catchment
Quickstart
Access of three consumers to two providers, under a gaussian distance-decay:
import numpy as np
import pandas as pd
from sdc_catchment import catchment_ratio, euclidean_cost
consumers = pd.DataFrame({"geoid": ["c1", "c2", "c3"], "value": [100.0, 100.0, 100.0]})
providers = pd.DataFrame({"geoid": ["p1", "p2"], "value": [10.0, 10.0]})
cost = euclidean_cost(np.array([[0, 0], [1, 0], [2, 0]]), np.array([[0, 0], [2, 0]]))
access = catchment_ratio(consumers, providers, cost, weight="gaussian", scale=1.0)
print(access.to_string())
# c1 0.065179
# c2 0.069641
# c3 0.065179
The central consumer (c2) has the highest access; decay weights each provider
by distance.
Public API
catchment_ratio— accessibility ratio under a chosen FCA variant.catchment_weight— distance-decay weight matrix builder.catchment_connections/catchment_network— provider/consumer connectivity.euclidean_cost— pairwise Euclidean cost matrix.KERNELS,WeightSpec— kernel registry and weight-spec type.
Documentation
Metadata
Release files for sdc-catchment 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sdc_catchment-0.1.1.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sdc_catchment-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / sdc_catchment-0.1.1.tar.gz
| Download URL | sdc_catchment-0.1.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fc8cc9ee19f7ce946f4a0c1831d63cc763d9bf3b8410ffdb2d9601082b90b98
|
|
BLAKE2b-256 checksum How to use checksums |
813cd52d4b9503b5330f1dddd03413e3809ba175c7a6788d726200c2a7444872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.
Transparency logRelease files / sdc_catchment-0.1.1-py3-none-any.whl
| Download URL | sdc_catchment-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44c82a6f79c07067f10a8b36b1144336be5ff8ea8908138b4b14a7398e395a4c
|
|
BLAKE2b-256 checksum How to use checksums |
4d1b208fec287427724a850b3b417545edc0401566cb63ec80c9bf0b43f2010f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.
Transparency log