Install
openclaw skills install @ruiduobao/geoskill-spatial-autocorrelationopenclaw skills install @ruiduobao/geoskill-spatial-autocorrelationAssesses spatial clustering patterns: computes Global Moran's I (with normal-approximation z/p values), Local Moran's I (LISA), and Getis-Ord Gi*, and derives pseudo p-values via Monte Carlo random permutation tests. Supports rook adjacency and KNN weight matrices.
pip install numpy rasterio scipy geopandas shapely
python geoskill-spatial-autocorrelation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-spatial-autocorrelation.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-spatial-autocorrelation.py --input <your data file> --output-dir ./out3
python geoskill-spatial-autocorrelation.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| File | Format | Description |
|---|---|---|
lisa.tif | GeoTIFF/GeoJSON/JSON | Primary output |
gi_star.tif | GeoTIFF/GeoJSON/JSON | Primary output |
autocorrelation_stats.json | GeoTIFF/GeoJSON/JSON | Primary output |
output-manifest.json | JSON | Run manifest |
--synthetic mode reads no external data.MIT
评估空间聚集模式:计算 Global Moran's I(含正态近似 z/p 值)、Local Moran's I(LISA)与 Getis-Ord Gi*,并用蒙特卡洛随机置换检验给出伪 p 值。支持 rook 邻接与 KNN 权重矩阵。
pip install numpy rasterio scipy geopandas shapely
python geoskill-spatial-autocorrelation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-spatial-autocorrelation.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-spatial-autocorrelation.py --input <你的数据文件> --output-dir ./out3
python geoskill-spatial-autocorrelation.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
lisa.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
gi_star.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
autocorrelation_stats.json | GeoTIFF/GeoJSON/JSON | 主产物 |
output-manifest.json | JSON | 运行清单 |
--synthetic 模式不读取任何外部数据。MIT