Repository navigation
Figures
João Siqueira edited this page Nov 10, 2026
·
3 revisions
The figures in this wiki are generated, not drawn, by docs/figures/build_figures.py. It runs the scripts in codes/ unchanged on four example pixels, so the values shown are the layers the scripts produce.
-
docs/figures/run_scripts.jsruns each script ofcodes/unchanged in Node, with a one-pixel stand-in foree,Mapandrequire, and records the value of every layer passed toMap.addLayer. -
build_figures.pychecks those values against the ones the figure and the text describe (expectedin each entry ofANALYSES) and stops if they differ, so the figures cannot drift from the scripts. - Each figure is an HTML page rendered to PNG by headless Chrome, in a light and a dark version, saved in
docs/figures/.
From the repository root (needs Node and Google Chrome):
python docs/figures/build_figures.py # all figures
python docs/figures/build_figures.py analysis_1_age # one figure
- Add the script to
codes/asanalysis_N_<name>.js. - Add its entry to
ANALYSESinbuild_figures.py(the build fails while a script has no entry) and run the build. - Add its page to this wiki, with the new figure, its row to the table in the README and its item to the Home list and the sidebar.
- Run
docs/wiki/update_nav.pyon a clone of the wiki: it rewrites the previous/next links at the end of every analysis page, in the order of the README table.