calculate_baseline_decentralized_emissions_iih.RdEquation (1) of AMS-II.H consolidates greenhouse gas emissions from decentralized utility generation. The helper multiplies baseline fuel use by emission factors and optionally reports specific energy consumption when useful output data are provided.
calculate_baseline_decentralized_emissions_iih(
baseline_data,
fuel_consumption_col = "baseline_fuel_use_gj",
emission_factor_col = "baseline_emission_factor_tco2_per_gj",
useful_output_col = "baseline_useful_output_gj",
group_cols = NULL,
output_col = "baseline_emissions_tco2e",
specific_energy_col = "baseline_specific_energy_gj_per_gj"
)A tibble describing the decentralized baseline system.
Column storing baseline fuel use in GJ.
Column storing baseline emission factors in tCO2e/GJ.
Optional column storing useful thermal output (GJ). Set to NULL to skip specific energy diagnostics.
Optional character vector of grouping columns to retain in the result.
Name of the emissions column to create.
Name of the specific energy column created when useful_output_col is supplied.
A tibble with grouped baseline emissions (tCO2e) and, when requested, specific energy consumption (GJ/GJ).
baseline <- tibble::tibble(
line = c("Boiler_A", "Boiler_B"),
baseline_fuel_use_gj = c(4200, 3150),
baseline_emission_factor_tco2_per_gj = c(0.071, 0.071),
baseline_useful_output_gj = c(3600, 2700)
)
calculate_baseline_decentralized_emissions_iih(baseline, group_cols = "line")
#> # A tibble: 2 × 3
#> line baseline_emissions_tco2e baseline_specific_energy_gj_per_gj
#> <chr> <dbl> <dbl>
#> 1 Boiler_A 298. 1.17
#> 2 Boiler_B 224. 1.17