Geoskill: Urban Expansion Monitor

Detect and quantify urban expansion from multi-temporal built-up rasters. Use when the user wants to analyze changes, compare multi-temporal rasters, compute indices, or generate a…

ruiduobao

@ruiduobao

Install

$ openclaw skills install @ruiduobao/geoskill-urban-expansion-monitor

Urban Expansion Monitor

Detect and quantify urban expansion from multi-temporal built-up rasters.

CLI Usage

python scripts/urban_expansion_monitor.py --before before.tif --after after.tif
python scripts/urban_expansion_monitor.py --before before.tif --after after.tif --threshold 0.6
python scripts/urban_expansion_monitor.py --before before.tif --after after.tif --output-dir my_output

Data Download

This skill can auto-fetch a pair of Landsat Collection 2 Level-2 scenes from the Microsoft Planetary Computer when given a bounding box + date range. The --date-range is split at the midpoint: the first half is used for --before and the second half for --after.

python scripts/urban_expansion_monitor.py \
  --bbox 116,39,117,40 \
  --date-range 2020-01-01,2024-12-31 \
  --output-dir ./expansion-output

The PYTHONPATH must include the parent of _geoskill_data_fetcher/ (the same directory the 50 skills live in). Set it once:

export PYTHONPATH="/path/to/行业Skill创意-20260727"

Parameters

ArgumentRequiredDefaultDescription
--beforeYesPath to "before" built-up raster (continuous built-up index or binary mask)
--afterYesPath to "after" built-up raster (same grid as --before)
--thresholdNo0.5Built-up classification threshold (values ≥ threshold are considered urban)
--output-dir, -oNoexpansion-outputDirectory to write outputs

Output

FileDescription
expansion-report.jsonMachine-readable expansion stats (areas, growth rate)
report.htmlHuman-readable HTML report
output-manifest.jsonRun metadata + result summary

Exit Codes

CodeMeaning
0Success
2Argument error (e.g. missing input file)
7Processing failure

Top skills in this category