From GDGTs to sea temperature

From GDGTs to sea temperature#

A walkthrough of how one Scaled Ring Index becomes a temperature with an error bar, in plain language, with the equations folded away. Pick a sample from the published case studies, or set your own Scaled RI, GDGT-2/3, NO₃ and prior, and every figure recomputes. The curves, the Stan program, Hamiltonian trajectories and four sampler chains all run in your browser, so there is nothing to install.

The calibration is the published tx.GHEB.sst.sri03.G23-N1p0, using the same 500 draws a default predict_T_from_proxyObs() call marginalizes over. For the example samples, the page shows the package’s own output beside what it computes in the browser.

Open the walkthrough full-page → (recommended: it is long, and the sample picker stays in view)

Where to go next#

Rebuilding it#

The page is generated by docs/_scripts/build_gdgt_to_temperature.py from the installed package, so the calibration draws, the Stan source and the sampler defaults cannot drift. The stored TEXAS percentiles for the example samples need CmdStan, so they come from a committed snapshot unless you ask for a re-run:

python docs/_scripts/build_gdgt_to_temperature.py                 # uses the stored runs
python docs/_scripts/build_gdgt_to_temperature.py --refresh-runs  # re-runs the examples

tests/test_gdgt_to_temperature_page.py fails if the committed page falls out of step with the package, or if the stored runs stop matching the posterior the page computes.