Skip to content

Repository files navigation

Revitalize

Revitalize helps anyone in the UC community see whether their campus is on track for the 2045 climate goal, and what it would take to get there. Pick a campus, compare progress across the system, run live what-if scenarios, and download a tailored action plan, all from the same official emissions data UC publishes each year.

Try it live

https://revitalizeatucla.netlify.app/

QR code for Revitalize

Scan the QR code or open the link above.

What's here

Page Description
index.html Systemwide dashboard with campus selector, emissions chart, at-a-glance metrics, scope breakdown, and progress leaderboard
simulator.html What-if simulator: adjust sliders for electrification, cleaner electricity, and travel cuts and watch the 2045 projection update live
plans.html Campus-specific action plans with scope charts, staff focus areas, phased recommendations, and PDF/CSV export
compare.html Side-by-side campus comparison with bar charts and a data table
methodology.html Data sources, calculations, limitations, and citations
contact.html Contact page with project founder and faculty advisor
data/uc_emissions.csv Annual Scopes 1+2+3 totals by campus and year
data/campuses.json Campus metadata, colors, enrollment, STARS ratings
data/policy.json UC climate policy parameters
notebooks/ucla_carbon_tracker.Rmd R notebook to reproduce the UCLA analysis

Features

  • What-if simulator: model how building electrification, cleaner electricity, and travel reductions change a campus's path to 2045. Sliders update the chart, headline number, and comparison bars in real time. One-click presets (Moderate progress, Electrification push, Ambitious path, and more) make it easy to try common strategies.
  • Climate tiers: a 12-rank ladder from Sprout to Legend, earned by progress toward the 2045 goal.
  • Forecasting: an ensemble of regression and smoothing models picks the best fit for each campus and projects emissions to 2030 and 2045 with prediction intervals.
  • Campus action plans: tailored, phased recommendations based on each campus's emissions profile and real UC sustainability initiatives. Includes a scope breakdown over time, campus-specific staff focus areas, a full plan PDF, a compact staff briefing PDF, and CSV export.
  • Plain-language accessibility: "what does this mean?" popovers explain carbon terms (t CO₂e, the 2019 baseline, scopes, projections, and more) across the dashboard, plans, comparison, and simulator pages.
  • Friendly metrics: large carbon figures are paired with everyday equivalents, such as the number of gas cars driven for a year.

Run locally

ES modules and CSV fetching require a local server (opening the HTML files directly with file:// will not work). Use the included script (it frees the port automatically if a previous server is still running):

cd "Carbon Trackers"
./serve.sh          # defaults to port 8080
./serve.sh 8090     # or pick another port

Then open http://localhost:8080

Or press F5 in Cursor/VS Code and choose "Serve & Open Dashboard".

Address already in use? A previous server is still running. serve.sh clears it for you, or run lsof -ti :8080 | xargs kill.

Simulator stuck on loading? Make sure the local server is running. The page shows a clear error if data cannot load instead of hanging forever.

Data sources

Current inventory: calendar year 2024 (UC 2025 Annual Report). Figures are pulled from UC's official Google Sheets behind each campus report.

Refresh data when a new annual report is published:

python3 scripts/update_emissions.py

Policy: 90% reduction from 2019 levels by 2045, with residual emissions neutralized through carbon removal.

Architecture

data/               → CSV + JSON (source of truth)
assets/
  revitalize-logo.svg → Revitalize brand mark (teal-to-blue sprout icon)
assets/js/
  analytics.js      → Policy math and formatting
  forecast.js       → OLS, weighted OLS, polynomial, log-linear, Holt, damped Holt, ridge + LOOCV ensemble
  data.js           → Data loading and queries
  charts.js         → Chart.js with forecast bands and scenario chart
  app.js            → Dashboard controller
  compare.js        → Comparison page
  plans.js          → Action plans page controller
  campus-context.js → Shared campus selection across pages
  campus-plans.js   → Action plan generation and campus initiatives
  plan-export.js    → CSV export for campus plans
  plan-pdf.js       → PDF export for full plans and staff briefings
  scenarios.js      → Coupled what-if engine (load shift, logistic ramp, synergy)
  simulator.js      → What-if simulator page (live slider updates)
  glossary.js       → Shared "what does this mean?" popovers
  tiers.js          → Climate tier ladder and shield badges
assets/styles.css

Forecasts use leave-one-out cross-validation to select the best model, with a weighted ensemble and 95% prediction intervals. The what-if simulator uses a coupled campus scenario layer (v2.1: electrification load shift, capital-turnover S-curve, soft diminishing returns, structural sensitivity band). See Methodology.

Campuses tracked

Berkeley · Davis · Irvine · UCLA · Merced · Riverside · San Diego · UCSF · Santa Barbara · Santa Cruz

Deploy

Live site: https://revitalizeatucla.netlify.app/

Configured for Netlify. netlify.toml publishes the project root.

# Or deploy manually
netlify deploy --prod

Disclaimer

Revitalize is built on publicly available UC sustainability report data and is not an official University of California product. For official UC climate policy, see the UC Annual Report on Sustainable Practices.

About

A UC-wide carbon tracking tool using predictive modeling to see which universities are on track to meet their 90% reduction of CO2 by 2045.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages