Generates a self-contained interactive HTML dashboard from FACTS sea-level projection outputs.
No FACTS installation needed. Output is a single .html file, open in any browser.
- Docker ≥ 20
- FACTS
.ncoutput files from a completed run
git clone https://github.com/Ttheegela/facts.plotting.dashboard.git
cd facts.plotting.dashboardbash docker/build.shRun once. Rebuild only after updating facts_dashboard.py.
bash docker/run.sh --exp-root /path/to/experiment/The dashboard is saved as dashboard.html next to your data. Open it in any browser.
experiment/
├── coupling.ssp126/
│ ├── location.lst ← tide gauge names (optional)
│ └── output/
│ ├── coupling.ssp126.total.workflow.wf1e.local.nc
│ └── ...
├── coupling.ssp245/
├── coupling.ssp370/
└── coupling.ssp585/
The dashboard auto-detects all scenarios, workflows, components, and locations. Non-standard scenario names (e.g. rco.LL.nz) are supported. Partial runs are fine, missing files are skipped.
Scenarios in separate folders:
bash docker/run.sh --ssp-dir /path/to/ssp126/ --ssp-dir /path/to/ssp585/Single NetCDF file:
bash docker/run.sh --single-nc-file /path/to/total.workflow.wf1e.local.ncAR6-style confidence files (medium only):
bash docker/run.sh \
--confidence-root /path/to/4_confidence_level_files/ \
--confidence-level medium_confidence \
--output /path/to/dashboard_medium.htmlAR6-style confidence files (both medium and low, recommended):
bash docker/run.sh \
--confidence-root /path/to/4_confidence_level_files/ \
--confidence-level both \
--output /path/to/dashboard_both.htmlCustom output path and title:
bash docker/run.sh \
--exp-root /path/to/experiment/ \
--output /path/to/dashboard.html \
--title "My FACTS Run"| Flag | Description |
|---|---|
--exp-root PATH |
Root folder containing scenario subdirectories |
--ssp-dir PATH |
One scenario folder, repeat for multiple |
--single-nc-file FILE |
Single total sea-level .nc file |
--confidence-root DIR |
Root of AR6-style confidence level files |
--confidence-level LEVEL |
medium_confidence, low_confidence, or both (default: medium_confidence) |
--location-lst FILE |
location.lst for tide gauge names, auto-detected if not provided |
--output FILE |
Output HTML path (default: next to input data) |
--title TEXT |
Dashboard title (auto-generated if omitted) |
ERROR: facts-viz image not found → Run bash docker/build.sh first.
ERROR: Docker is not installed or not in PATH → Install and start Docker Desktop.
ERROR: No scenario directories found → --exp-root must point to the folder containing the scenario subfolders, not inside one.
Location names show as IDs → Add location.lst to the scenario folder, or use --location-lst /path/to/location.lst.
--output path not found / dashboard not saved → The --output path must be a real directory on your machine. Use a full absolute path, e.g. --output /home/pk695/dashboard.html. Paths like /facts.plotting.dashboard/... will fail if that folder doesn't exist.
Confidence files not loading → --confidence-root must point to the folder that contains medium_confidence/ and low_confidence/ subfolders, not inside one of them. Use --confidence-level both to generate a single dashboard with all confidence levels combined.
Data only goes to 2100 → Only wf*e workflows found. Run wf*f or wf4 in FACTS for projections to 2300.