记忆

Geoskill: Urban Green Equity

试用

Assess urban green space distribution equity across populations and communities. Evaluates quantity, quality, and walkable accessibility of parks and green spaces, identifies service gaps and priority areas for intervention. Use when the user needs green space equity analysis, service coverage assessment, or priority community identification.

它能做什么

Assess urban green space distribution equity across populations and communities. Evaluates quantity, quality, and walkable accessibility of parks and green spaces, identifies service gaps and priority areas for intervention. Use when the user needs green space equity analysis, service coverage assessment, or priority community identification.

技能文档

Prerequisites / 先准备 X 文件

⚠️ 必读 — 本 skill 不属于即用型,需要先准备特定文件才能跑。

本 skill 需要 3 个 GeoJSON:公园/绿地、路网、社区边界。人口栅格和入口点是可选的。

👉 完整教程见仓库根目录 PREREQUISITES.md 1.7 节。

先准备 X 文件:OSM 提 3 个 GeoJSON 即可跑(osmnx 10 行 Python)。

快速试跑命令:

python urban_green_equity.py --green-sources parks.geojson --network roads.geojson --communities neighborhoods.geojson --walk-minutes 10 --output-dir ./uge

Urban Green Equity

Evaluates the fairness of urban green space distribution by analyzing quantity, quality, and walkable accessibility across populations and communities. Identifies service gaps and priority areas for green infrastructure investment.

Trigger

Use when the user wants to:

  • Assess green space distribution equity across neighborhoods
  • Compute walkable green space coverage for population groups
  • Identify communities with inadequate green space access
  • Evaluate candidate sites for new green spaces
  • Generate equity metrics (Gini, coverage rate, per-capita stats)
  • Compare green space accessibility between areas

CLI Usage

# Basic equity analysis
python scripts/urban_green_equity.py \
    --green-sources parks.geojson \
    --network roads.geojson \
    --communities neighborhoods.geojson \
    --walk-minutes 10

# With population raster and entrances
python scripts/urban_green_equity.py \
    --green-sources parks.geojson \
    --network roads.geojson \
    --communities neighborhoods.geojson \
    --population pop.tif \
    --entrances park_entrances.geojson \
    --walk-minutes 5 10 15

# With barriers and candidate sites
python scripts/urban_green_equity.py \
    --green-sources parks.geojson \
    --network roads.geojson \
    --communities neighborhoods.geojson \
    --barriers rivers_railways.geojson \
    --candidate-sites new_sites.geojson \
    --equity-metrics gini,coverage_rate,per_capita_stats

# Full analysis
python scripts/urban_green_equity.py \
    --green-sources parks.geojson \
    --network roads.geojson \
    --communities neighborhoods.geojson \
    --population pop.tif \
    --entrances entrances.geojson \
    --barriers barriers.geojson \
    --candidate-sites candidates.geojson \
    --walk-minutes 10 \
    --equity-metrics gini,coverage_rate,per_capita_stats,coverage_stats,disparity_ratio \
    --output-dir my-analysis

Parameters

ParameterRequiredDefaultDescription
--green-sourcesYesGreen spaces (GeoJSON, Polygon features)
--networkYesWalkable road network (GeoJSON, LineString)
--communitiesYesCommunity boundaries (GeoJSON, Polygon)
--populationNoPopulation raster (GeoTIFF)
--entrancesNoGreen space entrance points (GeoJSON, Point)
--barriersNoWalk barriers — rivers, railways (GeoJSON, LineString)
--walk-minutesNo10Walk time threshold in minutes
--network-modeNowalkNetwork mode (currently only walk)
--equity-metricsNogini,coverage_rate,per_capita_stats,coverage_statsComma-separated metrics
--candidate-sitesNoCandidate new green space sites (GeoJSON)
--output-dirNouge-outputOutput directory
--placeNoPlace name for AOI (future)
--bboxNoBounding box xmin ymin xmax ymax (4 floats)
--aoi-fileNoAOI polygon file (GeoJSON)
--date-rangeNoDate range START,END for auto-download
--cache-dirNoOverride the default cache directory

Equity Metrics

MetricDescription
giniGini coefficient of green space per capita (0=perfect equality)
coverage_rateFraction of communities with accessible green space
per_capita_statsMean/min/max/median green area per capita (m²/person)
coverage_statsMean/min/max/median green coverage ratio
disparity_ratioRatio of 75th to 25th percentile per-capita green
population_weighted_coveragePopulation-weighted average coverage ratio
total_green_areaTotal accessible green area across all communities
total_served_populationTotal population with green space access

Output

FileDescription
green_service_areas.geojsonWalkable service areas from green spaces
community_metrics.csvPer-community green space metrics
equity_summary.jsonEquity metrics summary
priority_communities.geojsonCommunities ranked by intervention priority
scenario_report.pdfCandidate site evaluation report (JSON fallback)
request.jsonInput parameters manifest
dataset-manifest.jsonInput data metadata
output-manifest.jsonOutput metadata and results summary
qa.jsonQuality assurance report

Exit Codes

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

Notes

  • OSM park boundaries do not guarantee public access; entrance validation is recommended for accurate results
  • Population raster and community statistics are not double-counted
  • Equity metrics are scale-sensitive; results vary with community size
  • Sensitive population attributes are not inferred from spatial data alone
  • Walk network service areas use convex hull approximation of reachable nodes

数据下载

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

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

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

相关技能

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

1 次安装

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

1 次安装

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

1 次安装

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.

1 次安装