pik-piam / remind2

The remind2 package contains the REMIND-specific routines for data and model output manipulation.
0 stars 39 forks source link

`Secondary Energy|Electricity|Share of renewables in gross demand|Estimation` #425

Closed 0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q closed 11 months ago

0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q commented 1 year ago

It might arise from a mistaken understanding of "gross demand" that I had some years ago, namely that it was more connected to the final energy demand. In fact, "gross electricity demand" is just the sum of electricity generation plus imports (excluding output from pump hydro storage that has no natural inflows).

accordingly, the best approximation for "Secondary Energy|Electricity|Share of renewables in gross demand|Estimation" would be

  100 
* ( output[,,"SE|Electricity|Non-Biomass Renewables (EJ/yr)"] 
  + output[,,"SE|Electricity|Biomass (EJ/yr)"]
  )
/ ( output[,,"SE|Electricity (EJ/yr)"]
  + output[,,"SE|Electricity|Net Imports (EJ/yr)"]
  )

[↑]

0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q commented 11 months ago

@robertpietzcker That will not work, as SE|Electricity|Net Imports is not available for all realisations of the trade module. https://github.com/pik-piam/remind2/blob/cafb0ddd1999c63a12fb9e4c771c4ee9f521a6e1/R/reportSE.R#L350-L365

robertpietzcker commented 11 months ago

Ok.

I know very little R magic, so a simple question, @0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q
Would it be possible to simply always report the variable SE|Electricity|Net Imports, and if there is no entry, set it to 0 (because if there is no variable in REMIND, then clearly imports were 0)?

0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q commented 11 months ago

Sure can do.