How nikhil-patyal/thermal works
AGNI-DRISHTI ingests NASA FIRMS thermal detections, enriches hotspots with geographic and exposure context, classifies them using spatial evidence, and presents results through an interactive map and event dossier. The README emphasizes India-focused PostGIS facility footprints and deterministic evidence labels. The graph follows the sampled pipeline and frontend data-fetch path; unsampled views and dossier tabs are represented by their exact enclosing source paths, but uncertain internal calls are omitted.
Main entry points: run_full_pipeline.py Pipeline runner · tasks.py FIRMS ingestion · batch_enrich.py Batch enrichment · batch_classify.py Batch classification
Components 22
Detection and geography
- Pipeline runner
backend/run_full_pipeline.py - FIRMS ingestion
backend/hotspots/tasks.py - OSM footprint import
backend/import_india_osm.py - Facility candidates
backend/hotspots/models.py
Enrichment and classification
- Batch enrichment
backend/hotspots/batch_enrich.py - Geographic context
backend/geography/services.py - Batch classification
backend/hotspots/batch_classify.py - Feature extraction
backend/ml/feature_engineering.py - Spatial evidence
backend/ml/evidence_engine.py
Backend services
- Hotspot records
backend/hotspots/models.py - Hotspot API
backend/hotspots/views.py - Imagery API
backend/satellite_imagery/views.py
Map and investigation
- Application shell
frontend/src/App.tsx - Thermal data hook
frontend/src/hooks/useThermalData.ts - Intelligence map
frontend/src/components/Map.tsx - Event dossier
frontend/src/components/events/EventDossier.tsx - Analysis tabs
frontend/src/components/events/tabs/AIAnalysis.tsx
Other components
- Pipeline operator
- NASA FIRMS
- Copernicus imagery
- Mapillary photos
- Analyst
Connections 24
- Pipeline operator → Pipeline runner: runs
- Pipeline runner → FIRMS ingestion: calls fetch
- Pipeline runner → Batch enrichment: calls enrich
- Pipeline runner → Batch classification: calls classify
- FIRMS ingestion → NASA FIRMS: requests detections
- FIRMS ingestion → Hotspot records: stores detections
- OSM footprint import → Facility candidates: loads footprints
- Batch enrichment → Hotspot records: enriches records
- Batch enrichment → Geographic context: requests context
- Geographic context → Facility candidates: queries nearby
- Batch classification → Feature extraction: extracts features
- Feature extraction → Hotspot records: reads hotspot data
- Feature extraction → Geographic context: extracts context
- Batch classification → Spatial evidence: generates labels
- Spatial evidence → Facility candidates: checks overlap
- Analyst → Application shell: opens
- Application shell → Intelligence map: renders
- Intelligence map → Thermal data hook: loads data
- Thermal data hook → Hotspot API: fetches hotspots
- Application shell → Event dossier: opens selected event
- Event dossier → Analysis tabs: presents analysis
- Analyst → Imagery API: requests imagery
- Imagery API → Copernicus imagery: fetches scenes
- Imagery API → Mapillary photos: searches photos