You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
Adds a new lightweight way to visualize graphs interactively. No added
dependencies (the javascript code runs entirely in the broswer and
sources libraries via CDN). The way this is implemented is quite simple:
the data is embedded directly in the HTML in json format using a jinja
template. Then javascript code does the rest (yes, definitely with the
help of coding assistants).
The largest graph on which this was tested was a cutout graph with n320
grid globally and a 2km grid over central Europe (the one we currently
have at MeteoSwiss). Loaded in about 6s and then still runs relatively
smoothly. Still, we might be reaching a limit with >1'500'000 nodes with
lots of connections - we might need to find some optimizations to the
code at some point as I am sure there are some left.
Nothing changes in terms of interface - this will simply add another
output to the command:
```shell
anemoi-graphs inspect graph.pt output_dir/
```
## Features
- fast GPU-based rendering
- full 3D scene navigation
- interactive controls for nodes and edges (toggles, radius scaling,
colors, etc.)
- nodes selection and highlighting
- globe map
- only for nodes coordinates and edges (no attributes values, for now)
## Graphs tested
- [x] n320 global (+ hidden)
- [x] CERRA LAM graph from RMI (+ hidden)
- [x] COSMO SGM graph from MeteoSwiss (+hidden)
- [x] n320 global hierarchical (+ multiple hidden levels)
----
<img width="1599" height="900" alt="image"
src="https://github.com/user-attachments/assets/83af87bb-7753-4243-9619-2825e78a62bc"
/>
<!-- readthedocs-preview anemoi-training start -->
----
📚 Documentation preview 📚:
https://anemoi-training--609.org.readthedocs.build/en/609/
<!-- readthedocs-preview anemoi-training end -->
<!-- readthedocs-preview anemoi-graphs start -->
----
📚 Documentation preview 📚:
https://anemoi-graphs--609.org.readthedocs.build/en/609/
<!-- readthedocs-preview anemoi-graphs end -->
<!-- readthedocs-preview anemoi-models start -->
----
📚 Documentation preview 📚:
https://anemoi-models--609.org.readthedocs.build/en/609/
<!-- readthedocs-preview anemoi-models end -->
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
0 commit comments