distance_band_weights
Generate a spatial weights matrix from point features using a distance band. Set a threshold to define neighbors, select binary or inverse distance weighting, and optionally assign custom observation IDs.
Instructions
Create a distance-based spatial weights (W) object from point data.
data_path: path to point shapefile or GeoPackage
threshold: distance threshold for neighbors (in CRS units, e.g., meters)
binary: True for binary weights, False for inverse distance weights
id_field: optional attribute name to use as observation IDs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_path | Yes | ||
| threshold | Yes | ||
| binary | No | ||
| id_field | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||