Install
openclaw skills install @ruiduobao/geoskill-kriging-interpolationopenclaw skills install @ruiduobao/geoskill-kriging-interpolationPerforms Ordinary Kriging interpolation on discrete sample points: first computes the empirical semivariogram and fits a spherical model (nugget/sill/range), then solves the kriging system with Lagrange multipliers pixel by pixel, and evaluates accuracy with leave-one-out cross-validation (RMSE/ME). Outputs an interpolation raster and a kriging variance raster.
pip install numpy rasterio scipy
python geoskill-kriging-interpolation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-kriging-interpolation.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-kriging-interpolation.py --input <your data file> --output-dir ./out3
python geoskill-kriging-interpolation.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| File | Format | Description |
|---|---|---|
kriging_result.tif | GeoTIFF/GeoJSON/JSON | Primary output |
kriging_variance.tif | GeoTIFF/GeoJSON/JSON | Primary output |
variogram_params.json | GeoTIFF/GeoJSON/JSON | Primary output |
output-manifest.json | JSON | Run manifest |
--synthetic mode reads no external data.MIT
对离散采样点执行普通克里金(Ordinary Kriging)插值:先计算经验半变异函数并拟合球状模型(nugget/sill/range),再逐像元求解含 Lagrange 乘子的克里金方程组,并用 leave-one-out 交叉验证(RMSE/ME)评估精度。输出插值栅格与克里金方差栅格。
pip install numpy rasterio scipy
python geoskill-kriging-interpolation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-kriging-interpolation.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-kriging-interpolation.py --input <你的数据文件> --output-dir ./out3
python geoskill-kriging-interpolation.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
kriging_result.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
kriging_variance.tif | GeoTIFF/GeoJSON/JSON | 主产物 |
variogram_params.json | GeoTIFF/GeoJSON/JSON | 主产物 |
output-manifest.json | JSON | 运行清单 |
--synthetic 模式不读取任何外部数据。MIT