How eswar163/sih26078 works
Trikaal is an offline, browser-based weather-event intelligence application for synthetic numerical weather prediction over India. A user selects a season and seed; application state requests a run through the worker client, which runs the model pipeline and returns results for map, timeline, and event views. The broader product includes ensemble probability cones, event memory and lineage, scenario attribution, intelligence and alerts, and verification. Connections for unsampled capabilities are included only where the README or SOURCE INDEX supports them; some detailed internal calls are therefore not shown.
Main entry points: engine.worker.ts Engine worker · App.tsx Application shell · run.ts Field-to-event run · briefing.ts Briefing and alerts
Components 27
Application interface
- Application shell
src/App.tsx - Run state
src/state/store.ts - Shareable URL state
src/state/url.ts
Worker runtime
- Worker client
src/worker/client.ts - Engine worker
src/worker/engine.worker.ts - Ensemble member worker
src/worker/member.worker.ts
Weather and events
- Synthetic atmosphere
src/engine/world.ts - Seasonal climate
src/engine/climate.ts - Field-to-event run
src/engine/run.ts - Event detection
src/engine/detect.ts - Event tracking
src/engine/track.ts - Event enrichment
src/engine/events.ts - Event DNA
src/engine/dna.ts
Forecast intelligence
- Event memory
src/engine/archive.ts - Analog search
src/engine/analogs.ts - Ensemble forecast
src/engine/ensemble.ts - Probability cone
src/engine/cone.ts - Scenario attribution
src/engine/scenario.ts - Briefing and alerts
src/engine/intel/briefing.ts - Decision clock
src/engine/decision.ts
Views and analysis
- Weather map
src/map/MapView.tsx - Chart view
src/views/ChartView.tsx - Memory view
src/views/MemoryView.tsx - Scenario Lab view
src/views/ScenarioView.tsx - Briefing view
src/views/BriefingView.tsx - Verification view
src/views/VerifyView.tsx
Other components
- Weather analyst
Connections 40
- Weather analyst → Application shell: uses
README.md - Application shell → Run state: coordinates
src/App.tsx - Application shell → Chart view: routes to
src/App.tsx - Application shell → Memory view: routes to
src/App.tsx - Application shell → Scenario Lab view: routes to
src/App.tsx - Application shell → Briefing view: routes to
src/App.tsx - Application shell → Verification view: routes to
src/App.tsx - Application shell → Shareable URL state: syncs state
src/App.tsx - Run state → Worker client: requests run
src/state/store.ts - Worker client → Engine worker: dispatches work
src/worker/client.ts - Engine worker → Field-to-event run: runs
src/worker/engine.worker.ts - Engine worker → Ensemble forecast: requests ensemble
src/worker/engine.worker.ts - Engine worker → Event memory: requests archive
src/worker/engine.worker.ts - Engine worker → Analog search: requests analogs
src/worker/engine.worker.ts - Engine worker → Probability cone: requests cone
src/worker/engine.worker.ts - Engine worker → Scenario attribution: requests scenario
src/worker/engine.worker.ts - Engine worker → Ensemble member worker: dispatches members
src/worker/engine.worker.ts - Field-to-event run → Synthetic atmosphere: uses model
README.md - Field-to-event run → Seasonal climate: uses climate
src/engine/run.ts - Field-to-event run → Event detection: detects events
src/engine/run.ts - Field-to-event run → Event tracking: tracks detections
src/engine/run.ts - Field-to-event run → Event enrichment: enriches tracks
src/engine/run.ts - Event enrichment → Event DNA: fingerprints events
src/engine/events.ts - Event memory → Synthetic atmosphere: simulates seasons
README.md - Analog search → Event memory: searches memory
src/engine/analogs.ts - Ensemble forecast → Field-to-event run: runs members
src/engine/ensemble.ts - Ensemble member worker → Ensemble forecast: computes members
src/worker/member.worker.ts - Probability cone → Ensemble forecast: summarizes members
src/engine/cone.ts - Scenario attribution → Synthetic atmosphere: varies conditions
README.md - Briefing and alerts → Analog search: uses analogs
src/engine/intel/briefing.ts - Briefing and alerts → Probability cone: uses forecast
src/engine/intel/briefing.ts - Briefing and alerts → Decision clock: uses decisions
src/engine/intel/briefing.ts - Briefing view → Decision clock: shows warnings
README.md - Chart view → Weather map: renders map
src/views/ChartView.tsx - Weather map → Probability cone: renders cone
src/map/MapView.tsx - Memory view → Event memory: browses memory
src/views/MemoryView.tsx - Memory view → Analog search: shows relatives
src/views/MemoryView.tsx - Scenario Lab view → Scenario attribution: runs scenarios
src/views/ScenarioView.tsx - Briefing view → Briefing and alerts: presents intelligence
README.md - Verification view → Engine worker: requests scores