Skip to content
A Clojure library designed to help you live sustainably.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/sustainability
.gitignore
README.md
project.clj

README.md

Sustainability

A Clojure library designed to help you live sustainably.

Usage

To estimate how much CO2 was produced in a given year per capita

(co2-by-year-in-finland 1979) ; => 11.4034573078207
(co2-by-year-in-finland 2000) ; => 10.1284741400511

To estimate how much a person of a given age creates CO2 emissions compared to average over lifetime.

(co2-multiplier-by-age-in-finland 1) ; => 0.1433125171218903
(co2-multiplier-by-age-in-finland 39) ; => 1.2666295009137765

To estimate how many tons of CO2 emissions there were for someone alive during a certain time period

(co2-over-life-in-finland 1969 2008) ; => 311.03141542755174
(co2-over-life-in-finland 1979 2018) ; => 297.5844637544411

To estimate how much it costs to compensate for (your) life so far

(* (co2-over-life-in-finland 1979 2018) 12.87)) => 3829.9120485196568

Story & Methodology

For someone who lived an average life, we can find average CO2 emissions per capita from The World Bank (TWB). We have used Finland as reference because it's my home country.

A person's emissions for an age, i.e. during a certain year in their life can be estimated. This is done by Zagheni (ZAG) for US, but we use it as an estimate for Finland as well. From this data we calculate a multiplier of how much that age causes emissions compared to the average over all ages.

A person's total life CO2 emissions are then estimated by multiplying the yearly averages for that country (Finland) with the multipliers of age that year.

What to do with it? For example, one can calculate how much to compensate for past behavior up until one compensates for current emissions. Let's talk about being net negative in CO2 over your whole lifetime!

Yes, compensation is not the same as not producing any emissions. Reduction is key, but we don't stop there. Compensate already! Fix your past wrongs!

License

The code is released to the Public Domain. Use it for much good!

The data included, is covered by their respective licenses detailed below.

ZAG: CO2 emissions by age

TWB: CO2 emissions (metric tons per capita)

  • The World Bank
  • EN.ATM.CO2E.PC
  • Carbon dioxide emissions are those stemming from the burning of fossil fuels and the manufacture of cement. They include carbon dioxide produced during consumption of solid, liquid, and gas fuels and gas flaring.
  • Carbon Dioxide Information Analysis Center, Environmental Sciences Division, Oak Ridge National Laboratory, Tennessee, United States.
  • Licensed CC BY-4.0
You can’t perform that action at this time.