Install
openclaw skills install @ruiduobao/geoskill-bare-soil-mapping融合裸土指数 BSI、亮度与局部纹理(裸土低对比度)阈值提取裸土/裸地分布,支持 Otsu 自动阈值,输出裸土 GeoTIFF、BSI 栅格与面积统计。Maps bare soil by fusing BSI, brightness and local texture.
openclaw skills install @ruiduobao/geoskill-bare-soil-mappingFuses three complementary features to extract the distribution of bare soil/bare land, distinguishing bare soil from vegetation, urban built-up areas, and water bodies. Suitable for soil erosion baseline surveys, early identification of desertification, verification of exposed land at construction sites, and land cover mapping in arid regions.
Core algorithm:
--threshold auto applies the Otsu method for automatic thresholding, or an explicit float in [0, 1] can be given.Supports --synthetic mode to generate physically consistent scenes containing bare soil, vegetation, urban areas, and water bodies (offline).
pip install numpy rasterio scipy
python geoskill-bare-soil-mapping.py --bbox 116.0 39.0 117.0 40.0 --synthetic --threshold auto --output-dir ./output
python geoskill-bare-soil-mapping.py \
--bbox 116.0 39.0 117.0 40.0 \
--synthetic --threshold 0.4 \
--output-dir ./thr
python geoskill-bare-soil-mapping.py \
--bbox 116.0 39.0 117.0 40.0 \
--synthetic --texture-size 7 \
--output-dir ./tex
python geoskill-bare-soil-mapping.py \
--input scene.tif \
--threshold auto \
--output-dir ./real
Input band order: blue / green / red / nir / swir (at least 5 bands).
| File | Format | Description |
|---|---|---|
bare_soil.tif | GeoTIFF (float32) | Bare soil mask (1 = bare soil), EPSG:4326 |
bsi.tif | GeoTIFF (float32) | Bare Soil Index BSI [−1, 1] |
bare_soil_area.json | JSON | Pixel/area (m², ha, km²), proportion, applied threshold, mean BSI |
output-manifest.json | JSON | Run manifest (inputs/outputs/QA/software versions) |
MIT
融合三个互补特征提取裸土/裸地分布,把裸土与植被、城镇建筑、水体区分开。 适用于土壤侵蚀本底调查、荒漠化早期识别、建设用地裸地核查与干旱区地表覆盖制图。
核心算法:
--threshold auto 用大津法(Otsu)
自动阈值,或显式给定 [0,1] 浮点数。支持 --synthetic 模式生成含裸土/植被/城镇/水体的物理一致场景(离线)。
pip install numpy rasterio scipy
python geoskill-bare-soil-mapping.py --bbox 116.0 39.0 117.0 40.0 --synthetic --threshold auto --output-dir ./output
python geoskill-bare-soil-mapping.py \
--bbox 116.0 39.0 117.0 40.0 \
--synthetic --threshold 0.4 \
--output-dir ./thr
python geoskill-bare-soil-mapping.py \
--bbox 116.0 39.0 117.0 40.0 \
--synthetic --texture-size 7 \
--output-dir ./tex
python geoskill-bare-soil-mapping.py \
--input scene.tif \
--threshold auto \
--output-dir ./real
输入波段顺序:blue / green / red / nir / swir(至少 5 波段)。
| 文件 | 格式 | 说明 |
|---|---|---|
bare_soil.tif | GeoTIFF (float32) | 裸土掩膜(1=裸土),EPSG:4326 |
bsi.tif | GeoTIFF (float32) | 裸土指数 BSI [−1,1] |
bare_soil_area.json | JSON | 像元/面积(m²、ha、km²)、占比、应用阈值、均值 BSI |
output-manifest.json | JSON | 运行清单(输入/输出/QA/软件版本) |
MIT