Install
openclaw skills install @ruiduobao/geoskill-soil-erosion-modelingRUSLE 模型空间化估算土壤侵蚀模数:A = R×K×L×S×C×P,含降雨侵蚀力、土壤可蚀性、坡长坡度、植被覆盖与水保措施六因子。Computes soil erosion modulus with RUSLE (R K L S C P) spatialized factors. 输出侵蚀模数与强度分级 GeoTIFF。
openclaw skills install @ruiduobao/geoskill-soil-erosion-modelingA = R × K × LS × C × P (t·ha⁻¹·yr⁻¹): R is estimated from mean annual rainfall × an intensity coefficient; K is looked up by soil texture (sand/loam/clay/silt, 0.05–0.42); LS uses the simplified Moore & Burch equation (flow accumulation × slope); C is derived from an exponential decay of NDVI (better vegetation cover, lower erosion, in [0.01, 1]); P is looked up by practice (no measures / contour tillage / terraces, 1.0/0.55/0.25). The erosion modulus is then classified into 5 grades from slight to extremely intense using the 500/2500/5000/8000 thresholds.
Use cases: soil and water conservation planning, erosion hotspot identification, and watershed sediment source analysis.
pip install numpy rasterio scipy
python geoskill-soil-erosion-modeling.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./output
python geoskill-soil-erosion-modeling.py --input rusle_inputs.tif --output-dir ./real
python geoskill-soil-erosion-modeling.py --bbox 116 39 117 40 --synthetic --cell-size 10 --output-dir ./fine
python geoskill-soil-erosion-modeling.py --bbox 121 31 122 32 --synthetic --output-dir ./shanghai
python geoskill-soil-erosion-modeling.py --bbox 113 23 114 24 --synthetic --quiet --output-dir ./batch
| File | Format | Description |
|---|---|---|
erosion_modulus.tif | GeoTIFF (float32) | Erosion modulus (t·ha⁻¹·yr⁻¹), EPSG:4326 |
erosion_grade.tif | GeoTIFF (float32) | Erosion intensity grade 0-4 |
rusle_params.json | JSON | Factor means and per-grade pixel counts |
output-manifest.json | JSON | Run manifest (input/output/QA/software versions) |
Local GeoTIFF (optional 6-band factor input); the RUSLE factor equations and K/P reference values are taken from the USDA-published RUSLE handbook; synthetic mode is generated locally with no external data source.
--synthetic mode reads no external dataMIT
A = R × K × LS × C × P(t·ha⁻¹·yr⁻¹):R 由年均降雨×强度系数估算;K 按砂/壤/黏/粉砂质地查表(0.05-0.42);LS 用 Moore & Burch 简化式(汇流累积×坡度);C 由 NDVI 指数衰减(植被越好侵蚀越小,取值 [0.01,1]);P 按无措施/等高耕作/梯田查表(1.0/0.55/0.25)。侵蚀模数再按 500/2500/5000/8000 阈值分为微度至极强烈 5 级。
适用场景:水土保持规划、侵蚀热点识别、流域泥沙来源分析。
pip install numpy rasterio scipy
python geoskill-soil-erosion-modeling.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./output
python geoskill-soil-erosion-modeling.py --input rusle_inputs.tif --output-dir ./real
python geoskill-soil-erosion-modeling.py --bbox 116 39 117 40 --synthetic --cell-size 10 --output-dir ./fine
python geoskill-soil-erosion-modeling.py --bbox 121 31 122 32 --synthetic --output-dir ./shanghai
python geoskill-soil-erosion-modeling.py --bbox 113 23 114 24 --synthetic --quiet --output-dir ./batch
| 文件 | 格式 | 说明 |
|---|---|---|
erosion_modulus.tif | GeoTIFF (float32) | 侵蚀模数(t·ha⁻¹·yr⁻¹),EPSG:4326 |
erosion_grade.tif | GeoTIFF (float32) | 侵蚀强度分级 0-4 |
rusle_params.json | JSON | 各因子均值与分级像元计数 |
output-manifest.json | JSON | 运行清单(输入/输出/QA/软件版本) |
本地 GeoTIFF(6 波段因子输入,可选);RUSLE 因子公式与 K/P 参考值取自USDA 公开发表的 RUSLE 手册;合成模式本地生成,无外部数据源。
--synthetic 模式不读取任何外部数据MIT