Skip to content

Commit

Permalink
Merge pull request #1955 from gabriel-abrahao/efsnew
Browse files Browse the repository at this point in the history
New source for calculating fuel extraction emission factors
  • Loading branch information
gabriel-abrahao authored Jan 29, 2025
2 parents 437e459 + f1b08f1 commit 8b43464
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
15 changes: 14 additions & 1 deletion core/datainput.gms
Original file line number Diff line number Diff line change
Expand Up @@ -922,14 +922,27 @@ $offdelim
p_abatparam_CH4(tall,all_regi,all_enty,steps)$(ord(steps) gt 201) = p_abatparam_CH4(tall,all_regi,all_enty,"201");
p_abatparam_N2O(tall,all_regi,all_enty,steps)$(ord(steps) gt 201) = p_abatparam_N2O(tall,all_regi,all_enty,"201");

parameter p_emiFossilFuelExtr(all_regi,all_enty) "methane emissions, needed for the calculation of p_efFossilFuelExtr"
*** Read methane emissions from fossil fuel extraction for calculating emission factors.
*** The base year determines whether the data comes from CEDS or EDGAR
$ifthen %cm_emifacs_baseyear% == "2005"
parameter p_emiFossilFuelExtr(all_regi,all_enty) "methane emissions in 2005 [Mt CH4], needed for the calculation of p_efFossilFuelExtr"
/
$ondelim
$include "./core/input/p_emiFossilFuelExtr.cs4r"
$offdelim
/
;
$else
parameter p_emiFossilFuelExtr(all_regi,all_enty) "methane emissions in 2020 [Mt CH4], needed for the calculation of p_efFossilFuelExtr"
/
$ondelim
$include "./core/input/p_emiFossilFuelExtr2020.cs4r"
$offdelim
/
;
$endif

* GA: These hardcoded values were probably assuming 2005 as base year, TODO: check and adjust for 2020 case
$if %cm_LU_emi_scen% == "SSP1" p_efFossilFuelExtr(regi,"pebiolc","n2obio") = 0.0047/sm_EJ_2_TWa;
$if %cm_LU_emi_scen% == "SSP2" p_efFossilFuelExtr(regi,"pebiolc","n2obio") = 0.0079/sm_EJ_2_TWa;
$if %cm_LU_emi_scen% == "SSP2_lowEn" p_efFossilFuelExtr(regi,"pebiolc","n2obio") = 0.0079/sm_EJ_2_TWa;
Expand Down
1 change: 1 addition & 0 deletions core/input/files
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ p_adj_deltacapoffset.cs4r
p_boundCapCCSindicator.cs4r
p_boundEmi.cs4r
p_emiFossilFuelExtr.cs4r
p_emiFossilFuelExtr2020.cs4r
f_nechem_emissionFactors.cs4r
f_incinerationShares.cs4r
pm_histCap.cs3r
Expand Down
4 changes: 2 additions & 2 deletions core/presolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ display p_emineg_econometric;
loop (emi2fuel(entyPe,enty),
p_efFossilFuelExtrGlo(entyPe,enty)
= sum(regi, p_emiFossilFuelExtr(regi,entyPe))
/ sum((rlf,regi), vm_fuExtr.l("2005",regi,entyPe,rlf));
/ sum((rlf,regi), vm_fuExtr.l("%cm_emifacs_baseyear%",regi,entyPe,rlf));

loop (regi,
sm_tmp = sum(rlf, vm_fuExtr.l("2005",regi,entyPe,rlf));
sm_tmp = sum(rlf, vm_fuExtr.l("%cm_emifacs_baseyear%",regi,entyPe,rlf));

p_efFossilFuelExtr(regi,entyPe,enty)$( sm_tmp )
= p_emiFossilFuelExtr(regi,entyPe) / sm_tmp;
Expand Down
4 changes: 4 additions & 0 deletions main.gms
Original file line number Diff line number Diff line change
Expand Up @@ -1847,6 +1847,10 @@ $setglobal c_CES_calibration_industry_FE_target 1
$setglobal c_testOneRegi_region EUR !! def = EUR !! regexp = [A-Z]{3}
*' cm_taxrc_RE "switch to define whether tax on (CO2 content of) energy imports is recycled to additional direct investments in renewables (wind, solar and storage)"
$setglobal cm_taxrc_RE none !! def = none !! regexp = none|REdirect
*' cm_emifacs_baseyear "base year for deriving nonCO2 emission factors"
*' (2005): Uses EDGAR data with 2005 as base year
*' (2020): Uses CEDS2024 data with 2020 as base year
$setGlobal cm_emifacs_baseyear 2005 !! def = 2005
*' cm_repeatNonOpt "should nonoptimal regions be solved again?"
*'
*' * (off): no, only infeasable regions are repeated, standard setting
Expand Down

0 comments on commit 8b43464

Please sign in to comment.