GHGPy is a Python package for the GHG Inventory.
- Website: https://iclimate.io.vn
- Our services https://decarbdirect.com/
- Documentation: https://ghgpy.iclimate.io.vn
- Source code: https://github.com/iClimate/ghgpy
- Contributing: https://ghgpy.iclimate.io.vn/devdocs/
- Bug reports: https://github.com/iClimate/ghgpy/issues
Pip installable package:
pip install ghgpy
Python 3.11 and up
The GHGPy project welcomes your expertise and enthusiasm!
# General factory
from src.ghgpy.factory import FactoryGeneral
# Uncertainty data type
from src.ghgpy.datamodel.fuel import UNumber
# Database handles
from src.ghgpy.datamodel.db import FuelDataHandle, GHGDataHandle, EFDataHandle
# Default databases
from src.ghgpy.data.fuels import default_fuel_database
from src.ghgpy.data.ghg import ghg_gas_data
from src.ghgpy.data.efs import s_combustion_energy
# Init the factory class
MyFactory = FactoryGeneral(name="Hong Ha Textile", desc = "Textile production for export!")
MyFactory.connection(FuelDataHandle(default_fuel_database),\
EFDataHandle(s_combustion_energy),\
GHGDataHandle(ghg_gas_data, 'ar6'))
MyFactory.add_combustion(name = "Boiler", desc = "Đốt lò hơi")
MyFactory.add_combustion(name = "Boiler1", desc = "Đốt lò than bùn")
MyFactory.combustion["Boiler"].add('Diesel_Oil', UNumber(value=1000), 'l')
MyFactory.combustion["Boiler"].add('Anthracite', UNumber(value=1000), 'kg')
MyFactory.combustion["Boiler1"].add('Lignite', UNumber(value=1000), 'kg')
MyFactory.add_refrigerantuse(name='AC', desc='refrigerant use for AC')
MyFactory.refrigerantuse["AC"].add("R32", UNumber(value=10, uncertainty=0), 'kg')
MyFactory.add_elecuse(name='Office')
MyFactory.elecuse['Office'].add(name='01', amount=UNumber(value=1), unit='MWh', gef=UNumber(value=0.987), force=True)
MyFactory.emission(scope=1)