Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pik-piam/remind2
Browse files Browse the repository at this point in the history
  • Loading branch information
tabeado committed Jan 12, 2024
2 parents 4965e2a + 36bc28e commit 66ed1e5
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '222644604'
ValidationKey: '222825036'
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
- 'Warning: namespace ''.*'' is not available and has been replaced'
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'remind2: The REMIND R package (2nd generation)'
version: 1.128.4
date-released: '2024-01-09'
version: 1.129.2
date-released: '2024-01-11'
abstract: Contains the REMIND-specific routines for data and model output manipulation.
authors:
- family-names: Rodrigues
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: remind2
Title: The REMIND R package (2nd generation)
Version: 1.128.4
Date: 2024-01-09
Version: 1.129.2
Date: 2024-01-11
Authors@R: c(
person("Renato", "Rodrigues", , "[email protected]", role = c("aut", "cre")),
person("Lavinia", "Baumstark", role = "aut"),
Expand Down
8 changes: 4 additions & 4 deletions R/reportLCOE.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ reportLCOE <- function(gdx, output.type = "both"){
p47_taxCO2eq_AggFE <- readGDX(gdx,"p47_taxCO2eq_AggFE", restore_zeros=F, react = "silent")

## variables
v_costInvTeDir <- readGDX(gdx,name=c("v_costInvTeDir","vm_costInvTeDir","v_directteinv"),field="l",format="first_found")[,ttot,] ## Total direct Investment Cost in Timestep
v_costInvTeAdj <- readGDX(gdx,name=c("v_costInvTeAdj"),field="l",format="first_found")[,ttot,] ## total adjustment cost in period
vm_costInvTeDir <- readGDX(gdx,name=c("vm_costInvTeDir","v_costInvTeDir","v_directteinv"),field="l",format="first_found")[,ttot,] ## Total direct Investment Cost in Timestep
vm_costInvTeAdj <- readGDX(gdx,name=c("vm_costInvTeAdj","v_costInvTeAdj"),field="l",format="first_found")[,ttot,] ## total adjustment cost in period
vm_capEarlyReti <- readGDX(gdx,name=c("vm_capEarlyReti"),field="l",format="first_found")[,ttot,]
vm_deltaCap <- readGDX(gdx,name=c("vm_deltaCap"),field="l",format="first_found")[,ttot,]
vm_demPe <- readGDX(gdx,name=c("vm_demPe","v_pedem"),field="l",restore_zeros=FALSE,format="first_found")
Expand Down Expand Up @@ -174,13 +174,13 @@ reportLCOE <- function(gdx, output.type = "both"){
te_inv_annuity <- 1e+12 * te_annuity[,,te] *
mbind(
v_investcost[,ttot_before2005,te] * dimSums(vm_deltaCap[teall2rlf][,ttot_before2005,te],dim=3.2),
v_costInvTeDir[,ttot_from2005,te]
vm_costInvTeDir[,ttot_from2005,te]
)

te_inv_annuity_wadj <- 1e+12 * te_annuity[,,te] *
mbind(
v_investcost[,ttot_before2005,te] * dimSums(vm_deltaCap[teall2rlf][,ttot_before2005,te],dim=3.2),
v_costInvTeAdj[,ttot_from2005,te] + v_costInvTeDir[,ttot_from2005,te]
vm_costInvTeAdj[,ttot_from2005,te] + vm_costInvTeDir[,ttot_from2005,te]
)

# average LCOE components ----
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The REMIND R package (2nd generation)

R package **remind2**, version **1.128.4**
R package **remind2**, version **1.129.2**

[![CRAN status](https://www.r-pkg.org/badges/version/remind2)](https://cran.r-project.org/package=remind2) [![R build status](https://github.com/pik-piam/remind2/workflows/check/badge.svg)](https://github.com/pik-piam/remind2/actions) [![codecov](https://codecov.io/gh/pik-piam/remind2/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/remind2) [![r-universe](https://pik-piam.r-universe.dev/badges/remind2)](https://pik-piam.r-universe.dev/builds)

Expand Down Expand Up @@ -49,7 +49,7 @@ In case of questions / problems please contact Renato Rodrigues <renato.rodrigue

To cite package **remind2** in publications use:

Rodrigues R, Baumstark L, Benke F, Dietrich J, Dirnaichner A, Führlich P, Giannousakis A, Hasse R, Hilaire J, Klein D, Koch J, Kowalczyk K, Levesque A, Malik A, Merfort A, Merfort L, Morena-Leiva S, Pehl M, Pietzcker R, Rauner S, Richters O, Rottoli M, Schötz C, Schreyer F, Siala K, Sörgel B, Spahr M, Strefler J, Verpoort P, Weigmann P (2024). _remind2: The REMIND R package (2nd generation)_. R package version 1.128.4, <URL: https://github.com/pik-piam/remind2>.
Rodrigues R, Baumstark L, Benke F, Dietrich J, Dirnaichner A, Führlich P, Giannousakis A, Hasse R, Hilaire J, Klein D, Koch J, Kowalczyk K, Levesque A, Malik A, Merfort A, Merfort L, Morena-Leiva S, Pehl M, Pietzcker R, Rauner S, Richters O, Rottoli M, Schötz C, Schreyer F, Siala K, Sörgel B, Spahr M, Strefler J, Verpoort P, Weigmann P (2024). _remind2: The REMIND R package (2nd generation)_. R package version 1.129.2, <URL: https://github.com/pik-piam/remind2>.

A BibTeX entry for LaTeX users is

Expand All @@ -58,7 +58,7 @@ A BibTeX entry for LaTeX users is
title = {remind2: The REMIND R package (2nd generation)},
author = {Renato Rodrigues and Lavinia Baumstark and Falk Benke and Jan Philipp Dietrich and Alois Dirnaichner and Pascal Führlich and Anastasis Giannousakis and Robin Hasse and Jérome Hilaire and David Klein and Johannes Koch and Katarzyna Kowalczyk and Antoine Levesque and Aman Malik and Anne Merfort and Leon Merfort and Simón Morena-Leiva and Michaja Pehl and Robert Pietzcker and Sebastian Rauner and Oliver Richters and Marianna Rottoli and Christof Schötz and Felix Schreyer and Kais Siala and Björn Sörgel and Mike Spahr and Jessica Strefler and Philipp Verpoort and Pascal Weigmann},
year = {2024},
note = {R package version 1.128.4},
note = {R package version 1.129.2},
url = {https://github.com/pik-piam/remind2},
}
```
39 changes: 33 additions & 6 deletions inst/markdown/compareScenarios2/cs2_01_summary.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,33 @@ items <- c(
"FE|Gases",
"FE|Liquids",
"FE|Solids",
NULL
)
NULL)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

## FE by carrier (detailed)

```{r FE by carrier (detailed)}
items <- c(
"FE|Transport|Electricity",
"FE|Buildings|Electricity",
"FE|Industry|Electricity",
"FE|Transport|Hydrogen",
"FE|Buildings|Hydrogen",
"FE|Industry|Hydrogen",
"FE|Industry|Heat",
"FE|Buildings|Heat",
"FE|Transport|Gases",
"FE|Buildings|Gases",
"FE|Industry|Gases",
"FE|Transport|Liquids",
"FE|Buildings|Liquids",
"FE|Industry|Liquids",
"FE|Buildings|Solids",
"FE|Industry|Solids",
NULL)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

Expand All @@ -167,8 +192,8 @@ items <- c(
"FE|Industry|Gases",
"FE|Industry|Liquids",
"FE|Industry|Solids",
NULL
)
NULL)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

Expand All @@ -183,6 +208,7 @@ items <- c(
"FE|Buildings|Liquids",
"FE|Buildings|Solids",
NULL)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

Expand All @@ -195,6 +221,7 @@ items <- c(
"FE|Transport|Gases",
"FE|Transport|Liquids",
NULL)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

Expand All @@ -207,8 +234,8 @@ items <- c(
"FE|CDR|Hydrogen",
"FE|CDR|Gases",
"FE|CDR|Liquids",
NULL
)
NULL)
showAreaAndBarPlots(data, items, orderVars = "user", scales = "fixed")
```

Expand Down

0 comments on commit 66ed1e5

Please sign in to comment.