{"id":27812,"library":"ghgforcing","title":"ghgforcing","description":"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.","status":"active","version":"0.1.7.1","language":"python","source_language":"en","source_url":"https://github.com/gschivley/ghgforcing","tags":["radiative forcing","greenhouse gas","climate","IPCC","AR5"],"install":[{"cmd":"pip install ghgforcing","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Numerical operations","package":"numpy","optional":false}],"imports":[{"note":"Module is not a class; direct import is the intended usage.","wrong":"from ghgforcing import ghgforcing","symbol":"ghgforcing","correct":"import ghgforcing"}],"quickstart":{"code":"import ghgforcing\n\n# Define emissions in metric tons CO2 equivalent\nemissions = {'CO2': 1000, 'CH4': 10, 'N2O': 1}\n\n# Calculate radiative forcing (W/m^2) for a 20-year time horizon\nrf = ghgforcing.calculate_radiative_forcing(emissions, time_horizon=20)\nprint(rf)","lang":"python","description":"Calculate radiative forcing for a set of GHG emissions using IPCC AR5 methods."},"warnings":[{"fix":"Use only 20, 100, or 500 as the time_horizon parameter.","message":"Time horizon must be one of 20, 100, or 500. Other values may raise errors or produce incorrect results.","severity":"gotcha","affected_versions":"all"},{"fix":"Use keyword argument 'emissions' instead of 'ghg'.","message":"The 'ghg' parameter name changed from 'ghg' to 'emissions' in version 0.1.6. Old code using ghg=... will raise TypeError.","severity":"deprecated","affected_versions":">=0.1.6"},{"fix":"Check the list of accepted species in the documentation or source code.","message":"Emissions 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.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Replace ghg= with emissions= in the function call.","cause":"Parameter name changed in version 0.1.6 from 'ghg' to 'emissions'.","error":"TypeError: calculate_radiative_forcing() got an unexpected keyword argument 'ghg'"},{"fix":"Pass only 20, 100, or 500 as time_horizon.","cause":"Unsupported time horizon value provided.","error":"ValueError: time_horizon must be one of (20, 100, 500)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}