How biswalanish2005-ops/precap works
PreCAP is an aviation safety research dashboard: it ingests live or simulated aircraft telemetry, filters nearby pairs, computes encounter geometry, predicts loss-of-separation risk with a five-model jury, and presents ranked encounters on an interactive radar. The graph also includes the supporting OpenSky API service and the documented offline model-research capability. Some app and service implementation excerpts are incomplete, so links for those flows rely on README documentation rather than claims about unseen code.
Main entry points: app.py Operations Dashboard · opensky.py Live Data Source · opensky_service.py OpenSky Service · cpa.py CPA Kinematics
Components 15
Telemetry Ingestion
- Live Data Source
backend/data_sources/opensky.py - Traffic Simulator
backend/data_sources/simulator.py - Flight API
server.py - OpenSky Service
backend/opensky_service.py
Encounter Analysis
- Proximity Filter
backend/spatial.py - CPA Kinematics
backend/cpa.py - Feature Engineering
backend/features.py - Thresholds & Presets
backend/config.py
Prediction & Risk
- Five-Model Jury
backend/inference.py - Risk Evaluation
backend/evaluator.py - Offline Model Metrics
models/eval_metrics.json
Operations Interface
- Operations Dashboard
app.py - Interactive Radar
backend/radar_component.py
Other components
- Operations User
- OpenSky Network
Connections 19
- Operations User → Operations Dashboard: uses
README.md - Operations Dashboard → Live Data Source: selects telemetry
README.md - Operations Dashboard → Traffic Simulator: selects simulation
app.py - Live Data Source → Flight API: requests flights
backend/data_sources/opensky.py - Flight API → OpenSky Service: fetches flights
server.py - Live Data Source → OpenSky Service: falls back to
backend/data_sources/opensky.py - OpenSky Service → OpenSky Network: fetches telemetry
backend/opensky_service.py - Operations Dashboard → Proximity Filter: filters pairs
README.md - Operations Dashboard → CPA Kinematics: computes approach
README.md - Operations Dashboard → Feature Engineering: extracts features
README.md - Operations Dashboard → Five-Model Jury: runs predictions
README.md - Operations Dashboard → Risk Evaluation: ranks conflicts
README.md - Five-Model Jury → Risk Evaluation: supplies predictions
- Operations Dashboard → Interactive Radar: renders airspace
app.py - Operations Dashboard → Offline Model Metrics: shows research metrics
README.md - Operations Dashboard → Thresholds & Presets: uses thresholds
app.py - Proximity Filter → Thresholds & Presets: uses thresholds
backend/spatial.py - CPA Kinematics → Thresholds & Presets: uses horizons
backend/cpa.py - Feature Engineering → CPA Kinematics: uses CPA values
backend/features.py