-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from JGCRI/iiasafy
Add IIASA output mode.
- Loading branch information
Showing
11 changed files
with
320 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: iamrpt | ||
Title: Convert GCAM results to the format required by various IAM experiment databases | ||
Version: 0.1.0 | ||
Version: 0.2.0 | ||
Authors@R: c( | ||
person("Robert", "Link", email = "[email protected]", role = c("aut", "cre")), | ||
person("Xavier", "Gutierrez", email = "[email protected]", role = c("aut")) | ||
|
@@ -18,6 +18,7 @@ Imports: | |
rgcam (>= 0.4.2), | ||
readr (>= 1.1.1), | ||
dplyr (>= 0.5), | ||
tidyr (>= 0.6), | ||
stringr (>= 1.2.0), | ||
assertthat (>= 0.2.0), | ||
lubridate (>= 1.6.0), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Generate the internal data for the package | ||
## This must be sourced as a script because of the way devtools::use_data works. | ||
## Source it from the top level of a development copy of the package. | ||
|
||
|
||
source('data-raw/gdpdef.R') | ||
gdpdef <- calc.gdpdef('data-raw/GDPDEF.csv') | ||
|
||
source('data-raw/energyconv.R') | ||
energyconv <- prep.energyconv() | ||
|
||
devtools::use_data(gdpdef, energyconv, internal=TRUE, overwrite=TRUE, | ||
compress='xz') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
GCAM variable,output variable,aggregation keys,aggregation function,start year,end year,filters,output units | ||
Population,Population,,,2000,2050,,thous | ||
pcGDP(PPP),GDP|PPP,,,2000,2050,,Thous80US$/per | ||
Electricity,Electricity|Generation,,,2000,2050,(matches; sector; electricity),MWh | ||
Electricity,Electricity|Total,,,2000,2050,, | ||
Electricity,Electricity|Rooftop PV,,,2000,2050,(matches; sector; elect_td_bld),MWh | ||
Electricity,Electricity|Rooftop PV|Ridiculous,,,2000,2050,"(notmatches; sector; electricity), (notmatches; sector; industrial energy use)",MWh |
Oops, something went wrong.