# sede-open/synthoseis architecture

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

- Interactive diagram: https://gitdiagram.com/sede-open/synthoseis
- Repository: https://github.com/sede-open/synthoseis

## Overview

Synthoseis generates synthetic seismic volumes and training labels from randomized geological scenarios. The principal workflow loads run parameters, builds horizons and facies, constructs and faults a geomodel, identifies and fills closures, calculates rock properties, then produces and augments seismic outputs. A web dashboard configures and launches runs, monitors logs, and explores completed outputs. The graph also preserves API run management and the viewer/manifest branch. API internals and several generator details were not sampled, so their connections are limited to documented or indexed evidence.

Main entry points: [`main.py`](https://github.com/sede-open/synthoseis/blob/master/main.py) (Simulation entry point), [`webapp/src/App.tsx`](https://github.com/sede-open/synthoseis/blob/master/webapp/src/App.tsx) (Dashboard routing), [`webapp/src/components/RunViewer.tsx`](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/RunViewer.tsx) (Volume viewer), [`datagenerator/Faults.py`](https://github.com/sede-open/synthoseis/blob/master/datagenerator/Faults.py) (Fault modeling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Geology generation"]
  node_parameters["Run parameters<br/>[Parameters.py]"]
  node_horizons["Horizon stack<br/>[Horizons.py]"]
  node_geomodel["Geologic model<br/>[Geomodels.py]"]
  node_faults["Fault modeling<br/>[Faults.py]"]
  node_salt["Salt structures<br/>[Salt.py]"]
  node_closures["Closure detection<br/>[Closures.py]"]
  node_output["Volume output<br/>[output_writer.py]"]
  node_runner["Simulation entry point<br/>[main.py]"]
end

subgraph group_physics["Rock physics and seismic"]
  node_rock["Rock properties"]
  node_rpm["Rock model interface<br/>[rpm_abc.py]"]
  node_seismic["Seismic synthesis<br/>[Seismic.py]"]
  node_augmentation["Seismic augmentation<br/>[Augmentation.py]"]
end

subgraph group_service["Dashboard service"]
  node_api["REST API<br/>[main.py]"]
  node_runmanager["Run management<br/>[run_manager.py]"]
  node_manifest["Output manifest"]
end

subgraph group_web["Web dashboard"]
  node_app["Dashboard routing<br/>[App.tsx]"]
  node_launch["Launch form<br/>[LaunchPanel.tsx]"]
  node_client["API client<br/>[client.ts]"]
  node_runs["Run list<br/>[RunsPanel.tsx]"]
  node_logs["Live logs<br/>[LogViewer.tsx]"]
  node_project["Project dashboard"]
  node_manifesthook["Manifest loader<br/>[useManifest.ts]"]
  node_viewer["Volume viewer<br/>[RunViewer.tsx]"]
  node_slice["Slice display<br/>[SliceViewer.tsx]"]
  node_colormap["Colormap selector"]
  node_zarrslice["Zarr slice loader<br/>[useZarrSlice.ts]"]
  node_metadata["Run metadata<br/>[MetadataPanel.tsx]"]
  node_volume["Volume selector<br/>[VolumeSelector.tsx]"]
end

node_user(("User"))
node_browser(("Dashboard user"))

node_user -->|"runs config"| node_runner
node_runner -->|"loads settings"| node_parameters
node_runner -->|"builds horizons"| node_horizons
node_runner -->|"builds model"| node_geomodel
node_runner -->|"applies faults"| node_faults
node_runner -->|"finds closures"| node_closures
node_runner -->|"generates seismic"| node_seismic
node_runner -->|"writes volumes"| node_output
node_horizons -->|"supplies horizons"| node_geomodel
node_geomodel -->|"provides model"| node_faults
node_faults -->|"provides faulted model"| node_closures
node_closures -->|"provides closures"| node_seismic
node_faults -->|"provides fault data"| node_seismic
node_seismic -->|"uses properties"| node_rock
node_seismic -->|"applies augmentation"| node_augmentation
node_faults -->|"integrates salt"| node_salt
node_rock -->|"implements models"| node_rpm
node_browser -->|"uses dashboard"| node_app
node_app -->|"routes launch"| node_launch
node_app -->|"routes runs"| node_runs
node_app -->|"routes logs"| node_logs
node_app -->|"routes dashboard"| node_project
node_app -->|"routes viewer"| node_viewer
node_launch -->|"submits runs"| node_client
node_runs -->|"fetches runs"| node_client
node_logs -->|"streams logs"| node_client
node_project -->|"loads manifest"| node_manifesthook
node_viewer -->|"loads manifest"| node_manifesthook
node_viewer -->|"renders slices"| node_slice
node_viewer -->|"configures colors"| node_colormap
node_viewer -->|"shows metadata"| node_metadata
node_viewer -->|"selects volume"| node_volume
node_slice -->|"loads slice data"| node_zarrslice
node_slice -->|"uses colors"| node_colormap
node_client -->|"calls endpoints"| node_api
node_manifesthook -->|"fetches manifest"| node_api
node_api -->|"delegates runs"| node_runmanager
node_api -->|"generates manifest"| node_manifest
node_runmanager -.->|"launches simulation"| node_runner

click node_parameters "https://github.com/sede-open/synthoseis/blob/master/datagenerator/Parameters.py"
click node_horizons "https://github.com/sede-open/synthoseis/blob/master/datagenerator/Horizons.py"
click node_geomodel "https://github.com/sede-open/synthoseis/blob/master/datagenerator/Geomodels.py"
click node_faults "https://github.com/sede-open/synthoseis/blob/master/datagenerator/Faults.py"
click node_salt "https://github.com/sede-open/synthoseis/blob/master/datagenerator/Salt.py"
click node_closures "https://github.com/sede-open/synthoseis/blob/master/datagenerator/Closures.py"
click node_output "https://github.com/sede-open/synthoseis/blob/master/datagenerator/output_writer.py"
click node_rock "https://github.com/sede-open/synthoseis/blob/master/rockphysics/RockPropertyModels.py"
click node_rpm "https://github.com/sede-open/synthoseis/blob/master/rockphysics/rpm_abc.py"
click node_seismic "https://github.com/sede-open/synthoseis/blob/master/datagenerator/Seismic.py"
click node_augmentation "https://github.com/sede-open/synthoseis/blob/master/datagenerator/Augmentation.py"
click node_runner "https://github.com/sede-open/synthoseis/blob/master/main.py"
click node_api "https://github.com/sede-open/synthoseis/blob/master/api/main.py"
click node_runmanager "https://github.com/sede-open/synthoseis/blob/master/api/run_manager.py"
click node_manifest "https://github.com/sede-open/synthoseis/blob/master/scripts/generate_manifest.py"
click node_app "https://github.com/sede-open/synthoseis/blob/master/webapp/src/App.tsx"
click node_launch "https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/LaunchPanel.tsx"
click node_client "https://github.com/sede-open/synthoseis/blob/master/webapp/src/api/client.ts"
click node_runs "https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/RunsPanel.tsx"
click node_logs "https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/LogViewer.tsx"
click node_project "https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/ProjectDashboard.tsx"
click node_manifesthook "https://github.com/sede-open/synthoseis/blob/master/webapp/src/hooks/useManifest.ts"
click node_viewer "https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/RunViewer.tsx"
click node_slice "https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/SliceViewer.tsx"
click node_colormap "https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/ColormapSelector.tsx"
click node_zarrslice "https://github.com/sede-open/synthoseis/blob/master/webapp/src/hooks/useZarrSlice.ts"
click node_metadata "https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/MetadataPanel.tsx"
click node_volume "https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/VolumeSelector.tsx"

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_parameters,node_horizons,node_geomodel,node_faults,node_salt,node_closures,node_output,node_runner,node_user,node_browser toneBlue
class node_rock,node_rpm,node_seismic,node_augmentation toneAmber
class node_api,node_runmanager,node_manifest toneMint
class node_app,node_launch,node_client,node_runs,node_logs,node_project,node_manifesthook,node_viewer,node_slice,node_colormap,node_zarrslice,node_metadata,node_volume toneRose
```

## Components

### Geology generation

- [Run parameters](https://github.com/sede-open/synthoseis/blob/master/datagenerator/Parameters.py): `datagenerator/Parameters.py`
- [Horizon stack](https://github.com/sede-open/synthoseis/blob/master/datagenerator/Horizons.py): `datagenerator/Horizons.py`
- [Geologic model](https://github.com/sede-open/synthoseis/blob/master/datagenerator/Geomodels.py): `datagenerator/Geomodels.py`
- [Fault modeling](https://github.com/sede-open/synthoseis/blob/master/datagenerator/Faults.py): `datagenerator/Faults.py`
- [Salt structures](https://github.com/sede-open/synthoseis/blob/master/datagenerator/Salt.py): `datagenerator/Salt.py`
- [Closure detection](https://github.com/sede-open/synthoseis/blob/master/datagenerator/Closures.py): `datagenerator/Closures.py`
- [Volume output](https://github.com/sede-open/synthoseis/blob/master/datagenerator/output_writer.py): `datagenerator/output_writer.py`
- [Simulation entry point](https://github.com/sede-open/synthoseis/blob/master/main.py): `main.py`

### Rock physics and seismic

- [Rock properties](https://github.com/sede-open/synthoseis/blob/master/rockphysics/RockPropertyModels.py): `rockphysics/RockPropertyModels.py`
- [Rock model interface](https://github.com/sede-open/synthoseis/blob/master/rockphysics/rpm_abc.py): `rockphysics/rpm_abc.py`
- [Seismic synthesis](https://github.com/sede-open/synthoseis/blob/master/datagenerator/Seismic.py): `datagenerator/Seismic.py`
- [Seismic augmentation](https://github.com/sede-open/synthoseis/blob/master/datagenerator/Augmentation.py): `datagenerator/Augmentation.py`

### Dashboard service

- [REST API](https://github.com/sede-open/synthoseis/blob/master/api/main.py): `api/main.py`
- [Run management](https://github.com/sede-open/synthoseis/blob/master/api/run_manager.py): `api/run_manager.py`
- [Output manifest](https://github.com/sede-open/synthoseis/blob/master/scripts/generate_manifest.py): `scripts/generate_manifest.py`

### Web dashboard

- [Dashboard routing](https://github.com/sede-open/synthoseis/blob/master/webapp/src/App.tsx): `webapp/src/App.tsx`
- [Launch form](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/LaunchPanel.tsx): `webapp/src/components/LaunchPanel.tsx`
- [API client](https://github.com/sede-open/synthoseis/blob/master/webapp/src/api/client.ts): `webapp/src/api/client.ts`
- [Run list](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/RunsPanel.tsx): `webapp/src/components/RunsPanel.tsx`
- [Live logs](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/LogViewer.tsx): `webapp/src/components/LogViewer.tsx`
- [Project dashboard](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/ProjectDashboard.tsx): `webapp/src/components/ProjectDashboard.tsx`
- [Manifest loader](https://github.com/sede-open/synthoseis/blob/master/webapp/src/hooks/useManifest.ts): `webapp/src/hooks/useManifest.ts`
- [Volume viewer](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/RunViewer.tsx): `webapp/src/components/RunViewer.tsx`
- [Slice display](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/SliceViewer.tsx): `webapp/src/components/SliceViewer.tsx`
- [Colormap selector](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/ColormapSelector.tsx): `webapp/src/components/ColormapSelector.tsx`
- [Zarr slice loader](https://github.com/sede-open/synthoseis/blob/master/webapp/src/hooks/useZarrSlice.ts): `webapp/src/hooks/useZarrSlice.ts`
- [Run metadata](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/MetadataPanel.tsx): `webapp/src/components/MetadataPanel.tsx`
- [Volume selector](https://github.com/sede-open/synthoseis/blob/master/webapp/src/components/VolumeSelector.tsx): `webapp/src/components/VolumeSelector.tsx`

### Other components

- **User**
- **Dashboard user**

## Connections

- User → Simulation entry point: runs config
- Simulation entry point → Run parameters: loads settings (evidence: `main.py`)
- Simulation entry point → Horizon stack: builds horizons (evidence: `main.py`)
- Simulation entry point → Geologic model: builds model (evidence: `main.py`)
- Simulation entry point → Fault modeling: applies faults (evidence: `main.py`)
- Simulation entry point → Closure detection: finds closures (evidence: `main.py`)
- Simulation entry point → Seismic synthesis: generates seismic (evidence: `main.py`)
- Simulation entry point → Volume output: writes volumes (evidence: `main.py`)
- Horizon stack → Geologic model: supplies horizons (evidence: `main.py`)
- Geologic model → Fault modeling: provides model (evidence: `main.py`)
- Fault modeling → Closure detection: provides faulted model (evidence: `main.py`)
- Closure detection → Seismic synthesis: provides closures (evidence: `datagenerator/Seismic.py`)
- Fault modeling → Seismic synthesis: provides fault data (evidence: `datagenerator/Seismic.py`)
- Seismic synthesis → Rock properties: uses properties (evidence: `datagenerator/Seismic.py`)
- Seismic synthesis → Seismic augmentation: applies augmentation (evidence: `datagenerator/Seismic.py`)
- Fault modeling → Salt structures: integrates salt (evidence: `datagenerator/Faults.py`)
- Rock properties → Rock model interface: implements models (evidence: `rockphysics/RockPropertyModels.py`)
- Dashboard user → Dashboard routing: uses dashboard (evidence: `webapp/src/App.tsx`)
- Dashboard routing → Launch form: routes launch (evidence: `webapp/src/App.tsx`)
- Dashboard routing → Run list: routes runs (evidence: `webapp/src/App.tsx`)
- Dashboard routing → Live logs: routes logs (evidence: `webapp/src/App.tsx`)
- Dashboard routing → Project dashboard: routes dashboard (evidence: `webapp/src/App.tsx`)
- Dashboard routing → Volume viewer: routes viewer (evidence: `webapp/src/App.tsx`)
- Launch form → API client: submits runs (evidence: `webapp/src/components/LaunchPanel.tsx`)
- Run list → API client: fetches runs (evidence: `webapp/src/components/RunsPanel.tsx`)
- Live logs → API client: streams logs (evidence: `webapp/src/components/LogViewer.tsx`)
- Project dashboard → Manifest loader: loads manifest (evidence: `webapp/src/components/ProjectDashboard.tsx`)
- Volume viewer → Manifest loader: loads manifest (evidence: `webapp/src/components/RunViewer.tsx`)
- Volume viewer → Slice display: renders slices (evidence: `webapp/src/components/RunViewer.tsx`)
- Volume viewer → Colormap selector: configures colors (evidence: `webapp/src/components/RunViewer.tsx`)
- Volume viewer → Run metadata: shows metadata (evidence: `webapp/src/components/RunViewer.tsx`)
- Volume viewer → Volume selector: selects volume (evidence: `webapp/src/components/RunViewer.tsx`)
- Slice display → Zarr slice loader: loads slice data (evidence: `webapp/src/components/SliceViewer.tsx`)
- Slice display → Colormap selector: uses colors (evidence: `webapp/src/components/SliceViewer.tsx`)
- API client → REST API: calls endpoints (evidence: `webapp/src/api/client.ts`)
- Manifest loader → REST API: fetches manifest (evidence: `webapp/src/hooks/useManifest.ts`)
- REST API → Run management: delegates runs (evidence: `api/main.py`)
- REST API → Output manifest: generates manifest (evidence: `api/main.py`)
- Run management → Simulation entry point: launches simulation
