Reference guide for CAPRI environmental indicators and emissions modeling. Use this skill when the user asks about GHG emissions, greenhouse gas, nutrient balances, NPK, nitrogen, phosphorus, potassium, energy use in agriculture, environmental indicators, IPCC methodology, manure management, fertilizer allocation, ammonia emissions, emission factors, carbon cycle, carbon balance, nitrate leaching, soil erosion, N2O, CH4, CO2 from agriculture, enteric fermentation, manure storage, manure application, over-fertilization, nutrient availability, atmospheric deposition, biological fixation, crop residues, emission intensity, tradable GHG permits, livestock density limits, nitrates directive, NEC directive, mitigation technologies, anaerobic digestion, feed additives, precision farming, or CAPDIS nitrogen disaggregation. Also trigger when exploring environmental data in CAPRI GDX files or writing scenario code that involves environmental constraints.
This skill covers GHG emissions, nutrient balances (NPK), ammonia, energy use, and
environmental constraints in the CAPRI model. For detailed emission factor tables,
nutrient cycle equations, and file locations, see references/emissions.md.
CAPRI constructs IPCC-consistent GHG inventories for European agriculture. Three gases
are modeled: CH4, N2O, and CO2. Emission sources are coded with identifiers like
CH4Ent, N2OMan, CO2his (see reference file for the full table).
CH4Ent): Tier 2 approach based on endogenous gross energy
intake from the feed module. Methane conversion factor (Ym) applied per animal type.CH4Man): Tier 2, depends on volatile solids, storage system
shares (from GAINS database), and temperature.CH4Ric): Tier 1 with IPCC 2006 default factors.N2OMan), grazing (N2OGra), synthetic fertilizer
(N2OSyn), manure application (N2OApp), crop residues (N2OCro).N2OAmm) and leaching/runoff
(N2OLea).N2Ohis): cultivation of organic soils.CO2his), liming (CO2lim), urea application (CO2urea).CO2bio), soil carbon (CO2soi).A life-cycle module estimates GHG per ton of commodity for non-EU regions to capture emission leakage (see Jansson et al. 2010, Perez Dominguez et al. 2012).
The model can simulate emission trading by attaching a shadow price to a GHG constraint in the supply model. The constraint limits total CO2-equivalent emissions using GWP factors (CH4 = 25, N2O = 298 per IPCC AR4).
Nutrient balances are built around five elements:
The soil surplus = total input - harvested export - gaseous losses. Nitrate leaching is a fraction of soil surplus based on MITERRA-Europe (soil type, land use, precipitation, temperature, soil carbon).
NutFac: factor for fertilization beyond crop export, prior mean 120%, bounds 5-500%.NavFac: nutrient availability in manure. For N: ~34% effective availability combining
immediate release (50%) with ammonia losses (60%) and slow release (25%, 86% available).
P and K priors at 50%.gams/capreg/).CAPRI calculates net manure trade within regions of the same member state. Emissions are assigned to the exporting region; nutrients and carbon are assigned to the importing region.
The NH3 module follows IIASA/GAINS methodology with member-state-specific coefficients:
Ammonia abatement technologies are endogenous farm practices in the supply model.
Three EU directives are implemented:
Additional flexible constraints:
CAPRI quantifies carbon flows from feed intake through to soil sequestration:
Endogenous technologies in the supply model:
Post-model LCA-based energy module using Cumulative Energy Demand (KEA VDI 4600).
| Source | Factor | Unit |
|---|---|---|
| Diesel | 45.7 | MJ/l |
| Electricity | 11.7 | MJ/kWh |
| Heating gas | 47.9 | MJ/m3 |
| Heating oil | 49.7 | MJ/l |
| Source | Factor | Unit |
|---|---|---|
| N fertilizer | 58.99 | MJ/kg nutrient |
| P fertilizer | 40.06 | MJ/kg nutrient |
| K fertilizer | 9.25 | MJ/kg nutrient |
| Herbicides | 218.62 | MJ/kg active sub. |
| Insecticides | 299.02 | MJ/kg active sub. |
| Fungicides | 124.38 | MJ/kg active sub. |
Key files: enerind_bas (base data), enerind_calc (scenario calculation).
Output tables: MJ/ha or MJ/head, MJ/kg product, MJ/EUR income, sectoral energy balance.
The CAPDIS module disaggregates nitrogen flows to 1x1 km Farm Structure Units (FSUs):
gams/capdis/capdis.gms, data in dat/capdishsu/.Use the GAMS IDE language model tools to inspect environmental results:
chrispahm.gams-ide/gamsSearchSymbols: search for emission-related symbols, e.g. query CH4Ent or
N2O or NBAL to find parameters and variables related to GHG or nutrient balances.chrispahm.gdx-viewer/gdx-sql: run SQL queries on result GDX files to extract environmental indicator
values. Example: query p_envInd for emission results by region and source.chrispahm.gdx-viewer/gdx-reveal: browse GDX structure to find environmental reporting parameters like
p_ghgBalance, p_nBalance, or energy indicator results.Typical result GDX locations:
results/capreg/res_*.gdxresults/capmod/res_*.gdxresults/capdis/res_*.gdx