# 13dinospap13/thermos architecture

> Architecture diagram of the GitHub repository 13dinospap13/thermos, 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/13dinospap13/thermos
- Repository: https://github.com/13dinospap13/thermos

## Overview

Thermos is an R package for bioclimatic preprocessing and thermal-comfort simulation, with a GUI over reusable scientific functions. The documented workflow is land-cover rasterization, Sky View Factor calculation, then thermal analysis; the GUI also supports thermal analysis from existing rasters. Input checking is a separate documented capability. Source excerpts were unavailable, so relationships below rely on README statements; implementation details and unshown calls are omitted.

Main entry points: [`R`](https://github.com/13dinospap13/thermos/tree/main/R) (Pipeline orchestration), [`R/thermos-gui.R`](https://github.com/13dinospap13/thermos/blob/main/R/thermos-gui.R) (Thermos GUI), [`R/thermos-thermal.R`](https://github.com/13dinospap13/thermos/blob/main/R/thermos-thermal.R) (Thermal comfort), [`R/thermos-validation.R`](https://github.com/13dinospap13/thermos/blob/main/R/thermos-validation.R) (Input checking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_gui["Thermos GUI<br/>[thermos-gui.R]"]
end

subgraph group_workflow["Analysis workflow"]
  node_pipeline["Pipeline orchestration"]
  node_rasterize["Land-cover rasterization"]
  node_svf["Sky View Factor<br/>[thermos-svf.R]"]
  node_thermal["Thermal comfort<br/>[thermos-thermal.R]"]
end

subgraph group_inputs["Input preparation"]
  node_input_check["Input checking"]
end

subgraph group_outputs["Analysis results"]
  node_project_outputs[("Project output folders")]
end

node_user(("User"))
node_source_data["Source datasets"]

node_user -->|"launches"| node_gui
node_user -->|"checks inputs"| node_input_check
node_source_data -->|"validates"| node_input_check
node_gui -->|"launches full pipeline"| node_pipeline
node_gui -->|"runs existing rasters"| node_thermal
node_pipeline -->|"runs first"| node_rasterize
node_pipeline -->|"runs second"| node_svf
node_pipeline -->|"runs third"| node_thermal
node_pipeline -->|"writes analysis"| node_project_outputs

click node_gui "https://github.com/13dinospap13/thermos/blob/main/R/thermos-gui.R"
click node_input_check "https://github.com/13dinospap13/thermos/blob/main/R/thermos-validation.R"
click node_pipeline "https://github.com/13dinospap13/thermos/tree/main/R"
click node_rasterize "https://github.com/13dinospap13/thermos/blob/main/R/thermos-rasterize.R"
click node_svf "https://github.com/13dinospap13/thermos/blob/main/R/thermos-svf.R"
click node_thermal "https://github.com/13dinospap13/thermos/blob/main/R/thermos-thermal.R"

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_gui,node_user toneBlue
class node_pipeline,node_rasterize,node_svf,node_thermal toneAmber
class node_input_check toneMint
class node_project_outputs toneRose
class node_source_data toneIndigo
```

## Components

### User interface

- [Thermos GUI](https://github.com/13dinospap13/thermos/blob/main/R/thermos-gui.R): `R/thermos-gui.R`

### Analysis workflow

- [Pipeline orchestration](https://github.com/13dinospap13/thermos/tree/main/R): `R`
- [Land-cover rasterization](https://github.com/13dinospap13/thermos/blob/main/R/thermos-rasterize.R): `R/thermos-rasterize.R`
- [Sky View Factor](https://github.com/13dinospap13/thermos/blob/main/R/thermos-svf.R): `R/thermos-svf.R`
- [Thermal comfort](https://github.com/13dinospap13/thermos/blob/main/R/thermos-thermal.R): `R/thermos-thermal.R`

### Input preparation

- [Input checking](https://github.com/13dinospap13/thermos/blob/main/R/thermos-validation.R): `R/thermos-validation.R`

### Analysis results

- **Project output folders**

### Other components

- **User**
- **Source datasets**

## Connections

- User → Thermos GUI: launches (evidence: `README.md`)
- User → Input checking: checks inputs (evidence: `README.md`)
- Source datasets → Input checking: validates (evidence: `README.md`)
- Thermos GUI → Pipeline orchestration: launches full pipeline (evidence: `README.md`)
- Thermos GUI → Thermal comfort: runs existing rasters (evidence: `README.md`)
- Pipeline orchestration → Land-cover rasterization: runs first (evidence: `README.md`)
- Pipeline orchestration → Sky View Factor: runs second (evidence: `README.md`)
- Pipeline orchestration → Thermal comfort: runs third (evidence: `README.md`)
- Pipeline orchestration → Project output folders: writes analysis (evidence: `README.md`)
