How majimety/atmos-atacama-telescope-monitoring-and-operations-system works
ATMOS is a browser-based observatory monitoring and operations simulator. Operators view live array telemetry and alerts, inspect the 3D array and interferometry displays, and use control and scheduling panels. The backend simulates antenna state and atmospheric conditions, exposes APIs and a telemetry WebSocket, and can persist frames to InfluxDB. Edges reflect the shown imports, calls, and README descriptions; unsampled UI and runtime wiring is not inferred.
Main entry points: App.jsx Dashboard shell · alma_sim.py Array simulation · main.py FastAPI application · telemetry.py Telemetry broadcaster
Components 29
Operator interface
- Dashboard shell
client/src/App.jsx - Telemetry connection
client/src/hooks/useWebSocket.js - Telemetry state
client/src/store/telemetryStore.js - Alert detection
client/src/store/alertEngine.js - Alert state and feed
client/src/store/alertStore.js - 3D array scene
client/src/three/Scene.jsx - Antenna models
client/src/three/DishMesh.jsx - Control panel
client/src/components/ControlPanel.jsx - Scheduler panel
client/src/components/SchedulerPanel.jsx - Interferometry displays
client/src/components/UVCoveragePlot.jsx - Baseline correlator
client/src/components/BaselineCorrelator.jsx
API and telemetry
- FastAPI application
server/main.py - Telemetry broadcaster
server/app/ws/telemetry.py - Telescope control API
server/app/api/control.py - Scheduler API
server/app/api/scheduler.py - Observation queue
server/app/obs_queue.py - Atmosphere API
server/app/api/atmosphere.py
Observatory simulation
- Array simulation
server/app/simulation/alma_sim.py - Array positions
server/app/simulation/alma_positions.py - Pointing dynamics
server/app/simulation/pointing_sim.py - Tsys models
server/app/simulation/physics_models.py - Atmosphere acquisition
server/app/simulation/weather_fetcher.py
Access control
- Session state
client/src/store/auth.js - Login page
client/src/pages/LoginPage.jsx - JWT and role checks
server/auth.py
External integrations
- Time-series writer
server/influx_writer.py - InfluxDB
- Open-Meteo
Other components
- Operator
Connections 35
- Operator → Dashboard shell: uses
- Dashboard shell → Telemetry connection: opens connection
client/src/App.jsx - Dashboard shell → Telemetry state: reads state
client/src/App.jsx - Dashboard shell → Alert detection: detects alerts
client/src/App.jsx - Dashboard shell → Alert state and feed: reads alerts
client/src/App.jsx - Dashboard shell → 3D array scene: renders
client/src/App.jsx - Dashboard shell → Control panel: renders
client/src/App.jsx - Dashboard shell → Scheduler panel: renders
client/src/App.jsx - Alert detection → Alert state and feed: raises alerts
client/src/hooks/useTelemetry.js - 3D array scene → Antenna models: renders
client/src/three/Scene.jsx - Login page → Session state: authenticates
client/src/pages/LoginPage.jsx - Scheduler panel → Telemetry state: reads state
client/src/components/SchedulerPanel.jsx - Scheduler panel → Session state: checks role
client/src/components/SchedulerPanel.jsx - Interferometry displays → Telemetry state: reads state
client/src/components/UVCoveragePlot.jsx - Baseline correlator → Telemetry state: reads state
- FastAPI application → Telemetry broadcaster: routes WebSocket
server/main.py - FastAPI application → Telescope control API: registers routes
server/main.py - FastAPI application → Scheduler API: registers routes
server/main.py - FastAPI application → Atmosphere API: registers routes
server/main.py - Telemetry broadcaster → Array simulation: gets snapshots
server/app/ws/telemetry.py - Telemetry broadcaster → Observation queue: advances queue
server/app/ws/telemetry.py - Telemetry broadcaster → Time-series writer: writes frames
server/app/ws/telemetry.py - Telescope control API → Array simulation: commands array
server/app/api/control.py - Telescope control API → Pointing dynamics: commands pointing
server/app/api/control.py - Scheduler API → Observation queue: manages jobs
server/app/api/scheduler.py - Atmosphere API → Atmosphere acquisition: gets weather
server/app/api/atmosphere.py - Atmosphere API → Array simulation: gets simulation data
- Array simulation → Array positions: builds array
server/app/simulation/alma_sim.py - Array simulation → Atmosphere acquisition: fetches conditions
server/app/simulation/alma_sim.py - Array simulation → Tsys models: computes Tsys
server/app/simulation/alma_sim.py - Array simulation → Pointing dynamics: updates pointing
server/app/simulation/alma_sim.py - Atmosphere acquisition → Open-Meteo: fetches weather
server/app/simulation/weather_fetcher.py - Time-series writer → InfluxDB: writes points
server/influx_writer.py - FastAPI application → JWT and role checks: uses role checks
server/main.py - Session state → JWT and role checks: requests JWT
client/src/store/auth.js