Install
openclaw skills install @ruiduobao/geoskill-irrigation-efficiencyopenclaw skills install @ruiduobao/geoskill-irrigation-efficiencyThis skill computes net irrigation water demand from crop evapotranspiration (ET) and effective precipitation, and assesses the spatial distribution of field irrigation efficiency. It suits use cases such as irrigation district water management, water allocation optimization, and drought/deficit assessment.
Core algorithm: crop evapotranspiration ET = PET × Kc, where Kc is looked up from the FAO-56 mid-season crop coefficient table by crop type; effective precipitation converts total rainfall into the fraction available to the crop root zone, supporting both fixed (fixed coefficient) and usda (USDA-SCS empirical method, with lower utilization under heavy rainfall); net irrigation demand demand = max(ET − Pe, 0); irrigation efficiency efficiency = clip(demand/applied, 0, 1); when applied water is insufficient, an additional water deficit deficit = max(demand − applied, 0) is computed.
pip install 'numpy' 'rasterio' 'scipy'
python geoskill-irrigation-efficiency.py --bbox 116.0 39.0 117.0 40.0
python geoskill-irrigation-efficiency.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-irrigation-efficiency.py --bbox 116 39 117 40 --synthetic --eff-method usda --output-dir ./out
python geoskill-irrigation-efficiency.py --bbox 121 31 122 32 --synthetic --eff-coeff 0.65 --quiet
python geoskill-irrigation-efficiency.py --input scene.tif --eff-method fixed --output-dir ./out
python geoskill-irrigation-efficiency.py --bbox 87 43 88 44 --synthetic --output-dir ./out
| File | Format | Description |
|---|---|---|
irrigation_demand.tif | GeoTIFF | Net irrigation demand raster (mm) |
irrigation_efficiency.tif | GeoTIFF | Irrigation efficiency raster (0–1) |
water_deficit.tif | GeoTIFF | Irrigation deficit raster (mm) |
irrigation_report.json | JSON | Regional mean statistics (ET/precipitation/demand/efficiency/deficit) |
output-manifest.json | JSON | Run manifest |
--input: local GeoTIFF (band1 = crop ET, band2 = total precipitation, band3 = applied irrigation).--synthetic: growing-season scale PET/crop/precipitation/applied irrigation rasters, fully offline.--synthetic mode requires no network at all.MIT
本 skill 基于作物蒸散发(ET)与有效降水计算净灌溉需水量,并评估田间灌溉效率的空间分布,适用于灌区用水管理、配水优化、干旱缺水评估等场景。
核心算法:作物蒸散发 ET = PET × Kc,Kc 由作物类型查 FAO-56 中期作物系数表;有效降水把总降雨折算为作物根区可利用部分,支持 fixed(固定系数)与 usda(USDA-SCS 经验式,强降雨利用率更低)两种方法;净灌溉需水量 demand = max(ET − Pe, 0);灌溉效率 efficiency = clip(demand/applied, 0, 1),实灌不足时另计缺水亏缺 deficit = max(demand − applied, 0)。
pip install 'numpy' 'rasterio' 'scipy'
python geoskill-irrigation-efficiency.py --bbox 116.0 39.0 117.0 40.0
python geoskill-irrigation-efficiency.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-irrigation-efficiency.py --bbox 116 39 117 40 --synthetic --eff-method usda --output-dir ./out
python geoskill-irrigation-efficiency.py --bbox 121 31 122 32 --synthetic --eff-coeff 0.65 --quiet
python geoskill-irrigation-efficiency.py --input scene.tif --eff-method fixed --output-dir ./out
python geoskill-irrigation-efficiency.py --bbox 87 43 88 44 --synthetic --output-dir ./out
| 文件 | 格式 | 说明 |
|---|---|---|
irrigation_demand.tif | GeoTIFF | 净灌溉需水量栅格(mm) |
irrigation_efficiency.tif | GeoTIFF | 灌溉效率栅格(0–1) |
water_deficit.tif | GeoTIFF | 灌溉亏缺量栅格(mm) |
irrigation_report.json | JSON | 区域均值统计(ET/降水/需水/效率/亏缺) |
output-manifest.json | JSON | 运行清单 |
--input:本地 GeoTIFF(band1 = 作物 ET,band2 = 总降水,band3 = 实灌量)。--synthetic:生长季尺度的 PET/作物/降水/实灌量栅格,完全离线。--synthetic 模式完全无网络。MIT