# pwards-weather/monwatch-cli architecture

> Architecture diagram of the GitHub repository pwards-weather/monwatch-cli, 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-cli
- Repository: https://github.com/pwards-weather/monwatch-cli

## Overview

MonWatch-CLI is a server-oriented command-line system for generating storm- or region-centered satellite imagery and radar views. The principal workflow starts with CLI options, resolves a storm or region and observation time, obtains satellite or radar data, then creates composites and exports images or animations. The README also documents track sources, agency styles, JPSS platforms, and specialty viewing modes. The entry point and several ingest modules were only partially excerpted; unverified internal calls are therefore omitted, while documented capabilities are identified through README-backed relationships.

Main entry points: [`MonWatch-CLI.py`](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/MonWatch-CLI.py) (CLI Orchestrator), [`rem_ingest/common.py`](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/common.py) (Satellite Shared Utilities), [`rem_ingest/jpss.py`](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/jpss.py) (JPSS VIIRS), [`rem_ingest/_rgb_corrections.py`](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/_rgb_corrections.py) (RGB Corrections)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["CLI Workflow"]
  node_entry["CLI Orchestrator<br/>[MonWatch-CLI.py]"]
  node_targeting["Storm And Region Targeting<br/>[MonWatch-CLI.py]"]
  node_products["Composite Rendering<br/>[MonWatch-CLI.py]"]
  node_exports["Image And Video Export<br/>[MonWatch-CLI.py]"]
end

subgraph group_satellite["Satellite Ingest"]
  node_geo_sat["Geostationary Satellites"]
  node_himawari["Himawari AHI<br/>[himawari.py]"]
  node_gk2a["GK-2A AMI<br/>[gk2a.py]"]
  node_goes["GOES ABI<br/>[goes.py]"]
  node_mtg["MTG FCI<br/>[mtg.py]"]
  node_mtsat["MTSAT HRIT<br/>[mtsat.py]"]
  node_jpss["JPSS VIIRS<br/>[jpss.py]"]
  node_jpss_shared["JPSS Shared Helpers<br/>[jpss_common.py]"]
  node_jpss_pds["JPSS PDS Access<br/>[jpss_pds.py]"]
  node_jpss_class["JPSS CLASS Access<br/>[jpss_class.py]"]
  node_sat_common["Satellite Shared Utilities<br/>[common.py]"]
  node_rgb["RGB Corrections"]
end

subgraph group_ground["Ground Data"]
  node_radar["Radar And Ground Ingest<br/>[garbinradar.py]"]
  node_panahon["PAGASA Panahon<br/>[phradar.py]"]
  node_other_ground["Additional Ground Sources"]
end

subgraph group_trackstyle["Tracks And Styles"]
  node_tracks["Agency Track Ingest"]
  node_styles["Agency Image Styles"]
  node_track_styles["Track Drawing Styles"]
end

subgraph group_forecast["Forecast Backends"]
  node_forecast_models["NWP Backends"]
end

node_operator(("CLI User"))
node_satellite_services[("Satellite Data Services")]
node_storm_services["Track Data Services"]
node_radar_services["Radar Services"]

node_operator -->|"runs"| node_entry
node_entry -->|"resolves targets"| node_targeting
node_entry -->|"selects imagery"| node_geo_sat
node_entry -->|"selects JPSS"| node_jpss
node_entry -->|"requests radar"| node_radar
node_entry -->|"requests radar"| node_panahon
node_entry -->|"generates composites"| node_products
node_products -->|"exports results"| node_exports
node_targeting -->|"uses live or historical tracks"| node_storm_services
node_geo_sat -.->|"discovers and downloads"| node_satellite_services
node_jpss -->|"uses helpers"| node_jpss_shared
node_jpss -->|"uses PDS access"| node_jpss_pds
node_jpss -->|"uses CLASS access"| node_jpss_class
node_jpss_shared -->|"uses utilities"| node_sat_common
node_jpss_pds -->|"uses helpers"| node_jpss_shared
node_himawari -->|"uses utilities"| node_sat_common
node_gk2a -->|"uses utilities"| node_sat_common
node_goes -->|"uses utilities"| node_sat_common
node_mtg -->|"uses utilities"| node_sat_common
node_mtsat -->|"uses utilities"| node_sat_common
node_himawari -->|"applies corrections"| node_rgb
node_gk2a -->|"uses corrections"| node_rgb
node_goes -->|"uses corrections"| node_rgb
node_mtg -->|"uses corrections"| node_rgb
node_panahon -->|"references radar ingest"| node_radar
node_panahon -->|"fetches radar frames"| node_radar_services
node_tracks -->|"ingests track data"| node_storm_services
node_entry -.->|"uses track sources"| node_tracks
node_products -.->|"supports agency styles"| node_styles
node_products -.->|"supports track styles"| node_track_styles
node_forecast_models -.->|"future integration"| node_entry

