Codex skill and ArcPy workflow for remote-sensing ecological quality analysis with ArcMap 10.8.
It helps inspect Landsat or Sentinel image folders, identify bands and metadata, compute common RSEI indicators, run PCA, classify ecological quality, summarize area statistics, and export ArcMap layouts.
SKILL.md- Codex skill instructions.scripts/inspect_folder.py- inspect image folders, metadata, bands, and boundary candidates.scripts/rsei_arcmap10_8.py- computeNDVI,WET,NDBSI,LST,RSEI, classification, and statistics with ArcPy.scripts/export_map_arcmap.py- export maps from an ArcMap.mxdtemplate.references/- RSEI workflow notes and Landsat/Sentinel band rules.
- ArcGIS Desktop / ArcMap 10.8
- ArcPy Python, usually
C:\Python27\ArcGIS10.8\python.exe - Spatial Analyst extension
Inspect an image folder:
python .\scripts\inspect_folder.py --input "D:\data\scene" --output "D:\data\scene\inspection.json"Run RSEI with ArcMap 10.8:
& "C:\Python27\ArcGIS10.8\python.exe" .\scripts\rsei_arcmap10_8.py --input "D:\data\scene" --boundary "D:\data\aoi.shp" --output "D:\data\rsei_out"Export a map:
& "C:\Python27\ArcGIS10.8\python.exe" .\scripts\export_map_arcmap.py --mxd-template "D:\maps\rsei_template.mxd" --rsei-raster "D:\data\rsei_out\RSEI_class.tif" --boundary "D:\data\aoi.shp" --output-mxd "D:\data\rsei_out\RSEI_map.mxd" --output-pdf "D:\data\rsei_out\RSEI_map.pdf"Sentinel-2 has no thermal band, so full RSEI requires an external LST raster. For publication work, confirm formulas, coefficients, masks, and classification thresholds match the paper method.