# pwards-weather/monwatch-ui architecture

> Architecture diagram of the GitHub repository pwards-weather/monwatch-ui, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pwards-weather/monwatch-ui
- Repository: https://github.com/pwards-weather/monwatch-ui

## Overview

MonWatch-UI is a desktop satellite-imagery analysis workstation with meteorological data processing and tropical-cyclone situational-awareness tools. A principal workflow is to select or load satellite scenes, parse and render bands or composites, inspect them with geospatial and weather overlays, then animate or export results. Separate branches cover cyclone forecasts and alerts, climate products, data acquisition, and broadcast animation. The graph includes the sampled engine, parser, worker, and forecast-label layers; some controller wiring and unsampled subsystems are represented only where the README documents their capabilities.

Main entry points: [`src/core/Engine.py`](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/core/Engine.py) (Satellite Engines), [`src/UI.py`](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/UI.py) (Workstation UI), [`src/controllers/satellite_controller.py`](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/satellite_controller.py) (Scene Controls), [`src/controllers/forecast_controller.py`](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/forecast_controller.py) (Forecast Tracks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_satellite["Satellite Imagery"]
  node_ui["Workstation UI<br/>[UI.py]"]
  node_satcontroller["Scene Controls"]
  node_satclients["Satellite Sources"]
  node_satparsers["Scene Parsers"]
  node_satengines["Satellite Engines<br/>[Engine.py]"]
  node_himproducts["Himawari Products<br/>[HIM_Products.py]"]
  node_overlays["Geospatial Overlays"]
end

subgraph group_cyclone["Cyclone Analysis"]
  node_forecast["Forecast Tracks"]
  node_forecastflow["Track Processing<br/>[shared_flow.py]"]
  node_forecastmodels["Label Algorithms<br/>[shared_models.py]"]
  node_agencies["Agency Feeds"]
end

subgraph group_tools["Weather Tools"]
  node_alerts["Weather Alerts<br/>[alert_manager.py]"]
  node_climate["Climate Products"]
  node_dataacquisition["Data Acquisition<br/>[ftp_client.py]"]
  node_conversion["HSD Conversion<br/>[bg_to_nc.py]"]
end

subgraph group_playback["Playback and Export"]
  node_animation["Animation Controls"]
  node_workers["Background Workers<br/>[core.py]"]
  node_exports["Export Formats"]
end

subgraph group_internal["Processing Internals"]
  node_uiwidgets["UI Components<br/>[components.py]"]
  node_dialogs["Dialogs<br/>[dialogs.py]"]
  node_settings["Settings<br/>[settings.py]"]
  node_readerconfig["Reader Configuration<br/>[reader_manager.py]"]
  node_netcdflock["NetCDF Read Lock<br/>[nc_lock.py]"]
  node_truecolor["True Color Recipe"]
end

node_analyst(("Analyst"))

node_analyst -->|"explores data"| node_ui
node_ui -.->|"loads scenes"| node_satcontroller
node_satcontroller -->|"selects reader"| node_satparsers
node_satcontroller -->|"configures readers"| node_readerconfig
node_satcontroller -->|"dispatches rendering"| node_satengines
node_satengines -->|"reads bands"| node_satparsers
node_satengines -->|"uses products"| node_himproducts
node_satengines -->|"serializes reads"| node_netcdflock
node_satengines -->|"builds composites"| node_truecolor
node_satclients -.->|"provides scene data"| node_satcontroller
node_analyst -->|"views forecasts"| node_forecast
node_forecast -->|"fetches tracks"| node_agencies
node_forecast -->|"processes tracks"| node_forecastflow
node_forecastflow -->|"uses label models"| node_forecastmodels
node_forecast -.->|"displays tracks"| node_overlays
node_analyst -->|"inspects overlays"| node_overlays
node_analyst -->|"monitors alerts"| node_alerts
node_alerts -->|"polls alert feeds"| node_agencies
node_analyst -->|"views climate maps"| node_climate
node_analyst -->|"browses sources"| node_dataacquisition
node_dataacquisition -.->|"converts satellite data"| node_conversion
node_analyst -->|"animates scenes"| node_animation
node_animation -->|"dispatches frames"| node_workers
node_workers -->|"renders frames"| node_satengines
node_analyst -->|"exports results"| node_exports
node_workers -->|"writes animation"| node_exports
node_ui -.->|"presents controls"| node_uiwidgets
node_ui -.->|"opens dialogs"| node_dialogs
node_ui -.->|"configures display"| node_settings

click node_ui "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/UI.py"
click node_satcontroller "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/satellite_controller.py"
click node_satclients "https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/src/clients"
click node_satparsers "https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/src/parsers"
click node_satengines "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/core/Engine.py"
click node_himproducts "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/core/HIM_Products.py"
click node_overlays "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/overlay_controller.py"
click node_forecast "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/forecast_controller.py"
click node_forecastflow "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/Process/forecast/shared_flow.py"
click node_forecastmodels "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/Process/forecast/label_placement_algorithms/shared_models.py"
click node_agencies "https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/src/clients"
click node_alerts "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/managers/alert_manager.py"
click node_climate "https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/Process/climate"
click node_dataacquisition "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/clients/ftp_client.py"
click node_conversion "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/Process/tools/bg_to_nc.py"
click node_animation "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/animation_controller.py"
click node_workers "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/workers/core.py"
click node_exports "https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/src/exporters"
click node_uiwidgets "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/ui/components.py"
click node_dialogs "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/ui/dialogs.py"
click node_settings "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/ui/settings.py"
click node_readerconfig "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/config/reader_manager.py"
click node_netcdflock "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/core/nc_lock.py"
click node_truecolor "https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/core/unidata_truecolor.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ui,node_satcontroller,node_satclients,node_satparsers,node_satengines,node_himproducts,node_overlays toneBlue
class node_forecast,node_forecastflow,node_forecastmodels,node_agencies toneAmber
class node_alerts,node_climate,node_dataacquisition,node_conversion toneMint
class node_animation,node_workers,node_exports toneRose
class node_uiwidgets,node_dialogs,node_settings,node_readerconfig,node_netcdflock,node_truecolor,node_analyst toneIndigo
```

## Components

### Satellite Imagery

- [Workstation UI](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/UI.py): `src/UI.py`
- [Scene Controls](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/satellite_controller.py): `src/controllers/satellite_controller.py`
- [Satellite Sources](https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/src/clients): `src/clients`
- [Scene Parsers](https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/src/parsers): `src/parsers`
- [Satellite Engines](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/core/Engine.py): `src/core/Engine.py`
- [Himawari Products](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/core/HIM_Products.py): `src/core/HIM_Products.py`
- [Geospatial Overlays](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/overlay_controller.py): `src/controllers/overlay_controller.py`

### Cyclone Analysis

- [Forecast Tracks](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/forecast_controller.py): `src/controllers/forecast_controller.py`
- [Track Processing](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/Process/forecast/shared_flow.py): `Process/forecast/shared_flow.py`
- [Label Algorithms](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/Process/forecast/label_placement_algorithms/shared_models.py): `Process/forecast/label_placement_algorithms/shared_models.py`
- [Agency Feeds](https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/src/clients): `src/clients`

### Weather Tools

- [Weather Alerts](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/managers/alert_manager.py): `src/managers/alert_manager.py`
- [Climate Products](https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/Process/climate): `Process/climate`
- [Data Acquisition](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/clients/ftp_client.py): `src/clients/ftp_client.py`
- [HSD Conversion](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/Process/tools/bg_to_nc.py): `Process/tools/bg_to_nc.py`

### Playback and Export

- [Animation Controls](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/controllers/animation_controller.py): `src/controllers/animation_controller.py`
- [Background Workers](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/workers/core.py): `src/workers/core.py`
- [Export Formats](https://github.com/pwards-weather/monwatch-ui/tree/Cyclone-3.0.5.1/src/exporters): `src/exporters`

### Processing Internals

- [UI Components](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/ui/components.py): `src/ui/components.py`
- [Dialogs](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/ui/dialogs.py): `src/ui/dialogs.py`
- [Settings](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/ui/settings.py): `src/ui/settings.py`
- [Reader Configuration](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/config/reader_manager.py): `src/config/reader_manager.py`
- [NetCDF Read Lock](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/core/nc_lock.py): `src/core/nc_lock.py`
- [True Color Recipe](https://github.com/pwards-weather/monwatch-ui/blob/Cyclone-3.0.5.1/src/core/unidata_truecolor.py): `src/core/unidata_truecolor.py`

### Other components

- **Analyst**

## Connections

- Analyst → Workstation UI: explores data
- Workstation UI → Scene Controls: loads scenes
- Scene Controls → Scene Parsers: selects reader (evidence: `src/controllers/satellite_controller.py`)
- Scene Controls → Reader Configuration: configures readers (evidence: `src/controllers/satellite_controller.py`)
- Scene Controls → Satellite Engines: dispatches rendering (evidence: `src/controllers/satellite_controller.py`)
- Satellite Engines → Scene Parsers: reads bands (evidence: `src/core/Engine.py`)
- Satellite Engines → Himawari Products: uses products
- Satellite Engines → NetCDF Read Lock: serializes reads (evidence: `src/core/Engine.py`)
- Satellite Engines → True Color Recipe: builds composites (evidence: `src/core/Engine.py`)
- Satellite Sources → Scene Controls: provides scene data
- Analyst → Forecast Tracks: views forecasts
- Forecast Tracks → Agency Feeds: fetches tracks (evidence: `src/controllers/forecast_controller.py`)
- Forecast Tracks → Track Processing: processes tracks
- Track Processing → Label Algorithms: uses label models (evidence: `Process/forecast/shared_flow.py`)
- Forecast Tracks → Geospatial Overlays: displays tracks
- Analyst → Geospatial Overlays: inspects overlays
- Analyst → Weather Alerts: monitors alerts
- Weather Alerts → Agency Feeds: polls alert feeds (evidence: `src/managers/alert_manager.py`)
- Analyst → Climate Products: views climate maps
- Analyst → Data Acquisition: browses sources
- Data Acquisition → HSD Conversion: converts satellite data
- Analyst → Animation Controls: animates scenes
- Animation Controls → Background Workers: dispatches frames (evidence: `src/controllers/animation_controller.py`)
- Background Workers → Satellite Engines: renders frames (evidence: `src/workers/core.py`)
- Analyst → Export Formats: exports results
- Background Workers → Export Formats: writes animation (evidence: `src/workers/core.py`)
- Workstation UI → UI Components: presents controls
- Workstation UI → Dialogs: opens dialogs
- Workstation UI → Settings: configures display
