Install
openclaw skills install @ruiduobao/geoskill-mangrove-mapping融合 NDVI 高值、NDWI 水陆边界、海岸缓冲与 SAR 潮汐多次散射特征,规则融合提取红树林分布,输出红树林 GeoTIFF、得分栅格、面积统计与多期变化。Maps mangroves by fusing NDVI, NDWI coast buffer and SAR tidal signatures.
openclaw skills install @ruiduobao/geoskill-mangrove-mappingFuses multispectral and SAR features to map mangrove distribution in the intertidal zone of tropical/subtropical coasts, and supports multi-temporal change (gain/loss) detection. Suitable for mangrove resource baseline surveys, coastal ecological monitoring and conservation effectiveness assessment.
Four remotely detectable characteristics of mangroves:
The algorithm converts the above features into [0,1] memberships and fuses them by rules (product + SAR modulation), then thresholding yields the mangrove mask. --synthetic mode generates a physically consistent coastal scene (offline).
pip install numpy rasterio scipy
python geoskill-mangrove-mapping.py --bbox 110.0 21.0 111.0 22.0 --synthetic --output-dir ./output
python geoskill-mangrove-mapping.py \
--bbox 110.0 21.0 111.0 22.0 \
--synthetic --n-dates 3 \
--output-dir ./change
python geoskill-mangrove-mapping.py \
--bbox 110.0 21.0 111.0 22.0 \
--synthetic --score-threshold 0.5 \
--output-dir ./thr
python geoskill-mangrove-mapping.py \
--input coastal.tif \
--output-dir ./real
Input band order: green / red / nir / swir (required), with the 5th band being SAR backscatter (optional; when missing, the algorithm degrades to NDVI + coastal buffer only).
| File | Format | Description |
|---|---|---|
mangrove.tif | GeoTIFF (float32) | Final-epoch mangrove mask (1 = mangrove), EPSG:4326 |
mangrove_score.tif | GeoTIFF (float32) | Fusion score [0,1] |
mangrove_change.tif | GeoTIFF (float32) | Multi-temporal change (1=persistent 2=gain 3=loss), only when n-dates≥2 |
mangrove_area.json | JSON | Pixel/area statistics (m², ha, km²) + change statistics |
output-manifest.json | JSON | Run manifest (inputs/outputs/QA/software versions) |
MIT
融合多光谱与 SAR 特征提取热带/亚热带海岸潮间带的红树林分布,并支持多期 变化(增益/损失)检测。适用于红树林资源本底调查、海岸带生态监测与保护成效评估。
红树林的四个可遥感识别特征:
算法把上述特征转为 [0,1] 隶属度并规则融合(乘积 + SAR 调制),阈值化得到
红树林掩膜。支持 --synthetic 模式生成物理一致的海岸带场景(离线)。
pip install numpy rasterio scipy
python geoskill-mangrove-mapping.py --bbox 110.0 21.0 111.0 22.0 --synthetic --output-dir ./output
python geoskill-mangrove-mapping.py \
--bbox 110.0 21.0 111.0 22.0 \
--synthetic --n-dates 3 \
--output-dir ./change
python geoskill-mangrove-mapping.py \
--bbox 110.0 21.0 111.0 22.0 \
--synthetic --score-threshold 0.5 \
--output-dir ./thr
python geoskill-mangrove-mapping.py \
--input coastal.tif \
--output-dir ./real
输入波段顺序:green / red / nir / swir(必需),第 5 波段为 SAR 后向散射(可选, 缺失时退化为仅 NDVI+海岸缓冲)。
| 文件 | 格式 | 说明 |
|---|---|---|
mangrove.tif | GeoTIFF (float32) | 末期红树林掩膜(1=红树林),EPSG:4326 |
mangrove_score.tif | GeoTIFF (float32) | 融合得分 [0,1] |
mangrove_change.tif | GeoTIFF (float32) | 多期变化(1=持续 2=增益 3=损失),仅 n-dates≥2 |
mangrove_area.json | JSON | 像元/面积(m²、ha、km²)+ 变化统计 |
output-manifest.json | JSON | 运行清单(输入/输出/QA/软件版本) |
MIT