Skip to content

Commit

Permalink
switch to UNFCCC data for the input data for LULUCF emissions country…
Browse files Browse the repository at this point in the history
… accounting
  • Loading branch information
Felix Schreyer committed Oct 19, 2021
1 parent cb2908f commit e54b0b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions R/calcEmiLULUCFCountryAcc.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
calcEmiLULUCFCountryAcc <- function(subtype){


if (subtype=="PRIMAPhist") {
if (subtype=="UNFCCC") {


# take PRIMAPhist LULUCF data for now
# note: these historical LULUCF emissions data correspond neither to UNFCCC (https://di.unfccc.int/detailed_data_by_party)
# nor to EEA (https://cdr.eionet.europa.eu/de/eu/mmr/art07_inventory/ghg_inventory/envxh8awg/index_html?&page=1)
primap <- readSource("PRIMAPhist","hist")
# read in UNFCCC CRF emissions data
unfccc <- readSource("UNFCCC")

# LULUCF CO2 emissions from PRIMAP hist database from 1990 to 2015, convert to Mt CO2/yr
out <- dimReduce(primap[,paste0("y",seq(1990,2015,1)),"co2_c"][,,"CAT5"]) / 12*44
# LULUCF CO2 emissions from UNFCCC database from, convert to Mt CO2/yr
out <- collapseNames(unfccc[,,"Total LULUCF|CO2"]) / 1000
# replace NA by 0
out[is.na(out)] <- 0

} else {
"Please define a valid subtype for this function."
Expand All @@ -30,7 +30,7 @@ calcEmiLULUCFCountryAcc <- function(subtype){
list(x=out,
weight=NULL,
unit="Mt CO2/yr",
description="Historical LULUCF CO2 emissions data following country accounting taken from PRIMAPhist database")
description="Historical LULUCF CO2 emissions data following country accounting taken from UNFCCC database")
)
}

Expand Down
2 changes: 1 addition & 1 deletion R/fullREMIND.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fullREMIND <- function(rev=0) {
calcOutput('GAINSEmi', subtype="emission_factors", round=5, file="ef_gains.cs4r")
calcOutput('GAINSEmi', subtype="emissions_starting_values", round=5, file="f11_emiAPexsolve.cs4r")
calcOutput("EmissionFactors",subtype="emission_factors", round=5, file="f11_emiFacAP.cs4r")
calcOutput("EmiLULUCFCountryAcc",subtype="PRIMAPhist", round=5, file="p_EmiLULUCFCountryAcc.cs4r")
calcOutput("EmiLULUCFCountryAcc",subtype="UNFCCC", round=5, file="p_EmiLULUCFCountryAcc.cs4r")

#-------------- energy/technology parameters ---------------------------------------------------------
calcOutput("PotentialHydro", round=3, file="f_maxProdGradeRegiHydro.cs3r")
Expand Down

0 comments on commit e54b0b2

Please sign in to comment.