Skip to content

About

Interactive website for predicting effects of increasing pH on organic life and water over time

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Sour Seas: ocean pH predictor site

Live site: https://itzstephen167.github.io/ocean-acidification-predictor/

Ocean pH Predictor home page: key dates, change since pre-industrial times, and the 2100 outlook by emissions scenario

Static site, no build step.

python3 -m http.server 8765
# open http://localhost:8765

Deploy by uploading this folder to any static host (Netlify, GitHub Pages, Vercel, S3).

File Role
index.html, home.js Overview page: key dates, prediction card, 2100 outlook
explore.html, explore.js Explorer page: tank, charts, dials
scenarios.html, scenarios.js Scenarios page: overlay any two emissions paths
chemistry.html, chemistry.js Chemistry page: pump in CO₂ and watch the carbonate system shift
methods.html, methods.js Methods page: checks, cautions, sensor calculator, downloads
common.js, styles.css Shared rail, scenario names and styling
assets/model.js JavaScript port of ocean_ph_model.py (matches Python to ≤0.00005 pH)
assets/data.js projections.json wrapped as window.OCEAN_DATA (file:// friendly)
assets/*.py, .ipynb, .json Downloadable originals

Preset scenarios at default ocean settings use the precomputed Python bands in projections.json. Custom CO2 paths or changed alkalinity/temperature are recomputed in the browser, with their own seeded Monte-Carlo band, so those bands differ slightly from Python's.

To refresh after changing the model or the NOAA file, re-export projections.json and data.js:

python3 assets/export_projections.py

About

Interactive website for predicting effects of increasing pH on organic life and water over time

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages