Geoskill: Coastline Change Monitor

Multi-temporal shoreline change rate analysis. Generates transects, computes Endpoint Rate (EPR) and Linear Regression Rate (LRR), and identifies erosion hotspots. Use when monitor…

ruiduobao

@ruiduobao

Install

$ openclaw skills install @ruiduobao/geoskill-coastline-change-monitor

Coastline Change Monitor

Multi-temporal shoreline change analysis with transect-based rate computation.

Trigger

Use when the user wants to:

  • Monitor coastline erosion/accretion over time
  • Compute shoreline change rates (EPR/LRR)
  • Identify erosion hotspots
  • Compare shoreline positions across years

CLI Usage

# Vector shorelines
python scripts/coastline_change_monitor.py \
  --shoreline-files shore_2015.geojson shore_018.geojson shore_2021.geojson \
  --years 2015 2018 2021

# Raster water masks
python scripts/coastline_change_monitor.py \
  --shoreline-files water_2015.tif water_2018.tif water_2021.tif \
  --years 2015 2018 2021 \
  --transect-spacing 50 --transect-length 300

Parameters

ParameterDefaultDescription
--shoreline-filesrequiredShoreline files (one per year)
--yearsautoYears for each file
--transect-spacing100Spacing between transects
--transect-length500Length of each transect
--erosion-threshold-1.0EPR threshold for hotspots (m/yr)
--output-dir./coastline-outputOutput directory

Output

FileDescription
shorelines.geojsonAll shorelines with year attribute
transects.geojsonGenerated transect lines
change_rates.csvEPR/LRR per transect
erosion_hotspots.geojsonSignificant erosion segments
report.htmlHTML summary report
output-manifest.jsonMachine-readable manifest

Exit Codes

CodeMeaning
0Success
2Argument error
3Dependency missing
6Data validation failure
7Processing failure

数据下载

本 skill 可自动从 Microsoft Planetary Computer 下载数据 (无需 API key):

python coastline_change_monitor.py --bbox 116,39,117,40 --date-range 2024-06-01,2024-06-30 --output-dir <tmp>
  • --bbox W,S,E,N: WGS-84 边界框 (西, 南, 东, 北)
  • --date-range START,END: 日期范围 (YYYY-MM-DD,YYYY-MM-DD)
  • --aoi-file <path.geojson>: 替代 --bbox 的 GeoJSON 多边形
  • --cache-dir <path>: 缓存目录 (默认 ~/.geoskill_cache)

当用户只给 --bbox + --date-range (没有 --image) 时,skill 自动下载数据。 当用户给 --image 时,走原文件路径 (向后兼容)。

Top skills in this category