How josuebatasema9-ux/scripts-wcs-version-1 works
This repository is a quasi-real-time deforestation monitoring workflow for Kahuzi-Biega National Park. An operator launches individual stages or the ordered pipeline; Sentinel-1/2 composites feed spectral analysis, SAR-optical fusion and land-cover classification, then loss and hotspot analysis, alerting, validation and patrol reporting. Google Earth Engine and Drive provide the documented acquisition/export boundary. Shared raster and configuration helpers support several stages. The README documents the overall sequence; some later-stage inputs and internal calls were not sampled, so those links reflect documented workflow rather than inspected call sites.
Main entry points: run_pipeline.py Pipeline runner · s01_acquisition_gee.py Sentinel composites · s05_loss_detection.py Forest-loss maps · utils.py Raster and config utilities
Components 16
Satellite acquisition
- Sentinel composites
src/s01_acquisition_gee.py
Fusion and classification
- Spectral signatures
src/s02_signatures_separability.py - SAR-optical fusion
src/s03_fusion_model.py - Fusion metrics
src/fusion_metrics.py - Land-cover classification
src/s04_classification.py - Deep segmentation
src/s04b_deep_segmentation.py
Loss and alerts
- Forest-loss maps
src/s05_loss_detection.py - Emerging hotspots
src/s06_hotspots_ehsa.py - NRT radar alerts
src/s07_nrt_alerts.py
Validation and patrols
- Accuracy validation
src/s08_validation.py - Patrol report
src/s09_patrol_report.py
Shared utilities
- Raster and config utilities
src/utils.py
Other components
- Operator
- Pipeline runner
run_pipeline.py - Earth Engine
- Google Drive
Connections 28
- Operator → Pipeline runner: launches
run_pipeline.py - Pipeline runner → Sentinel composites: dispatches
run_pipeline.py - Pipeline runner → Spectral signatures: dispatches
run_pipeline.py - Pipeline runner → SAR-optical fusion: dispatches
run_pipeline.py - Pipeline runner → Land-cover classification: dispatches
run_pipeline.py - Pipeline runner → Forest-loss maps: dispatches
run_pipeline.py - Pipeline runner → Emerging hotspots: dispatches
run_pipeline.py - Pipeline runner → NRT radar alerts: dispatches
run_pipeline.py - Pipeline runner → Accuracy validation: dispatches
run_pipeline.py - Pipeline runner → Patrol report: dispatches
run_pipeline.py - Sentinel composites → Earth Engine: queries imagery
src/s01_acquisition_gee.py - Sentinel composites → Google Drive: exports composites
src/s01_acquisition_gee.py - Sentinel composites → Spectral signatures: provides composites
README.md - Sentinel composites → SAR-optical fusion: provides bands
src/s03_fusion_model.py - SAR-optical fusion → Fusion metrics: uses metrics
src/s03_fusion_model.py - SAR-optical fusion → Land-cover classification: provides features
src/s03_fusion_model.py - Land-cover classification → Deep segmentation: supports deep models
README.md - Land-cover classification → Forest-loss maps: provides class maps
README.md - Forest-loss maps → Emerging hotspots: provides loss series
README.md - Forest-loss maps → NRT radar alerts: supports confirmation
- Emerging hotspots → Accuracy validation: feeds assessment
- NRT radar alerts → Accuracy validation: feeds assessment
- Accuracy validation → Patrol report: informs priorities
- Sentinel composites → Raster and config utilities: loads config
src/s01_acquisition_gee.py - Spectral signatures → Raster and config utilities: uses helpers
src/s02_signatures_separability.py - Forest-loss maps → Raster and config utilities: reads and writes rasters
src/s05_loss_detection.py - Emerging hotspots → Raster and config utilities: reads rasters
src/s06_hotspots_ehsa.py - NRT radar alerts → Raster and config utilities: reads and writes rasters
src/s07_nrt_alerts.py