1.1.2 • Published 7 months ago

@undp/carbon-credit-calculator v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Carbon Registry - Credit Calculation

Introduction

The library includes the implementations carbon credits calculation for different sectors. Currently implemented only two of the sectors which are Agriculture and Energy.

Sectors

According to the UNFCCC - CDM (Clean Development Mechanism) methodologies, identified sectors are as follows,

  1. Energy industries (renewable / non-renewable sources)
  2. Energy distribution
  3. Energy demand
  4. Manufacturing industries
  5. Chemical industries
  6. Construction
  7. Transport
  8. Mining/mineral production
  9. Metal production
  10. Fugitive emissions from fuels (solid, oil and gas)
  11. Fugitive emissions from production and consumption of halocarbons and sulphur hexafluoride
  12. Solvent use
  13. Waste handling and disposal
  14. Afforestation and reforestation
  15. Agriculture

Calculation - Sector Agriculture

Number of Credits = #hectares * #days * #tCO2e/ha/day 
Input FieldData TypeMandatory/OptionalDefault ValuePossible values if anyValidations
landAreaFloatMandatoryArea>0Format – Non-zero, Can't be negative Invalid area Format – Not a number Empty area Format - Empty field
landAreaUnitStringMandatoryhaInvalid unit Format – Invalid field Empty unit Format – Empty field
durationIntegerMandatoryDays > 0 Format – Non-zero, Can't be negative Invalid input field Format – Not a number Format – Empty field
durationUnitStringMandatoryDaysInvalid unit Format – Invalid field Empty unit Format – Empty field

System Configurations

Constants

Constant NameValueUnitUnit of Measurement
emissionFactor0.046emissionFactorUnittCO2e/ha/day

Constant values can parse externally. If not use above default constants.

Example Calculation:

Hectares - 16ha 
Days – 120 
Constant – 0.046 
 #hectares * #days * #tCO2e/ha/day = 16*120*0.046 = 88.32 

Calculation - Sector Energy

Sub Sector: Solar

Approved Methodology: Solar Photovoltaic (PV)

Parameters: 
 
X – Enegy generation value (kWh/year/unit) 
Y – Threshold value (kWh/year/unit) 
A – High emission factor (tCO2/ MWh) 
B – Low emission factor (tCO2/ MWh) 
If X < Y ; X*A 
If X >= Y ; Y*A + (X-Y)*B 
Input FieldData TypeMandatory/ OptionalDefault ValuePossible values if anyValidations
energyGenerationFloatMandatoryEnergy > 0 Format – Non-zero, Can't be negativeInvalid input field Format – Not a numberFormat - Empty input field
energyGenerationUnitStringMandatorykWh/yearInvalid unit Format – Invalid fieldEmpty unit Format – Empty field
buildingTypeStringMandatoryHouseholdHealth CenterDispensarySchoolPrimary SchoolSecondary SchoolPublic AdministrationTrading PlaceBus StopInvalid input field Format – Invalid fieldEmpty input fieldFormat – Empty field

System Configurations

Constants

Constant NameValueUnit of Measurement
High Emission Factor (A)6.8(at or below threshold)High emission factor (tCO2/ MWh)
Low Emission Factor (B)1.3(above throshold)Low emission factor (tCO2/ MWh)
Building TypeHousehold, Health Center, Dispensary, School, Primary School, Secondary School, Public Administration, Trading Place, Bus Stop

Threshold

Building TypeThreshold ValueUnit of Measurement
Household55kWh/y
Health Center825kWh/y
Dispensary825kWh/y
School275kWh/y
Primary School275kWh/y
Secondary School275kWh/y
Public Administration55kWh/y
Trading Place825kWh/y
Bus Stop200kWh/y

Example Calculation:

  1. A - High emission factor (tCO2/ MWh) = 6.8
  2. B - Low emission factor (tCO2/ MWh) = 1.3
  3. Bulding Type – Household - Y Threshold value (kWh/year/unit) = 55
  4. X - Measured value (kWh/year/unit) = 20
    X < Y ; X*A = (20/1000)*6.8 = 0.136
  5. X - Measured value (kWh/year/unit) = 105
    X >= Y ; Y*A + (X-Y)*B = (55/1000)*6.8 + {(105-55)/1000}*1.3 = 0.439

Usage

Generate Credit based on the Sector

import { AgricultureConstants, AgricultureCreationRequest, calculateCredit, SolarConstants, SolarCreationRequest } from '@undp/carbon-credit-calculator';

// Create creditCreationRequest based on the sector
// AgricultureCreationRequest if it is Agriculture sector
// SolarCreationRequest if it is a Solar sub sector.
let creditCreationRequest: CreditCreationRequest = <Sub sector specific create req>;
const credit = await calculateCredit()