Install
openclaw skills install @ruiduobao/geoskill-climate-downscaling统计降尺度:用多元回归建立粗分辨率气候变量与高分辨率地形预测因子的关系,并对残差做空间插值,生成高分辨率气候栅格
openclaw skills install @ruiduobao/geoskill-climate-downscalingThis skill implements statistical downscaling, which downscales coarse-resolution climate variables (temperature/precipitation) to high resolution. The core workflow is "terrain regression + residual spatial interpolation":
LinearRegression); in the temperature scenario, the elevation coefficient is the lapse rate.Outputs a high-resolution downscaled raster, a regression/residual component stack, and a validation report (correlation coefficient against ground truth, RMSE, improvement over the coarse-resolution baseline, lapse rate). Suitable for regional climate refinement, spatialization of temperature/precipitation over complex terrain, and preparation of forcing fields for ecological and hydrological models.
pip install 'numpy' 'rasterio' 'scipy' 'scikit-learn'
python geoskill-climate-downscaling.py --bbox 116.0 39.0 117.0 40.0 [other parameters]
python geoskill-climate-downscaling.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-climate-downscaling.py --bbox 100.0 26.0 104.0 30.0 --output-dir ./out
python geoskill-climate-downscaling.py --bbox 100.0 26.0 104.0 30.0 --target-resolution 128 --synthetic --output-dir ./out
python geoskill-climate-downscaling.py --bbox 100.0 26.0 104.0 30.0 --synthetic --output-dir ./out --quiet
python geoskill-climate-downscaling.py --input dem_truth_coarse.tif --output-dir ./out
| File | Format | Description |
|---|---|---|
downscaled.tif | GeoTIFF | High-resolution downscaled climate raster |
downscaling_components.tif | GeoTIFF | Regression component + residual component (2 bands) |
validation_report.json | JSON | Regression coefficients, correlation, RMSE, lapse rate |
output-manifest.json | JSON | Run manifest |
--synthetic or --bbox only): generates a "temperature decreasing with elevation" scenario locally, with no network access required.--synthetic mode requires no network access at all.MIT
本 skill 实现统计降尺度(statistical downscaling),将粗分辨率气候变量 (温度/降水)降尺度到高分辨率,核心流程为"地形回归 + 残差空间插值":
LinearRegression)建立
气候变量 ~ 高程 + 坡度 的关系;温度场景下高程系数即气温递减率 lapse rate。输出高分辨率降尺度栅格、回归/残差分量栈与验证报告(与真值相关系数、RMSE、 相对粗分辨率基线的改进、递减率)。适用于区域气候精细化、复杂地形气温/降水 空间化、生态与水文模型的强迫场准备。
pip install 'numpy' 'rasterio' 'scipy' 'scikit-learn'
python geoskill-climate-downscaling.py --bbox 116.0 39.0 117.0 40.0 [其他参数]
python geoskill-climate-downscaling.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-climate-downscaling.py --bbox 100.0 26.0 104.0 30.0 --output-dir ./out
python geoskill-climate-downscaling.py --bbox 100.0 26.0 104.0 30.0 --target-resolution 128 --synthetic --output-dir ./out
python geoskill-climate-downscaling.py --bbox 100.0 26.0 104.0 30.0 --synthetic --output-dir ./out --quiet
python geoskill-climate-downscaling.py --input dem_truth_coarse.tif --output-dir ./out
| 文件 | 格式 | 说明 |
|---|---|---|
downscaled.tif | GeoTIFF | 高分辨率降尺度气候栅格 |
downscaling_components.tif | GeoTIFF | 回归分量 + 残差分量(2 波段) |
validation_report.json | JSON | 回归系数、相关、RMSE、递减率 |
output-manifest.json | JSON | 运行清单 |
--synthetic 或仅 --bbox):本地生成"温度随高程递减"场景,无需网络。--synthetic 模式完全无网络。MIT