Registry / data / ghgforcing

ghgforcing

JSON →
library0.1.7.1pypypiunverified

ghgforcing calculates the radiative forcing resulting from greenhouse gas emissions, following the IPCC AR5 method. Version 0.1.7.1 is the latest. Release cadence is low; library is in maintenance mode with no active development.

pip install ghgforcing
INSTALL
IMPORT
SIG · GHGFORCING
G
ghgforcing
datapythonv0.1.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ghgforcing
✓ import ghgforcing
✗ import ghgforcing

Calculate radiative forcing for a set of GHG emissions using IPCC AR5 methods.

import ghgforcing # Define emissions in metric tons CO2 equivalent emissions = {'CO2': 1000, 'CH4': 10, 'N2O': 1} # Calculate radiative forcing (W/m^2) for a 20-year time horizon rf = ghgforcing.calculate_radiative_forcing(emissions, time_horizon=20) print(rf)
Debug
Known issues
gotchaTime horizon must be one of 20, 100, or 500. Other values may raise errors or produce incorrect results.
fix
Use only 20, 100, or 500 as the time_horizon parameter.
affects: all
deprecatedThe 'ghg' parameter name changed from 'ghg' to 'emissions' in version 0.1.6. Old code using ghg=... will raise TypeError.
fix
Use keyword argument 'emissions' instead of 'ghg'.
affects: >=0.1.6
gotchaEmissions dictionary keys must match exact IPCC compound names (e.g., 'CO2', 'CH4', 'N2O', 'SF6', 'CF4', etc.). Misspellings or alternative abbreviations (e.g., 'CO2e') are ignored silently.
fix
Check the list of accepted species in the documentation or source code.
affects: all
Upgrade
Version history
0.1.7.1latest on PyPI · released Dec 13, 2017
Audit
Dependencies
numpyrequiredNumerical operations
Agent activity
7 hits · last 30 days
node
6
Resources
ghgforcing — pip install ghgforcing · libregistry