|
1 | 1 | # GCBM View |
2 | 2 |
|
3 | | -GCBM View is a desktop application for configuring, running, and analyzing |
4 | | -Generic Carbon Budget Model (GCBM) simulations with a guided user interface. |
| 3 | +GCBM View is a desktop application for configuring, running, compiling, and |
| 4 | +analyzing Generic Carbon Budget Model (GCBM) workflows. |
5 | 5 |
|
6 | | -## What You Can Do |
| 6 | +This README is intentionally short. The canonical documentation lives in MkDocs. |
7 | 7 |
|
8 | | -- Configure simulation inputs from shapefiles and project folders. |
9 | | -- Run simulation workflows with live status and logs. |
10 | | -- Compile model outputs into analysis-ready databases and optional TIFFs. |
11 | | -- Explore results in charts, maps, and standard reporting views. |
| 8 | +## Start Here |
12 | 9 |
|
13 | | -## Table of Contents |
14 | | - |
15 | | -1. [Requirements](#requirements) |
16 | | -2. [Install and Run](#install-and-run) |
17 | | -3. [End-to-End Walkthrough](#end-to-end-walkthrough) |
18 | | -4. [Documentation Map](#documentation-map) |
19 | | -5. [Installer and Release Process](#installer-and-release-process) |
20 | | -6. [Developer Notes](#developer-notes) |
21 | | -7. [Troubleshooting](#troubleshooting) |
| 10 | +- Docs home: `docs/index.md` |
| 11 | +- Simulation playbook: `docs/playbooks/simulation.md` |
| 12 | +- Compilation playbook: `docs/playbooks/compilation.md` |
| 13 | +- Visualization playbook: `docs/playbooks/visualization.md` |
| 14 | +- Troubleshooting matrix: `docs/operations/troubleshooting-matrix.md` |
22 | 15 |
|
23 | 16 | ## Requirements |
24 | 17 |
|
25 | 18 | - Python `>=3.10` |
26 | | -- Windows is the primary supported packaging target for the `.exe` installer |
27 | | -- A prepared GCBM project workspace (for example `gcbm_training` outputs) |
28 | | - |
29 | | -## Install and Run |
| 19 | +- Windows is the primary installer packaging target (`.exe`) |
| 20 | +- A prepared GCBM workspace (for example `gcbm_training`) |
30 | 21 |
|
31 | | -### Install from source |
| 22 | +## Run From Source |
32 | 23 |
|
33 | 24 | ```bash |
34 | 25 | cd gcbm_view |
35 | 26 | uv pip install -e . |
36 | | -``` |
37 | | - |
38 | | -### Launch |
39 | | - |
40 | | -```bash |
41 | 27 | gcbm-view |
42 | 28 | ``` |
43 | 29 |
|
44 | | -or: |
| 30 | +Alternative: |
45 | 31 |
|
46 | 32 | ```bash |
47 | 33 | python -m gcbm_view.app |
48 | 34 | ``` |
49 | 35 |
|
50 | | -## End-to-End Walkthrough |
51 | | - |
52 | | -This section mirrors the full user flow from configuration to reporting. |
53 | | - |
54 | | -### 1. Configure and run a simulation |
55 | | - |
56 | | -- Open the **Simulation** page. |
57 | | -- Select your project directory and confirm discovered input files. |
58 | | -- Map required columns (age, classifiers, and temperature source). |
59 | | -- Validate configuration, then run the simulation. |
60 | | - |
61 | | - |
62 | | - |
63 | | -### 2. Compile simulation outputs |
64 | | - |
65 | | -- Open the **Compile** page. |
66 | | -- Select the project with generated outputs. |
67 | | -- Set output database name. |
68 | | -- Optionally include spatial TIFF outputs. |
69 | | - |
70 | | - |
71 | | - |
72 | | -### 3. Explore visual outputs |
73 | | - |
74 | | -- Open the **Visualize** page. |
75 | | -- Load the compiled `.db` file. |
76 | | -- Build charts (line, stacked area, stacked bars, dual axis, and others). |
77 | | -- Enable map mode for spatial outputs when TIFFs are present. |
78 | | - |
79 | | - |
80 | | - |
81 | | -### 4. Review generated reports |
82 | | - |
83 | | -- Open the **Reports** page after loading a compiled database. |
84 | | -- Export or review standard reporting outputs for analysis workflows. |
85 | | - |
86 | | - |
87 | | - |
88 | | -## Documentation Map |
89 | | - |
90 | | -The complete docs are in `docs/` and configured through `mkdocs.yml`. |
91 | | - |
92 | | -- Main docs entry: [`docs/index.md`](docs/index.md) |
93 | | -- Full walkthrough: [`docs/WALKTHROUGH.md`](docs/WALKTHROUGH.md) |
94 | | -- User guide: [`docs/USER_GUIDE.md`](docs/USER_GUIDE.md) |
95 | | -- Installation guide: [`docs/guide/installation.md`](docs/guide/installation.md) |
96 | | -- Simulation guide: [`docs/guide/simulation.md`](docs/guide/simulation.md) |
97 | | -- Methodology overview: [`docs/methodology/index.md`](docs/methodology/index.md) |
98 | | -- API notes: [`docs/api.md`](docs/api.md) |
99 | | - |
100 | | -## Installer and Release Process |
101 | | - |
102 | | -Installer automation and packaging assets live in [`installer/`](installer/README.md). |
103 | | - |
104 | | -### Release channels |
105 | | - |
106 | | -- Continuous release: |
107 | | - - Trigger: push to `main` |
108 | | - - Output: prerelease tagged `continuous`, updated automatically |
109 | | -- Versioned release: |
110 | | - - Trigger: tag push matching `v*` (for example `v0.6.0`) |
111 | | - - Output: tagged release with installer asset |
112 | | - |
113 | | -### CI/CD requirements |
114 | | - |
115 | | -- GitHub Actions workflow: `.github/workflows/windows-installer.yml` |
116 | | -- Required secret: `CROSS_REPO_READ_TOKEN` (read access to private component repos) |
117 | | - |
118 | | -## Developer Notes |
119 | | - |
120 | | -- Entry point script: `gcbm-view` (`gcbm_view.app:main`) |
121 | | -- Source package path: `src/gcbm_view` |
122 | | -- Optional dev tools: `pytest`, `black`, `ruff` |
123 | | - |
124 | | -## Troubleshooting |
| 36 | +## Installer and CI/CD |
125 | 37 |
|
126 | | -- If simulation configuration fails, verify input file paths and required columns. |
127 | | -- If charts are empty, confirm the compiled database has expected views/tables. |
128 | | -- If map mode is blank, verify TIFF outputs were included during compilation. |
129 | | -- If CI checkout fails, check `CROSS_REPO_READ_TOKEN` scope and org approval. |
| 38 | +- Installer assets and build notes: `installer/README.md` |
| 39 | +- Windows installer workflow: `.github/workflows/windows-installer.yml` |
| 40 | +- Docs quality workflow: `.github/workflows/docs-quality.yml` |
| 41 | +- Docs pages workflow: `.github/workflows/docs-pages.yml` |
0 commit comments