Add thermodynamic model gallery to the data catalog#34
Merged
Conversation
The data catalog page already shows a gallery of the seismic tomography models, but the thermodynamic models had no visual presence. This adds an equivalent gallery for them, rendered the same way the tomography one is: a script generates the figures and a markdown snippet in CI, and the page splices it in. For each model the script paints the 2D lookup tables straight over their depth and temperature grid, so the phase-transition steps show up without any interpolation smoothing. Each figure carries five panels: shear and compressional velocity, density, and the shear and bulk moduli, all fully annotated with axis labels, titles and colorbars in physical units. The scope is the SLB_21 family together with the new full-iron SLB_24 CFMASNaCr pyrolite model from Stixrude and Lithgow-Bertelloni (2024), which gets its own callout at the top of the gallery. The model list is derived from the manifest so the gallery tracks whatever ships in datasets.json. Wires a generate step plus verification into the docs workflow, adds a one-column grid style for the wide multi-panel figures, and gitignores the generated artifacts since CI regenerates them on each deploy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The data catalog page already has a gallery for the seismic tomography models, but the thermodynamic side had no visual presence at all. This adds an equivalent gallery for the thermodynamic models, built exactly the way the tomography one is: a script generates the figures and a markdown snippet during the docs build, and the catalog page splices it in. Nothing generated is committed, it all regenerates in CI.
For each model the script paints the 2D lookup tables straight over their depth and temperature grid, so the phase-transition steps in the mantle show up as sharp steps rather than being smoothed away by interpolation. Every figure has five panels side by side, shear and compressional velocity, density, and the shear and bulk moduli, each fully annotated with axis labels, a title and a colorbar in physical units.
The scope is the fifteen SLB_21 models plus the new full-iron SLB_24 CFMASNaCr pyrolite model from Stixrude and Lithgow-Bertelloni (2024), which I confirmed is already available end to end in the gadopt data store (cache, archive, manifest hash and the live S3 object all match). That one gets its own callout at the top of the gallery. The model list is derived from the manifest so the gallery just tracks whatever ships in datasets.json.
On the plumbing side this wires a generate step and a verification check into the docs workflow alongside the tomography one, adds a one-column grid style so the wide multi-panel figures get a full row each, and gitignores the generated images and markdown since CI rebuilds them on every deploy.
I verified it locally: the generator produces all sixteen figures, the featured SLB_24 figure matches the depth-versus-temperature style we wanted, mkdocs build --strict passes with all sixteen wired into the page, and flake8 is clean. Once this deploys you can check the gallery on the data catalog page.