Skip to content

Commit

Permalink
change formula
Browse files Browse the repository at this point in the history
close #425
  • Loading branch information
0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q committed Aug 14, 2023
1 parent 9a18b8f commit b2f7ca0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions R/reportCrossVariables.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,19 @@ reportCrossVariables <- function(gdx, output = NULL, regionSubsetList = NULL,
# Energy shares
tmp <- mbind(
tmp,
setNames( # assume 8 % for transmission losses and autoconsumption of power plants
setNames(
100
* ( output[,,"SE|Electricity|Non-Biomass Renewables (EJ/yr)"]
+ output[,,"SE|Electricity|Biomass (EJ/yr)"]
)
/ 1.08
/ output[,,"FE|Electricity (EJ/yr)"],
# "gross electricity demand" is just the sum of electricity generation
# plus imports (excluding output from pump hydro storage that has no
# natural inflows)
/ ( output[,,"SE|Electricity (EJ/yr)"]
# default net imports to zero if not present in data
+ dimSums(mselect(tmp, list(d3 = 'SE|Electricity|Net Imports (EJ/yr)')),
dim = 3)
),
"Secondary Energy|Electricity|Share of renewables in gross demand|Estimation (Percent)"))

# Energy expenditures
Expand Down

0 comments on commit b2f7ca0

Please sign in to comment.