How gayatri226-web/himraksha works
HimRaksha maps flood impacts from a user-specified area and date: satellite imagery is prepared and analyzed, damage and access impacts are assessed, and results are exported to an offline map dashboard and situation report. The graph follows the documented run workflow and preserves the separate flood-path and validation capabilities. Some orchestration and implementations are not excerpted; those relationships are included only where the README explicitly documents them.
Main entry points: 01_mapping.py Fused impact map · 03_damage.py Asset damage grading · grd_preprocess.py GRD preprocessing · export_dashboard.py Dashboard export
Components 22
Imagery preparation
- GRD preprocessing
code/pipeline/grd_preprocess.py - Optical change layer
code/pipeline/s2_layer.py
Flood impact analysis
- DEM and valley mask
code/pipeline/01_mapping.py - Flood U-Net inference
code/pipeline/01_mapping.py - Radar change detection
code/pipeline/01_mapping.py - Fused impact map
code/pipeline/01_mapping.py
Damage and access
- OSM asset fetch
code/pipeline/02_osm_fetch_v2.py - Asset damage grading
code/pipeline/03_damage.py - Bridge grading
code/pipeline/bridges.py - Cut-off and repairs
code/pipeline/04_access_cutoff.py - Flood path exposure
code/pipeline/flow_path.py
Results presentation
- Dashboard export
code/dashboard/export_dashboard.py - Event map data
code/dashboard/web/data - Offline dashboard
code/dashboard/web/app.js - Situation report
code/dashboard/web/sitrep.html
Validation
- EMS comparison
code/evaluation/eval_emsr927.py - JRC comparison
code/evaluation/compare_jrc.py - Model contribution check
code/evaluation/model_only_check.py
Other components
- Area and date
- Copernicus data
- Sentinel-1 GRD
- Copernicus EMS reference
Connections 35
- Area and date → GRD preprocessing: specifies area and dates
README.md - Copernicus data → GRD preprocessing: provides radar scenes
README.md - Sentinel-1 GRD → GRD preprocessing: supplies raw scenes
README.md - GRD preprocessing → Fused impact map: prepares radar stack
README.md - Area and date → DEM and valley mask: sets analysis area
README.md - Copernicus data → DEM and valley mask: provides DEM
README.md - DEM and valley mask → Flood U-Net inference: provides terrain inputs
README.md - DEM and valley mask → Radar change detection: limits valley analysis
README.md - GRD preprocessing → Flood U-Net inference: provides radar pairs
README.md - GRD preprocessing → Radar change detection: provides radar pairs
README.md - Flood U-Net inference → Fused impact map: contributes water detections
README.md - Radar change detection → Fused impact map: contributes debris detections
README.md - Copernicus data → Optical change layer: provides optical scenes
README.md - Fused impact map → Optical change layer: fuses optical findings
README.md - Area and date → OSM asset fetch: sets event snapshot
README.md - OSM asset fetch → Asset damage grading: provides pre-event assets
README.md - Fused impact map → Asset damage grading: identifies impacted assets
README.md - Asset damage grading → Bridge grading: grades bridge decks
README.md - Asset damage grading → Cut-off and repairs: provides damaged roads
README.md - Fused impact map → Flood path exposure: provides flood context
- Fused impact map → Dashboard export: supplies impact layers
README.md - Asset damage grading → Dashboard export: supplies damage results
README.md - Cut-off and repairs → Dashboard export: supplies access results
README.md - Flood path exposure → Dashboard export: supplies flood-path layer
README.md - Dashboard export → Event map data: writes map data
code/dashboard/export_dashboard.py - Event map data → Offline dashboard: loads event layers
code/dashboard/web/app.js - Event map data → Situation report: provides report data
README.md - Fused impact map → EMS comparison: compares mapped area
code/evaluation/eval_emsr927.py - Asset damage grading → EMS comparison: compares asset detections
code/evaluation/eval_emsr927.py - Copernicus EMS reference → EMS comparison: provides reference grades
README.md - Fused impact map → JRC comparison: tests permanent-water mask
code/evaluation/compare_jrc.py - Copernicus EMS reference → JRC comparison: provides validation reference
code/evaluation/compare_jrc.py - Fused impact map → Model contribution check: checks model contribution
code/evaluation/model_only_check.py - Optical change layer → Model contribution check: provides optical comparison
code/evaluation/model_only_check.py - Copernicus EMS reference → Model contribution check: provides validation reference
code/evaluation/model_only_check.py