# svianaj/tactusharpverif architecture

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

- Interactive diagram: https://gitdiagram.com/svianaj/tactusharpverif
- Repository: https://github.com/svianaj/tactusharpverif

## Overview

Tactusharpverif is a Tactus plugin for station-based HARP forecast verification. Its principal workflow is an ecFlow suite that waits for forecast observations, links experiment and reference FCTABLES, runs HARP verification, then archives available results to ECFS. Configuration helpers validate run settings and prepare HARP inputs; templates select deterministic or ensemble parameters. The README also documents serial and per-parameter parallel runs and optional R-environment activation. Arrows reflect the sampled suite/task code and README; external data stores and HARP are shown as dependencies, not inspected implementations.

Main entry points: [`tasks/verification.py`](https://github.com/svianaj/tactusharpverif/blob/main/tasks/verification.py) (Run verification), [`suites/tactusharpverif_suite.py`](https://github.com/svianaj/tactusharpverif/blob/main/suites/tactusharpverif_suite.py) (ecFlow suite), [`tasks/linkobsfctables.py`](https://github.com/svianaj/tactusharpverif/blob/main/tasks/linkobsfctables.py) (Link FCTABLES), [`tasks/filesave.py`](https://github.com/svianaj/tactusharpverif/blob/main/tasks/filesave.py) (Archive results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Suite orchestration"]
  node_suite["ecFlow suite"]
  node_link["Link FCTABLES<br/>[linkobsfctables.py]"]
end

subgraph group_inputs["Inputs and configuration"]
  node_config["Run configuration<br/>[methods.py]"]
  node_param_templates["Parameter sets"]
  node_experiment_tables[("Experiment FCTABLES")]
  node_reference_tables[("Reference FCTABLES")]
  node_observations[("Station observations")]
end

subgraph group_verification["Verification execution"]
  node_verify["Run verification<br/>[verification.py]"]
  node_harp["HARP point verification"]
  node_r_environment["R environment"]
end

subgraph group_outputs["Results and archive"]
  node_save["Archive results<br/>[filesave.py]"]
  node_local_results[("RDS and plots")]
  node_ecfs[("ECFS archive")]
end

node_operator(("Tactus user"))

node_operator -->|"launches"| node_suite
node_suite -->|"schedules"| node_link
node_suite -->|"dispatches"| node_verify
node_suite -->|"schedules"| node_save
node_link -->|"uses settings"| node_config
node_verify -->|"prepares inputs"| node_config
node_save -->|"uses archive helpers"| node_config
node_config -->|"selects parameters"| node_param_templates
node_link -->|"links tables"| node_experiment_tables
node_link -->|"links tables"| node_reference_tables
node_verify -->|"checks files"| node_observations
node_verify -->|"runs script"| node_harp
node_verify -.->|"activates"| node_r_environment
node_harp -->|"writes results"| node_local_results
node_save -->|"reads results"| node_local_results
node_save -->|"copies files"| node_ecfs

click node_suite "https://github.com/svianaj/tactusharpverif/blob/main/suites/tactusharpverif_suite.py"
click node_link "https://github.com/svianaj/tactusharpverif/blob/main/tasks/linkobsfctables.py"
click node_verify "https://github.com/svianaj/tactusharpverif/blob/main/tasks/verification.py"
click node_save "https://github.com/svianaj/tactusharpverif/blob/main/tasks/filesave.py"
click node_config "https://github.com/svianaj/tactusharpverif/blob/main/methods.py"
click node_param_templates "https://github.com/svianaj/tactusharpverif/tree/main/templates"

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_suite,node_link,node_operator toneBlue
class node_config,node_param_templates,node_experiment_tables,node_reference_tables,node_observations toneAmber
class node_verify,node_harp,node_r_environment toneMint
class node_save,node_local_results,node_ecfs toneRose
```

## Components

### Suite orchestration

- [ecFlow suite](https://github.com/svianaj/tactusharpverif/blob/main/suites/tactusharpverif_suite.py): `suites/tactusharpverif_suite.py`
- [Link FCTABLES](https://github.com/svianaj/tactusharpverif/blob/main/tasks/linkobsfctables.py): `tasks/linkobsfctables.py`

### Inputs and configuration

- [Run configuration](https://github.com/svianaj/tactusharpverif/blob/main/methods.py): `methods.py`
- [Parameter sets](https://github.com/svianaj/tactusharpverif/tree/main/templates): `templates`
- **Experiment FCTABLES**
- **Reference FCTABLES**
- **Station observations**

### Verification execution

- [Run verification](https://github.com/svianaj/tactusharpverif/blob/main/tasks/verification.py): `tasks/verification.py`
- **HARP point verification**
- **R environment**

### Results and archive

- [Archive results](https://github.com/svianaj/tactusharpverif/blob/main/tasks/filesave.py): `tasks/filesave.py`
- **RDS and plots**
- **ECFS archive**

### Other components

- **Tactus user**

## Connections

- Tactus user → ecFlow suite: launches (evidence: `README.md`)
- ecFlow suite → Link FCTABLES: schedules (evidence: `suites/tactusharpverif_suite.py`)
- ecFlow suite → Run verification: dispatches (evidence: `suites/tactusharpverif_suite.py`)
- ecFlow suite → Archive results: schedules (evidence: `suites/tactusharpverif_suite.py`)
- Link FCTABLES → Run configuration: uses settings (evidence: `tasks/linkobsfctables.py`)
- Run verification → Run configuration: prepares inputs (evidence: `tasks/verification.py`)
- Archive results → Run configuration: uses archive helpers (evidence: `tasks/filesave.py`)
- Run configuration → Parameter sets: selects parameters (evidence: `methods.py`)
- Link FCTABLES → Experiment FCTABLES: links tables (evidence: `tasks/linkobsfctables.py`)
- Link FCTABLES → Reference FCTABLES: links tables (evidence: `tasks/linkobsfctables.py`)
- Run verification → Station observations: checks files (evidence: `tasks/verification.py`)
- Run verification → HARP point verification: runs script (evidence: `tasks/verification.py`)
- Run verification → R environment: activates (evidence: `tasks/verification.py`)
- HARP point verification → RDS and plots: writes results (evidence: `README.md`)
- Archive results → RDS and plots: reads results (evidence: `tasks/filesave.py`)
- Archive results → ECFS archive: copies files (evidence: `tasks/filesave.py`)
