Documents

Geoskill: Urban Expansion Monitor

Try it

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 assessment reports.

What it does

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 assessment reports.

The skill document

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

Related skills

Delineate urban growth boundaries from historical expansion rate and direction plus terrain, cropland and ecological constraints.

1 installs

Object-level building change detection between two epochs. Identifies new, demolished, expanded, reduced, split, and merged buildings from footprint vectors. Use when comparing two building datasets, auditing construction changes, or generating building change reports.

1 installs

Estimate impervious surface fraction from multi-band satellite imagery (Sentinel-2) using spectral indices (NDBI, NDVI, MNDWI). Supports binary classification and continuous fraction estimation, with zone-level aggregation and change detection. Use when mapping urban impervious surfaces, computing impervious ratios by watershed/admin unit, or analyzing temporal changes in built-up areas.

1 installs

Analyze urban heat island intensity and ventilation index from land surface temperature, NDVI, impervious surface and building morphology.

1 installs

Monitor construction progress from multi-temporal satellite imagery. Classifies project stages (clearing, earthwork, foundation, structure, finishing, completed) using spectral indices and detects stagnation. Use when tracking infrastructure projects, auditing construction timelines, or generating progress reports from remote sensing data.

1 installs

Estimate population density from building volume, residential ratio, night-light correction and land-cover weights with total conservation.

1 installs