I Built a Carbon Calculator Where the Emission Factor Doesn't Exist
The article discusses the development of a carbon calculator specifically for refrigerant emissions, which differs from traditional calculators that rely on fixed emission factors. It highlights the complexity of using Global Warming Potential (GWP) values that can change over time, requiring careful consideration in data modeling. The author emphasizes the importance of transparency in presenting emissions data to users, especially when different GWP values may lead to significant discrepancies in calculations.
- ▪Most emissions calculators use fixed emission factors from a lookup table.
- ▪Refrigerant emissions calculations rely on the Global Warming Potential of the gas, which can vary based on the reporting context.
- ▪The author refactored the calculator to ensure users are informed about changes in GWP values that could affect their emissions calculations.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3923050) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Jeremiah Say Posted on Jun 3 I Built a Carbon Calculator Where the Emission Factor Doesn't Exist #webdev #datascience #javascript #showdev Most emissions calculators are a lookup table with a UI bolted on. You pick "diesel," the code fetches 2.51 kgCO₂e/litre from a factor table, multiplies by your input, done. I've built about a thousand of these.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).