Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
d5a9c5e
update structuremappingIO_outputs to be applied after IEA data postpr…
fbenke-pik Mar 12, 2026
5846681
remove duplicate entries (empty mappings listed several times)
fbenke-pik Mar 12, 2026
9852a3d
remove duplicate entries (actual mappings listed several times)
fbenke-pik Mar 12, 2026
4c97ec0
update list of available product-flow entries after IEA postprocessing
fbenke-pik Mar 12, 2026
f6c9433
add IEA data postprocessing
fbenke-pik Mar 12, 2026
f3fc3c7
run buildLibrary
fbenke-pik Mar 12, 2026
469c50f
add export
fbenke-pik Mar 12, 2026
7c34852
Merge branch 'master' into iea_map
fbenke-pik Mar 24, 2026
c88b9d0
Merge branch 'master' of github.com:pik-piam/mrcommons into iea_map
fbenke-pik Apr 27, 2026
f01dba0
remove hard coded dependency on mapping from toolFixIEAdataForIndustr…
fbenke-pik May 5, 2026
98bfc0c
add helper calcIEACorrected
fbenke-pik May 12, 2026
31c9e71
remove debug code
fbenke-pik May 12, 2026
5e7d20e
fix minor bug
fbenke-pik May 12, 2026
4fa7dde
remove temporal averaging
fbenke-pik May 19, 2026
6c4080d
fix INONSPEC redistribution in IEA tool function
fbenke-pik May 26, 2026
b3dabcc
Merge branch 'master' of github.com:pik-piam/mrcommons into iea_map
fbenke-pik May 27, 2026
6dba509
remove interpolation from INONSPEC redistribution in IEA tool function
fbenke-pik May 29, 2026
341fa00
fix merging of fixed industry data
fbenke-pik Jun 1, 2026
2ecca37
remove threshold parameter from tool function
fbenke-pik Jun 4, 2026
56908f2
Merge branch 'master' of github.com:pik-piam/mrcommons into iea_map
fbenke-pik Jun 8, 2026
9c9b01e
Merge branch 'master' of github.com:pik-piam/mrcommons into iea_map
fbenke-pik Jun 10, 2026
ce05df4
remove OVENCOKE and COALTAR from structure mapping
fbenke-pik Jun 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
.RData
.Ruserdata
.positai
mrcommons.Rproj
*.Rproj
.Rproj.user
.positai

2 changes: 1 addition & 1 deletion .lintr
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
linters: lucode2::lintrRules()
linters: lucode2::lintrRules(modification = list(pipe_consistency_linter = pipe_consistency_linter(pipe = c("auto"))))
encoding: "UTF-8"
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Depends:
mstools (>= 0.6.0),
R (>= 2.10.0)
Imports:
assertr,
countrycode,
data.table,
dplyr,
Expand Down
16 changes: 16 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export(readFeedShareReg)
export(readHoulton2018)
export(readJRC_IDEES)
export(toolCalcIEAfromStructureMappingPEFE)
export(toolFixIEAdataForIndustrySubsectors)
export(toolPregnant)
export(toolSplitBiomass)
import(GDPuc)
Expand All @@ -35,6 +36,8 @@ import(mrdrivers)
import(mrfaocore)
import(mrlandcore)
import(mstools)
importFrom(assertr,assert)
importFrom(assertr,not_na)
importFrom(countrycode,countrycode)
importFrom(data.table,":=")
importFrom(data.table,as.data.table)
Expand All @@ -44,11 +47,13 @@ importFrom(dplyr,.data)
importFrom(dplyr,`%>%`)
importFrom(dplyr,across)
importFrom(dplyr,all_of)
importFrom(dplyr,anti_join)
importFrom(dplyr,arrange)
importFrom(dplyr,bind_cols)
importFrom(dplyr,bind_rows)
importFrom(dplyr,count)
importFrom(dplyr,distinct)
importFrom(dplyr,everything)
importFrom(dplyr,filter)
importFrom(dplyr,full_join)
importFrom(dplyr,group_by)
Expand All @@ -65,7 +70,9 @@ importFrom(dplyr,relocate)
importFrom(dplyr,rename)
importFrom(dplyr,right_join)
importFrom(dplyr,select)
importFrom(dplyr,semi_join)
importFrom(dplyr,summarise)
importFrom(dplyr,ungroup)
importFrom(hdf5r,h5file)
importFrom(luscale,getAggregationMatrix)
importFrom(luscale,groupAggregate)
Expand Down Expand Up @@ -138,8 +145,13 @@ importFrom(purrr,walk)
importFrom(quitte,add_countrycode_)
importFrom(quitte,as.quitte)
importFrom(quitte,calc_addVariable)
importFrom(quitte,cartesian)
importFrom(quitte,character.data.frame)
importFrom(quitte,inline.data.frame)
importFrom(quitte,interpolate_missing_periods)
importFrom(quitte,interpolate_missing_periods_)
importFrom(quitte,overwrite)
importFrom(quitte,sum_total_)
importFrom(raster,"res<-")
importFrom(raster,aggregate)
importFrom(raster,area)
Expand Down Expand Up @@ -183,14 +195,18 @@ importFrom(terra,tmpFiles)
importFrom(terra,vect)
importFrom(tibble,as_tibble)
importFrom(tibble,tibble)
importFrom(tibble,tribble)
importFrom(tidyr,complete)
importFrom(tidyr,crossing)
importFrom(tidyr,drop_na)
importFrom(tidyr,expand_grid)
importFrom(tidyr,gather)
importFrom(tidyr,matches)
importFrom(tidyr,nesting)
importFrom(tidyr,pivot_longer)
importFrom(tidyr,replace_na)
importFrom(tidyr,separate_wider_delim)
importFrom(tidyr,spread)
importFrom(tidyr,starts_with)
importFrom(tidyr,unite)
importFrom(tidyr,unnest)
Expand Down
6 changes: 4 additions & 2 deletions R/calcIOEdgeBuildings.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ calcIOEdgeBuildings <- function(subtype = c("output_EDGE", "output_EDGE_building
subtype <- match.arg(subtype)
ieaVersion <- match.arg(ieaVersion)



# READ -----------------------------------------------------------------------

# convert from ktoe to EJ
Expand All @@ -40,9 +38,13 @@ calcIOEdgeBuildings <- function(subtype = c("output_EDGE", "output_EDGE_building
) * 4.1868e-5


# apply IEA data postprocessing
# TODO adjust the mapping
data <- toolFixIEAdataForIndustrySubsectors(data)

# AGGREGATE ------------------------------------------------------------------

# TODO separate the mapping
target <- switch(subtype,
output_EDGE = "EDGEitems",
output_EDGE_buildings = "EDGE_buildings"
Expand Down
Loading