Install
openclaw skills install @ruiduobao/geoskill-hotspot-analysisopenclaw skills install @ruiduobao/geoskill-hotspot-analysisIdentifies statistically significant hotspots (clusters of high values) and coldspots (clusters of low values) based on the Getis-Ord Gi* statistic, combined with Gaussian kernel density estimation (KDE) and multi-scale analysis. Outputs a Gi* z-score raster, significance-classified rasters at the 90/95/99% levels, and a kernel density raster.
pip install numpy rasterio scipy geopandas shapely
python geoskill-hotspot-analysis.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-hotspot-analysis.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-hotspot-analysis.py --input <your data file> --output-dir ./out3
python geoskill-hotspot-analysis.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| File | Format | Description |
|---|---|---|
gi_star_zscore.tif | GeoTIFF/GeoJSON/JSON | Primary output |
hotspot_significance.tif | GeoTIFF/GeoJSON/JSON | Primary output |
kernel_density.tif | GeoTIFF/GeoJSON/JSON | Primary output |
hotspot_stats.json | GeoTIFF/GeoJSON/JSON | Primary output |
output-manifest.json | JSON | Run manifest |
--synthetic mode reads no external data.MIT
基于 Getis-Ord Gi* 统计量识别统计显著的热点(高值聚集)与冷点(低值聚集),叠加高斯核密度估计(KDE)与多尺度分析。输出 Gi* z 得分栅格、90/95/99% 显著性分级栅格与核密度栅格。
pip install numpy rasterio scipy geopandas shapely
python geoskill-hotspot-analysis.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-hotspot-analysis.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-hotspot-analysis.py --input <你的数据文件> --output-dir ./out3
python geoskill-hotspot-analysis.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
gi_star_zscore.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
hotspot_significance.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
kernel_density.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
hotspot_stats.json | GeoTIFF/GeoJSON/JSON | 主产物 |
output-manifest.json | JSON | 运行清单 |
--synthetic 模式不读取任何外部数据。MIT