Install
openclaw skills install @ruiduobao/geoskill-viewshed-analysisopenclaw skills install @ruiduobao/geoskill-viewshed-analysisDEM-based visibility analysis: from each observer point, it determines pixel by pixel along radial directions whether the line of sight is blocked by terrain, with support for Earth curvature and atmospheric refraction correction (effective Earth radius method). Multiple observer points are overlaid to output the visibility count and a binary visible raster.
pip install numpy rasterio scipy
python geoskill-viewshed-analysis.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-viewshed-analysis.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-viewshed-analysis.py --input <your data file> --output-dir ./out3
python geoskill-viewshed-analysis.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| File | Format | Description |
|---|---|---|
viewshed.tif | GeoTIFF/GeoJSON/JSON | Primary output |
viewshed_count.tif | GeoTIFF/GeoJSON/JSON | Primary output |
viewshed_stats.json | GeoTIFF/GeoJSON/JSON | Primary output |
output-manifest.json | JSON | Run manifest |
--synthetic mode reads no external data.MIT
基于 DEM 的可视性分析:从观察点沿径向逐像元判断视线是否被地形遮挡,支持地球曲率与大气折射修正(等效地球半径法)。多观察点叠加输出可视次数与二值可视栅格。
pip install numpy rasterio scipy
python geoskill-viewshed-analysis.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-viewshed-analysis.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-viewshed-analysis.py --input <你的数据文件> --output-dir ./out3
python geoskill-viewshed-analysis.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
viewshed.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
viewshed_count.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
viewshed_stats.json | GeoTIFF/GeoJSON/JSON | 主产物 |
output-manifest.json | JSON | 运行清单 |
--synthetic 模式不读取任何外部数据。MIT