Install
openclaw skills install @ruiduobao/geoskill-idw-interpolationopenclaw skills install @ruiduobao/geoskill-idw-interpolationInverse Distance Weighting (IDW) spatial interpolation: the value at a target point is the distance-weighted average of known point values in its neighborhood, with weights w = 1/d^p. Supports tuning of the power parameter p, search radius limits, and nearest-neighbor search. Vectorized implementation; outputs an interpolated raster.
pip install numpy rasterio scipy
python geoskill-idw-interpolation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-idw-interpolation.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-idw-interpolation.py --input <your data file> --output-dir ./out3
python geoskill-idw-interpolation.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| File | Format | Description |
|---|---|---|
idw_result.tif | GeoTIFF/GeoJSON/JSON | Primary output |
output-manifest.json | JSON | Run manifest |
--synthetic mode reads no external data.MIT
反距离权重(IDW)空间插值:目标点值为其邻域已知点值的距离加权平均,权重 w=1/d^p。支持幂参数 p 调节、搜索半径限制与最近邻域搜索。向量化实现,输出插值栅格。
pip install numpy rasterio scipy
python geoskill-idw-interpolation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-idw-interpolation.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-idw-interpolation.py --input <你的数据文件> --output-dir ./out3
python geoskill-idw-interpolation.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
idw_result.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
output-manifest.json | JSON | 运行清单 |
--synthetic 模式不读取任何外部数据。MIT