calculate_total_co2e: calculate_total_co2e

View source: R/ghg_flux.R

calculate_total_co2eR Documentation

calculate_total_co2e

Description

Convert individual GHG fluxes (mg m^{-2} h^{-1}) to a total CO_2-equivalent flux (g m^{-2} d^{-1}) using IPCC AR6 100-year GWPs (CO_2 = 1, CH_4 = 27, N_2O = 273).

Usage

calculate_total_co2e(co2 = 0, ch4 = 0, n2o = 0)

Arguments

co2

CO_2 flux in mg m^{-2} h^{-1}. Default 0.

ch4

CH_4 flux in mg m^{-2} h^{-1}. Default 0.

n2o

N_2O flux in mg m^{-2} h^{-1}. Default 0.

Value

Total CO_2e flux as a numeric scalar (g m^{-2} d^{-1}), printed with a diagnostic message.

Examples

calculate_total_co2e(co2 = 4.02, ch4 = 0.001, n2o = 0.003)

aelab documentation built on Feb. 23, 2026, 5:07 p.m.