Install
openclaw skills install @ruiduobao/geoskill-glacier-retreat-monitoring用 NDSI 提取多期冰川范围并矢量化为边界多边形,分析冰川末端位置后退与面积变化曲线,输出边界 GeoJSON 序列、退缩速率与面积 JSON。Monitors glacier retreat from multi-temporal NDSI boundaries.
openclaw skills install @ruiduobao/geoskill-glacier-retreat-monitoringExtracts multi-temporal glacier extents with the Normalized Difference Snow Index NDSI=(Green−SWIR)/(Green+SWIR) (NDSI>0.4 = snow/ice), vectorizes each period's glacier raster into boundary polygons, and analyzes terminus retreat and area change along the time series. Suitable for monitoring alpine glacier response to climate change and updating glacier inventories.
Core algorithm:
--synthetic mode generates a physically consistent valley scene with glacier retreat (offline).
pip install numpy rasterio scipy geopandas shapely matplotlib
python geoskill-glacier-retreat-monitoring.py --bbox 86.0 28.0 87.0 29.0 --synthetic --n-dates 3 --output-dir ./output
python geoskill-glacier-retreat-monitoring.py \
--bbox 86.0 28.0 87.0 29.0 \
--synthetic --n-dates 5 --years-per-step 2 \
--output-dir ./retreat
python geoskill-glacier-retreat-monitoring.py \
--bbox 86.0 28.0 87.0 29.0 \
--synthetic --ndsi-threshold 0.5 \
--output-dir ./thr
python geoskill-glacier-retreat-monitoring.py \
--input glacier_cube.tif \
--n-dates 3 \
--output-dir ./real
Input cube convention: shape (n_dates, 2, H, W); the two bands of each period are green / swir.
| File | Format | Description |
|---|---|---|
glacier_boundaries.geojson | GeoJSON | Multi-period glacier boundary polygons (with date_index / area) |
glacier_last.tif | GeoTIFF (float32) | Final-period glacier mask, EPSG:4326 |
glacier_retreat.json | JSON | Area curve, terminus row series, retreat rate, polygon summary |
output-manifest.json | JSON | Run manifest (inputs/outputs/QA/software versions) |
MIT
用归一化差分雪指数 NDSI=(Green−SWIR)/(Green+SWIR) 提取多期冰川范围 (NDSI>0.4 为雪/冰),把每期冰川栅格矢量化为边界多边形,并沿时间序列分析 末端后退与面积变化。适用于高山冰川对气候变化的响应监测与编目更新。
核心算法:
支持 --synthetic 模式生成含冰川后退的物理一致山谷场景(离线)。
pip install numpy rasterio scipy geopandas shapely matplotlib
python geoskill-glacier-retreat-monitoring.py --bbox 86.0 28.0 87.0 29.0 --synthetic --n-dates 3 --output-dir ./output
python geoskill-glacier-retreat-monitoring.py \
--bbox 86.0 28.0 87.0 29.0 \
--synthetic --n-dates 5 --years-per-step 2 \
--output-dir ./retreat
python geoskill-glacier-retreat-monitoring.py \
--bbox 86.0 28.0 87.0 29.0 \
--synthetic --ndsi-threshold 0.5 \
--output-dir ./thr
python geoskill-glacier-retreat-monitoring.py \
--input glacier_cube.tif \
--n-dates 3 \
--output-dir ./real
输入立方体约定:形状 (n_dates, 2, H, W),每个时期的两个波段为 green / swir。
| 文件 | 格式 | 说明 |
|---|---|---|
glacier_boundaries.geojson | GeoJSON | 多期冰川边界多边形(含 date_index / area) |
glacier_last.tif | GeoTIFF (float32) | 末期冰川掩膜,EPSG:4326 |
glacier_retreat.json | JSON | 面积曲线、末端行序列、退缩速率、多边形汇总 |
output-manifest.json | JSON | 运行清单(输入/输出/QA/软件版本) |
MIT