How 1rishipathak/pyroscan works
PyroScan maps seasonal Sentinel-2 burn scars to reveal farmland burns missed by official fire counts, then adds contextual evidence and publishes results through a dashboard. The graph includes the documented training, analysis, official-source, emissions, hotspot, news, and INSAT capabilities. Some pipeline scripts and the API were not sampled, so only documented or indexed relationships are shown; optional or uncertain wiring is omitted.
Main entry points: config.py Study configuration · 08_web_assets.py Dashboard data generation · 05_infer.py Season inference · s2.py Scene access
Components 24
Burn analysis
- Study configuration
pyroscan/config.py - Scene access
pyroscan/s2.py - Clear-look timeline
pyroscan/timeline.py - Burn indices and labels
pyroscan/indices.py - U-Net training
scripts/04_train.py - U-Net model
pyroscan/model.py - Season inference
scripts/05_infer.py
Fire context
- Official count ingestion
pyroscan/sources.py - TinyFish client
pyroscan/tinyfish_client.py - Enforcement news
pyroscan/news.py - FIRMS detections
pyroscan/firms.py - INSAT fire analysis
pyroscan/mosdac.py
Results and dashboard
- Smoke estimates
pyroscan/emissions.py - Punjab geography
pyroscan/geo.py - Village hotspots
scripts/08b_hotspots.py - Dashboard data generation
scripts/08_web_assets.py - Interactive dashboard
web/app.js - HTTP API
api/main.py - Season timelapse
scripts/11_timelapse.py
External data
- Sentinel-2 scenes
- Official bulletins
- TinyFish APIs
- INSAT-3DR scans
Other components
- Analyst
Connections 26
- Scene access → Study configuration: uses settings
pyroscan/s2.py - Clear-look timeline → Study configuration: uses settings
pyroscan/timeline.py - Clear-look timeline → Scene access: loads scenes
pyroscan/timeline.py - U-Net training → Study configuration: uses settings
scripts/04_train.py - U-Net training → U-Net model: trains
scripts/04_train.py - Season inference → Study configuration: uses settings
scripts/05_infer.py - Season inference → Burn indices and labels: uses burn indices
scripts/05_infer.py - Season inference → Clear-look timeline: walks scenes
scripts/05_infer.py - Season inference → U-Net model: runs model
scripts/05_infer.py - Official count ingestion → Study configuration: uses settings
pyroscan/sources.py - Official count ingestion → TinyFish client: fetches bulletins
pyroscan/sources.py - TinyFish client → TinyFish APIs: queries
pyroscan/tinyfish_client.py - Enforcement news → Study configuration: uses settings
pyroscan/news.py - Enforcement news → TinyFish client: searches and reads
pyroscan/news.py - INSAT fire analysis → INSAT-3DR scans: reads fire scans
README.md - Dashboard data generation → Study configuration: uses settings
scripts/08_web_assets.py - Dashboard data generation → Smoke estimates: calculates emissions
scripts/08_web_assets.py - Dashboard data generation → Scene access: uses scene data
scripts/08_web_assets.py - Dashboard data generation → Punjab geography: uses geography
scripts/08_web_assets.py - Dashboard data generation → Interactive dashboard: publishes dashboard data
README.md - Village hotspots → Study configuration: uses settings
scripts/08b_hotspots.py - Analyst → Interactive dashboard: views results
README.md - Analyst → HTTP API: requests data
- Season timelapse → Study configuration: uses settings
scripts/11_timelapse.py - Sentinel-2 scenes → Scene access: provides imagery
pyroscan/s2.py - Official bulletins → Official count ingestion: provides bulletins
pyroscan/sources.py