click node_entry "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/MonWatch-CLI.py"
click node_targeting "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/MonWatch-CLI.py"
click node_products "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/MonWatch-CLI.py"
click node_exports "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/MonWatch-CLI.py"
click node_geo_sat "https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/rem_ingest"
click node_himawari "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/himawari.py"
click node_gk2a "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/gk2a.py"
click node_goes "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/goes.py"
click node_mtg "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/mtg.py"
click node_mtsat "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/mtsat.py"
click node_jpss "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/jpss.py"
click node_jpss_shared "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/jpss_common.py"
click node_jpss_pds "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/jpss_pds.py"
click node_jpss_class "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/jpss_class.py"
click node_sat_common "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/common.py"
click node_rgb "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/_rgb_corrections.py"
click node_radar "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/gro_ingest/garbinradar.py"
click node_panahon "https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/gro_ingest/phradar.py"
click node_other_ground "https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/gro_ingest"
click node_tracks "https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/tracks"
click node_styles "https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/styles"
click node_track_styles "https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/track_style"
click node_forecast_models "https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/forecast"

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_entry,node_targeting,node_products,node_exports,node_operator toneBlue
class node_geo_sat,node_himawari,node_gk2a,node_goes,node_mtg,node_mtsat,node_jpss,node_jpss_shared,node_jpss_pds,node_jpss_class,node_sat_common,node_rgb,node_satellite_services toneAmber
class node_radar,node_panahon,node_other_ground toneMint
class node_tracks,node_styles,node_track_styles toneRose
class node_forecast_models,node_storm_services,node_radar_services toneIndigo
```

## Components

### CLI Workflow

- [CLI Orchestrator](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/MonWatch-CLI.py): `MonWatch-CLI.py`
- [Storm And Region Targeting](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/MonWatch-CLI.py): `MonWatch-CLI.py`
- [Composite Rendering](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/MonWatch-CLI.py): `MonWatch-CLI.py`
- [Image And Video Export](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/MonWatch-CLI.py): `MonWatch-CLI.py`

### Satellite Ingest

- [Geostationary Satellites](https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/rem_ingest): `rem_ingest`
- [Himawari AHI](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/himawari.py): `rem_ingest/himawari.py`
- [GK-2A AMI](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/gk2a.py): `rem_ingest/gk2a.py`
- [GOES ABI](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/goes.py): `rem_ingest/goes.py`
- [MTG FCI](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/mtg.py): `rem_ingest/mtg.py`
- [MTSAT HRIT](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/mtsat.py): `rem_ingest/mtsat.py`
- [JPSS VIIRS](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/jpss.py): `rem_ingest/jpss.py`
- [JPSS Shared Helpers](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/jpss_common.py): `rem_ingest/jpss_common.py`
- [JPSS PDS Access](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/jpss_pds.py): `rem_ingest/jpss_pds.py`
- [JPSS CLASS Access](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/jpss_class.py): `rem_ingest/jpss_class.py`
- [Satellite Shared Utilities](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/common.py): `rem_ingest/common.py`
- [RGB Corrections](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/rem_ingest/_rgb_corrections.py): `rem_ingest/_rgb_corrections.py`

### Ground Data

- [Radar And Ground Ingest](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/gro_ingest/garbinradar.py): `gro_ingest/garbinradar.py`
- [PAGASA Panahon](https://github.com/pwards-weather/monwatch-cli/blob/MonWatch-CLI-Version_1.4/gro_ingest/phradar.py): `gro_ingest/phradar.py`
- [Additional Ground Sources](https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/gro_ingest): `gro_ingest`

### Tracks And Styles

- [Agency Track Ingest](https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/tracks): `tracks`
- [Agency Image Styles](https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/styles): `styles`
- [Track Drawing Styles](https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/track_style): `track_style`

### Forecast Backends

- [NWP Backends](https://github.com/pwards-weather/monwatch-cli/tree/MonWatch-CLI-Version_1.4/forecast): `forecast`

### Other components

- **CLI User**
- **Satellite Data Services**
- **Track Data Services**
- **Radar Services**

## Connections

- CLI User → CLI Orchestrator: runs (evidence: `README.md`)
- CLI Orchestrator → Storm And Region Targeting: resolves targets (evidence: `README.md`)
- CLI Orchestrator → Geostationary Satellites: selects imagery (evidence: `MonWatch-CLI.py`)
- CLI Orchestrator → JPSS VIIRS: selects JPSS (evidence: `MonWatch-CLI.py`)
- CLI Orchestrator → Radar And Ground Ingest: requests radar (evidence: `MonWatch-CLI.py`)
- CLI Orchestrator → PAGASA Panahon: requests radar (evidence: `MonWatch-CLI.py`)
- CLI Orchestrator → Composite Rendering: generates composites (evidence: `README.md`)
- Composite Rendering → Image And Video Export: exports results (evidence: `README.md`)
- Storm And Region Targeting → Track Data Services: uses live or historical tracks (evidence: `README.md`)
- Geostationary Satellites → Satellite Data Services: discovers and downloads
- JPSS VIIRS → JPSS Shared Helpers: uses helpers (evidence: `rem_ingest/jpss.py`)
- JPSS VIIRS → JPSS PDS Access: uses PDS access (evidence: `rem_ingest/jpss.py`)
- JPSS VIIRS → JPSS CLASS Access: uses CLASS access (evidence: `rem_ingest/jpss.py`)
- JPSS Shared Helpers → Satellite Shared Utilities: uses utilities (evidence: `rem_ingest/jpss_common.py`)
- JPSS PDS Access → JPSS Shared Helpers: uses helpers (evidence: `rem_ingest/jpss_pds.py`)
- Himawari AHI → Satellite Shared Utilities: uses utilities (evidence: `rem_ingest/himawari.py`)
- GK-2A AMI → Satellite Shared Utilities: uses utilities (evidence: `rem_ingest/gk2a.py`)
- GOES ABI → Satellite Shared Utilities: uses utilities (evidence: `rem_ingest/goes.py`)
- MTG FCI → Satellite Shared Utilities: uses utilities (evidence: `rem_ingest/mtg.py`)
- MTSAT HRIT → Satellite Shared Utilities: uses utilities (evidence: `rem_ingest/mtsat.py`)
- Himawari AHI → RGB Corrections: applies corrections (evidence: `rem_ingest/himawari.py`)
- GK-2A AMI → RGB Corrections: uses corrections (evidence: `rem_ingest/gk2a.py`)
- GOES ABI → RGB Corrections: uses corrections (evidence: `rem_ingest/goes.py`)
- MTG FCI → RGB Corrections: uses corrections (evidence: `rem_ingest/mtg.py`)
- PAGASA Panahon → Radar And Ground Ingest: references radar ingest (evidence: `gro_ingest/phradar.py`)
- PAGASA Panahon → Radar Services: fetches radar frames (evidence: `README.md`)
- Agency Track Ingest → Track Data Services: ingests track data (evidence: `README.md`)
- CLI Orchestrator → Agency Track Ingest: uses track sources
- Composite Rendering → Agency Image Styles: supports agency styles
- Composite Rendering → Track Drawing Styles: supports track styles
- NWP Backends → CLI Orchestrator: future integration
