Skip to content

facts-workbench/facts.plotting.dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

facts.plotting.dashboard

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.


Requirements

  • Docker ≥ 20
  • FACTS .nc output files from a completed run

Usage

1. Clone

git clone https://github.com/Ttheegela/facts.plotting.dashboard.git
cd facts.plotting.dashboard

2. Build

bash docker/build.sh

Run once. Rebuild only after updating facts_dashboard.py.

3. Generate

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.


Input structure

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.


Other input modes

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.nc

AR6-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.html

AR6-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.html

Custom output path and title:

bash docker/run.sh \
  --exp-root /path/to/experiment/ \
  --output   /path/to/dashboard.html \
  --title    "My FACTS Run"

All flags

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)

Troubleshooting

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.

About

Interactive HTML dashboard generator for FACTS sea-level projection outputs

Resources

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors