Calculate a GHG inventory (ISO 14064-1)
calculate_ghg_inventoryGHG inventory from activity data, reported by ISO 14064-1 category (1-6), GHG Protocol scope and gas: fuels (IPCC 2006 tier-1 defaults; litres, kg, t, GJ, MWh…; stationary or mobile), purchased electricity (official Viet Nam grid factor of the year built in — 2024 = 0.6187 tCO2/MWh, CV 1232/BNNMT-BĐKH — or give your own), refrigerant / SF6 recharges (GWP AR5 or AR6), and custom lines with your own factor (Scope 3 via scope3_category). Biogenic CO2 reported separately; optional uncertainty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gwp | No | GWP set (AR5 for Vietnam Decree 06 and EU CBAM; default AR5). | |
| lines | Yes | Activity data lines. | |
| period | No | Reporting period, e.g. 2026 or 2026-Q1. | |
| organization | No | ||
| number_format | No | Only for quantities sent as strings: vi = "1.050,5" style (dot thousands), en = "1,050.5" style. Ambiguous strings without it are refused. |