diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 13ee3d1..ad9bcaf 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -4,6 +4,7 @@ on:
push:
branches:
- gcam-v7.0
+ - dev
jobs:
R-CMD:
diff --git a/.github/workflows/docker_impl.yaml b/.github/workflows/docker_impl.yaml
index 0196154..d267539 100644
--- a/.github/workflows/docker_impl.yaml
+++ b/.github/workflows/docker_impl.yaml
@@ -4,6 +4,7 @@ on:
push:
branches:
- gcam-v7.0
+ - dev
jobs:
build:
diff --git a/.github/workflows/draft-pdf.yml b/.github/workflows/draft-pdf.yml
new file mode 100644
index 0000000..b2c793f
--- /dev/null
+++ b/.github/workflows/draft-pdf.yml
@@ -0,0 +1,28 @@
+name: draft-pdf
+
+on:
+ push:
+ branches:
+ - gcam-v7.0
+
+jobs:
+ paper:
+ runs-on: ubuntu-latest
+ name: Paper Draft
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Build draft PDF
+ uses: openjournals/openjournals-draft-action@master
+ with:
+ journal: joss
+ # This should be the path to the paper within your repo.
+ paper-path: paper/paper.md
+ - name: Upload
+ uses: actions/upload-artifact@v1
+ with:
+ name: paper
+ # This is the output path where Pandoc will write the compiled
+ # PDF. Note, this should be the same directory as the input
+ # paper.md
+ path: paper/paper.pdf
\ No newline at end of file
diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml
index 215c521..30b8d2d 100644
--- a/.github/workflows/test_coverage.yml
+++ b/.github/workflows/test_coverage.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- gcam-v7.0
+ - dev
jobs:
test:
diff --git a/.gitignore b/.gitignore
index 0b23954..9001528 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,3 +49,7 @@ prova*
inst/doc
*.tiff
+tests/testthat/testInputs/v_7.0/database_basexdb_ref_gcamv7.0_test_specify_queries.dat
+tests/testthat/testInputs/v_7.0/gcamv7.0_test_specify_queries_standardized.csv
+tests/testthat/testInputs/v_7.0/gcamv7.0_test_specify_queries_standardized.RData
+tests/testthat/testInputs/v_7.0/gcamv7.0_test_specify_queries_standardized.xlsx
diff --git a/DESCRIPTION b/DESCRIPTION
index a5ac14e..fdd9a5b 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -8,8 +8,8 @@ Authors@R: c(person("Rodés-Bachs", "Clàudia", email = "claudia.rodes@bc3resear
person("Van de Ven", "Dirk-Jan", email = "dj.vandeven@bc3research.org", role = c("aut"),
comment = c(ORCID = "0000-0001-9120-564X")))
Description: R package to produce standard IPCC reports from GCAM output.
-URL: https://github.com/JGCRI/gcamreport
-BugReports: https://github.com/JGCRI/gcamreport/issues
+URL: https://github.com/bc3LC/gcamreport
+BugReports: https://github.com/bc3LC/gcamreport/issues
Depends: R (>= 3.5.0)
License: MIT + file LICENSE
Encoding: UTF-8
@@ -17,11 +17,9 @@ LazyData: true
RoxygenNote: 7.3.1
Imports:
usethis,
- knitr,
markdown,
rlang,
readr,
- data.table,
magrittr,
dplyr,
tibble,
@@ -29,7 +27,6 @@ Imports:
rgcam,
ggplot2,
stringr,
- stringi,
here,
xml2,
shiny,
@@ -42,6 +39,7 @@ Imports:
rrapply (>= 1.2.6),
rpackageutils
Suggests:
+ knitr,
rprojroot,
rmarkdown,
testthat (>= 3.0.0),
diff --git a/Dockerfile b/Dockerfile
index b6cb611..a0e0abb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,7 +20,6 @@ RUN R -e "remotes::install_github('JGCRI/rgcam')"
RUN R -e "install.packages('knitr')"
RUN R -e "install.packages('markdown')"
RUN R -e "install.packages('readr')"
-RUN R -e "install.packages('stringi')"
RUN R -e "install.packages('rlang')"
RUN R -e "install.packages('readr')"
RUN R -e "install.packages('data.table')"
diff --git a/GCAM_KAIST7.R b/GCAM_KAIST7.R
new file mode 100644
index 0000000..259967a
--- /dev/null
+++ b/GCAM_KAIST7.R
@@ -0,0 +1,35 @@
+devtools::load_all()
+
+
+
+
+
+# available variable
+available_variables()
+
+
+
+# develop
+
+generate_report(db_path ="E:/gcam-v7.0-Windows-Release-Package_GGS621/", # path to database under gcamreport folder
+ db_name = "testdb", # db folder name
+ scenarios = c('Reference', 'NZ_Electricity_Nuc_Policy'), ## scenario names
+ prj_name = "GCAM-KAIST7.dat", final_year = 2100,
+ desired_regions = c('South Korea', 'Japan'),
+ desired_variables = c(
+ #'Agricultural*',
+ #'Emissions*',
+ # 'Fertilizer',
+ #'Primary Energy*',
+ #'Secondary Energy*',
+ #'Final Energy*',
+ 'GDP|MER', # MER in $2010USD
+ "GDP|PPP", # PPP in $2017USD
+ #'Land Cover*',
+ 'Population'
+ # 'Forestry Demand',
+ #'Land Cover*'
+ # 'Value Added'
+ ),
+ save_output = TRUE, launch_ui = TRUE)
+
diff --git a/LICENCE b/LICENCE
new file mode 100644
index 0000000..c0f09e9
--- /dev/null
+++ b/LICENCE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 BC3 Low Carbon department
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 907a74b..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-BSD 2-Clause License
-
-Copyright (c) 2023, BC3 Low Carbon department
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/NAMESPACE b/NAMESPACE
index 078c556..0629ac7 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -94,11 +94,11 @@ export(load_query)
export(load_variable)
export(reset_first_load)
export(start_with_pattern)
+export(transform_to_xml)
export(update_user_choices_plot)
import(dplyr)
import(ggplot2)
import(rgcam)
-importFrom(data.table,as.data.table)
importFrom(dplyr,anti_join)
importFrom(dplyr,bind_rows)
importFrom(dplyr,distinct)
diff --git a/R/app_functions.R b/R/app_functions.R
index d075a44..4c8c86d 100644
--- a/R/app_functions.R
+++ b/R/app_functions.R
@@ -131,6 +131,7 @@ check_user_choices_plot <- function(vars, scen, years, reg, grouped) {
#' @export
update_user_choices_plot <- function(selected_scen, selected_years,
tree_regions, tree_variables, sidebarItemExpanded) {
+
# get selected regions and variables from input
sel_reg_ini <- get_selected(tree_regions, format = "slices")
sel_vars_ini <- get_selected(tree_variables, format = "slices")
@@ -229,7 +230,7 @@ reset_first_load <- function() {
#' @keywords internal
#' @importFrom magrittr %>%
#' @importFrom dplyr filter select
-#' @importFrom data.table as.data.table
+#' @importFrom tibble as_tibble
#' @return subseted dataset
#' @export
do_data_sample <- function(sdata, sel_scen, sel_years, sel_cols, sel_vars, sel_reg,
@@ -260,7 +261,7 @@ do_data_sample <- function(sdata, sel_scen, sel_years, sel_cols, sel_vars, sel_r
filter(Variable %in% vars) %>%
filter(Region %in% reg) %>%
select(c(sel_cols, sel_years)) %>%
- as.data.table()
+ as_tibble()
return(data_sample)
}
@@ -336,7 +337,6 @@ do_unmount_tree <- function(base_tree, type) {
na.omit <- NULL
if (length(base_tree) > 0) {
- save(base_tree, file = "test_unmount_tree_variables.RData")
# transform dataset to list of items with delimiter |
ll <- rrapply(
base_tree,
diff --git a/R/data.R b/R/data.R
index d26e954..a8ff285 100644
--- a/R/data.R
+++ b/R/data.R
@@ -1,3 +1,29 @@
+#' queries_general
+#'
+#' @source local
+#' @format vector
+#' @description gcamreport queries compatible with GCAM 7.0 version.
+#' Contain all queries except for nonCO2 queries
+#' @examples
+#' \dontrun{
+#' library(gcamreport)
+#' gcamreport::queries_general
+#' }
+"queries_general"
+
+#' queries_nonCO2
+#'
+#' @source local
+#' @format vector
+#' @description gcamreport nonCO2 query compatible with GCAM 7.0 version.
+#' @examples
+#' \dontrun{
+#' library(gcamreport)
+#' gcamreport::queries_nonCO2
+#' }
+"queries_nonCO2"
+
+
#' emissions_list
#'
#' @source local
diff --git a/R/functions.R b/R/functions.R
index cc3f020..01220ab 100644
--- a/R/functions.R
+++ b/R/functions.R
@@ -5,6 +5,25 @@ options(dplyr.summarise.inform = FALSE)
#########################################################################
+#' transform_to_xml
+#'
+#' Return xml document from a given queries list
+#' @param parsed_queries_list parsed list of queries
+#' @return xml document containing the given queries list
+#' @importFrom xml2 read_xml
+#' @keywords internal utils
+#' @export
+transform_to_xml <- function(parsed_queries_list) {
+ queries <- lapply(parsed_queries_list, function(query) {
+ query_title <- query$title
+ query_xml <- paste("\n \n", query$query, "\n", sep = "")
+ return(query_xml)
+ })
+ xml_string <- paste("", paste(queries, collapse = ""), "", sep = "")
+ xml_doc <- read_xml(xml_string)
+ return(xml_doc)
+}
+
#' start_with_pattern
#'
#' Return the vector elements starting with the specified parameters
@@ -223,17 +242,43 @@ get_population <- function() {
#' @importFrom dplyr mutate select left_join rename
#' @importFrom magrittr %>%
#' @export
+
+
+
+
get_gdp_ppp <- function() {
value <- pop_mill <- NULL
- GDP_PPP_clean <<-
- getQuery(prj, "GDP per capita PPP by region") %>%
+### Codes below need to be inside of function(), otherwise Build -> Install error (Ctrl+Shift+D)
+ ppp_row<<- getQuery(prj, "GDP per capita PPP by region") %>%
left_join(population_clean %>% rename(pop_mill = value), by = c("scenario", "region", "year")) %>%
mutate(
- value = value * pop_mill * gcamreport::convert$conv_90USD_10USD,
+ value = value * pop_mill * gcamreport::convert$conv_90USD_10USD, #### $2010USD
+ var = "GDP|PPP") %>%
+ select(-pop_mill) %>%
+ filter(region !='South Korea')
+
+ ppp_kor <<-getQuery(prj, "GDP MER by region") %>% ## GDP MER by region unit is million 1990 USD
+ filter(region =="South Korea") %>%
+ left_join(PPP_MER_KOR, by ='year') %>%
+ mutate(
+ value = value * gcamreport::convert$conv_million_billion * #MER
+ gcamreport::convert$conv_90USD_17USD * #$2017USD
+ conversion_ratio, #MER to PPP
var = "GDP|PPP"
) %>%
+ select(-conversion_ratio)
+
+
+ GDP_PPP_clean <<-
+ bind_rows(ppp_row, ppp_kor) %>%
select(all_of(gcamreport::long_columns))
+
+# GDP_PPP_clean <<-
+# ppp_row %>% left_join(ppp_kor, by = c("scenario", "region", "year", "var", "Units")) %>%
+# mutate(value = ifelse(region =="South Korea", value.y, value.x),
+# var = "GDP|PPP") %>%
+# select(all_of(gcamreport::long_columns))
}
diff --git a/R/gcamreport.R b/R/gcamreport.R
index 8dbc052..9748946 100644
--- a/R/gcamreport.R
+++ b/R/gcamreport.R
@@ -1,8 +1,8 @@
#' gcamreport
#'
#' \itemize{
-#' \item Github: https://github.com/JGCRI/gcamreport
-#' \item Webpage: https://jgcri.github.io/gcamreport/}
+#' \item Github: https://github.com/bc3LC/gcamreport
+#' \item Webpage: https://bc3lc.github.io/gcamreport/}
#'
#' @docType _PACKAGE
#' @name gcamreport
diff --git a/R/main.R b/R/main.R
index fb3dfa7..72b7a0d 100644
--- a/R/main.R
+++ b/R/main.R
@@ -9,18 +9,26 @@
#' @param desired_regions desired regions to consider. By default, 'All'. Otherwise, specify a vector with all the considered regions.
#' To know all possible regions, run `available_regions()`. ATTENTION: the considered regions will make up "World".
#' In case the project dataset needs to be created, it will be produced with only the specified regions.
+#' @param queries_nonCO2_file full path to an xml query file (including file name and extension) designed to load long nonCO2 queries:
+#' "nonCO2 emissions by sector (excluding resource production)" and "nonCO2 emissions by region". By default it points to the
+#' gcamreport nonCO2 query file, compatible with the latest GCAM version and necessary to report some of the standardized variables.
#' @return dataframe with the data from the query.
#' @importFrom rgcam addSingleQuery localDBConn
#' @importFrom xml2 read_xml xml_find_first
#' @importFrom dplyr bind_rows
#' @export
-data_query <- function(type, db_path, db_name, prj_name, scenarios, desired_regions = "All") {
+data_query <- function(type, db_path, db_name, prj_name, scenarios, desired_regions = "All",
+ queries_nonCO2_file = gcamreport::queries_nonCO2) {
if (identical(desired_regions, "All")) {
desired_regions <- NULL
}
dt <- data.frame()
- xml <- read_xml("inst/extdata/queries/queries_gcamreport_gcam7.0_nonCO2.xml")
+ if (is.list(queries_nonCO2_file)) {
+ xml <- transform_to_xml(queries_nonCO2_file)
+ } else {
+ xml <- read_xml(queries_nonCO2_file)
+ }
qq <- xml_find_first(xml, paste0("//*[@title='", type, "']"))
for (sc in scenarios) {
@@ -133,12 +141,19 @@ load_project <- function(project_path, desired_regions = "All", scenarios = NULL
#' In case the project dataset needs to be created, it will be produced with only the specified variables. ATTENTION:
#' the global variables such as "Emissions" will be computed considering only the selected variables, for instance "Emissions|CO2",
#' and will no account for other variables, such as "Emissions|CH4" or "Emissions|NH3".
-#' @return loaded project into global environment.
+#' @param queries_general_file full path to a general xml query file (including file name and extension). By default it points to the
+#' gcamreport general query file, compatible with the latest GCAM version and able to report all standardized variables.
+#' @param queries_nonCO2_file full path to an xml query file (including file name and extension) designed to load long nonCO2 queries:
+#' "nonCO2 emissions by sector (excluding resource production)" and "nonCO2 emissions by region". By default it points to the
+#' gcamreport nonCO2 query file, compatible with the latest GCAM version and necessary to report some of the standardized variables.
+#' @return loaded project into global environment and local saved project.
#' @import rgcam
#' @import dplyr
#' @export
create_project <- function(db_path, db_name, prj_name, scenarios = NULL,
- desired_regions = "All", desired_variables = "All") {
+ desired_regions = "All", desired_variables = "All",
+ queries_general_file = gcamreport::queries_general,
+ queries_nonCO2_file = gcamreport::queries_nonCO2) {
Internal_variable <- Variable <- required <- available_scenarios <- name <- NULL
# rm variable "prj" from the environment if exists
@@ -158,19 +173,23 @@ create_project <- function(db_path, db_name, prj_name, scenarios = NULL,
if (is.null(scenarios)) {
scenarios <- available_scenarios
} else {
- if (length(scenarios) > length(available_scenarios)) {
- check_scen <- setdiff(scenarios, available_scenarios)
- tmp <- paste(check_scen, collapse = ", ")
- if (length(check_scen) > 1) stop("The desired scenarios ", tmp, " are not present in the database.\n")
- if (length(check_scen) == 1) stop("The desired scenario ", tmp, " is not present in the database.\n")
- }
+ check_scen <- setdiff(scenarios, available_scenarios)
+ tmp <- paste(check_scen, collapse = ", ")
+ if (length(check_scen) > 1) stop("The desired scenarios ", tmp, " are not present in the database.\n")
+ if (length(check_scen) == 1) stop("The desired scenario ", tmp, " is not present in the database.\n")
}
- # read the queries file
- queryFile <- "inst/extdata/queries/queries_gcamreport_gcam7.0_complete.xml"
- queries_short <- parse_batch_query(queryFile)
- queryFile <- "inst/extdata/queries/queries_gcamreport_gcam7.0_nonCO2.xml"
- queries_large <- parse_batch_query(queryFile)
+ # read the query file
+ if (is.list(queries_general_file)) {
+ queries_short <- queries_general_file
+ } else {
+ queries_short <- parse_batch_query(queries_general_file)
+ }
+ if (is.list(queries_nonCO2_file)) {
+ queries_large <- queries_nonCO2_file
+ } else {
+ queries_large <- parse_batch_query(queries_nonCO2_file)
+ }
# subset the queries necessary for the selected variables
if (!(length(desired_variables) == 1 && desired_variables == "All")) {
@@ -471,7 +490,13 @@ available_variables <- function(print = TRUE) {
#' database or the project file, and using a default name containing the project name with 'standardized' tag.
#' In case of specifying the `output_file`, introduce a whole path (e.g. /path/to/output/fileName) without extension tag, it will be automatically added.
#' @param launch_ui if TRUE, launch User Interface, Do not launch it otherwise.
-#' @return RData, CSV, and XLSX datafile with the desired variables & launches user interface.
+#' @param queries_general_file full path to a general xml query file (including file name and extension). By default it points to the
+#' gcamreport general query file, compatible with the latest GCAM version and able to report all standardized variables.
+#' @param queries_nonCO2_file full path to an xml query file (including file name and extension) designed to load long nonCO2 queries:
+#' "nonCO2 emissions by sector (excluding resource production)" and "nonCO2 emissions by region". By default it points to the
+#' gcamreport nonCO2 query file, compatible with the latest GCAM version and necessary to report some of the standardized variables.
+#' @return RData, CSV, and XLSX saved datafiles with the desired standardized variables, launches user interface, and save the rgcam
+#' project file (if created).
#' @import dplyr
#' @importFrom tidyr replace_na
#' @importFrom utils write.csv
@@ -480,7 +505,9 @@ available_variables <- function(print = TRUE) {
#' @export
generate_report <- function(db_path = NULL, db_name = NULL, prj_name, scenarios = NULL, final_year = 2100,
desired_variables = "All", desired_regions = "All", desired_continents = "All",
- save_output = TRUE, output_file = NULL, launch_ui = TRUE) {
+ save_output = TRUE, output_file = NULL, launch_ui = TRUE,
+ queries_general_file = gcamreport::queries_general,
+ queries_nonCO2_file = gcamreport::queries_nonCO2) {
continent <- region <- name <- Variable <- Internal_variable <- required <- prj_loaded <- NULL
# boolean variable
@@ -574,7 +601,8 @@ generate_report <- function(db_path = NULL, db_name = NULL, prj_name, scenarios
# create project
create_project(
db_path, db_name, prj_name, scenarios,
- desired_regions, desired_variables
+ desired_regions, desired_variables,
+ queries_general_file, queries_nonCO2_file
)
}
diff --git a/README.md b/README.md
index 2850994..25698ed 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,9 @@
# gcamreport
[](https://www.repostatus.org/#active)
-[](https://github.com/bc3LC/gcamreport/actions/workflows/docs.yaml) [](https://github.com/bc3LC/gcamreport/actions/workflows/pages/pages-build-deployment) [](https://github.com/bc3LC/gcamreport/actions/workflows/test_coverage.yml) [](https://codecov.io/gh/bc3LC/gcamreport) [](https://github.com/bc3LC/gcamreport/actions/workflows/docker_impl.yaml) [](https://github.com/bc3LC/gcamreport/actions/workflows/build.yaml)[](https://doi.org/10.5281/zenodo.10371722)
-[](https://github.com/bc3LC/gcamreport/blob/paper/paper/paper.pdf)
+[](https://github.com/bc3LC/gcamreport/actions/workflows/docs.yaml) [](https://github.com/bc3LC/gcamreport/actions/workflows/pages/pages-build-deployment) [](https://github.com/bc3LC/gcamreport/actions/workflows/test_coverage.yml) [](https://codecov.io/gh/bc3LC/gcamreport) [](https://github.com/bc3LC/gcamreport/actions/workflows/docker_impl.yaml) [](https://github.com/bc3LC/gcamreport/actions/workflows/build.yaml)
+[](https://doi.org/10.5281/zenodo.10371722)
+[](https://github.com/bc3LC/gcamreport/blob/gcam-v7.0/paper/paper.pdf)
[](https://joss.theoj.org/papers/816fd8765945cd5f6fe6d8d1fefdde19)
@@ -22,12 +23,16 @@
- [Installation Guide](#installation-guide)
- [With R](#with-r)
+
+ - [Light mode installation](#with-R-light-mode-installation)
+
+ - [Full mode installation](#with-R-full-mode-installation)
- [With Docker](#with-docker)
- [Getting Started](#get-started)
-- [Warning and Error Messages](#bugs)
+- [Warnings and Error Messages](#bugs)
@@ -41,7 +46,7 @@
[Back to Contents](#contents)
-`gcamreport` is a tool that generates a consistent dataset from any scenario run by the Global Change Analysis Model ([GCAM](http://www.globalchange.umd.edu/gcam/)), which meets the reporting requirements of the Integrated Assessment Modeling Consortium ([IAMC](https://www.iamconsortium.org/)). Additionally, `gcamreport` includes an interactive user widget that allows users to create and download plots, as well as to download reduced versions of the formated dataset in table format.
+`gcamreport` is a tool that generates a consistent dataset from any scenario run by the Global Change Analysis Model ([GCAM](http://www.globalchange.umd.edu/gcam/)) that meets the reporting requirements of the Integrated Assessment Modeling Consortium ([IAMC](https://www.iamconsortium.org/)). In addition, `gcamreport` includes an interactive user widget that allows users to generate and download plots live, as well as download reduced versions of the formatted dataset in spreadsheet format.
@@ -55,17 +60,52 @@
[Back to Contents](#contents)
-There are two equivalent possibilities to make use of this package:
+There are multiple equivalent ways to install this package:
### With R
+There are two ways to install the `gcamreport` package through R. The [light mode installation](#with-R-light-mode-installation) requires only R as it installs the `gcamreport` package directly from the GitHub repository. It is suitable for general use of the package but not compatible with the user interface. The [full mode installation](#with-R-full-mode-installation) requires R, Rstudio and cloning the GitHub repository. It is suitable for general use of the package and allows you to launch the user interface. It is also the best option if you are actively developing or modifying the `gcamreport` package, as it allows you to modify the mappings and functions to create suitable versions for your GCAM model.
+
+#### Light mode installation
+
1. Requirements
- - R (to download click [here](https://www.r-project.org/))
+ - R (to download, click [here](https://www.r-project.org/))
+
+
+
+
- - Rstudio (to download click [here](https://www.rstudio.com/))
+2. Open R and install the `gcamreport` package:
- - Git (to download click [here](https://git-scm.com/downloads/))
+``` r
+install.packages('devtools')
+devtools::install_github('bc3LC/gcamreport')
+```
+
+Now `gcamreport` package is fully loaded. Enjoy! :smile:
+
+**Note**:boom:: If you want to install specific `gcamreport` versions, indicate the tag or branch name when running the installation command. For instance:
+
+``` r
+# to install the taged version "v6.0.1"
+devtools::install_github('bc3LC/gcamreport@v6.0.1')
+
+# to install the branch version "gcam-v6.0"
+devtools::install_github('bc3LC/gcamreport@gcam-v6.0')
+```
+
+
+
+#### Full mode installation
+
+1. Requirements
+
+ - R (to download, click [here](https://www.r-project.org/))
+
+ - Rstudio (to download, click [here](https://www.rstudio.com/))
+
+ - Git (to download, click [here](https://git-scm.com/downloads/))
2. Open git bash in the folder where you want to clone the repository and clone it:
@@ -73,35 +113,37 @@ There are two equivalent possibilities to make use of this package:
git clone https://github.com/bc3LC/gcamreport.git
```
-3. Load `gcamreport` package. There are two options:
+3. Load the `gcamreport` package: Open the `gcamreport` folder you just cloned and double-click the `gcamreport.Rproj` file. RStudio should open the project. Load the library:
- a) Open the `gcamreport` folder you just cloned and double-click the `gcamreport.Rproj` file. RStudio should open the project. Load the library:
-
- ``` r
- install.packages('devtools')
- devtools::load_all()
- ```
-
- b) Open Rstudio (it does not matter the Rproject) and load the library:
-
- ``` r
- install.packages('remotes')
- remotes::install_github("bc3LC/gcamreport") #you can skip all updates in case you are asked
- library(gcamreport)
- ```
-
+``` r
+install.packages('devtools')
+devtools::load_all()
+```
Now `gcamreport` package is fully loaded. Enjoy! :smile:
+**Note**:boom:: If you want to install specific `gcamreport` versions, indicate the tag or branch name when cloning the repository. For instance:
+
+``` bash
+# to clone the taged version "v6.0.1":
+git clone --branch v6.0.1 --single-branch https://github.com/bc3LC/gcamreport.git
+
+# to clone the branch version "gcam-v6.0":
+git clone --branch gcam-v6.0 https://github.com/bc3LC/gcamreport.git
+```
+
+
### With Docker
+This installation method allows you not to worry about the R libraries and dependencies. Docker provides you with an already updated environment suitable for running the `gcamreport` package.
+
1. Requirements
- - Docker (to download click [here](https://docs.docker.com/get-docker/))
+ - Docker Desktop (to download, click [here](https://docs.docker.com/get-docker/))
- - Git (to download click [here](https://git-scm.com/downloads))
+ - Git (to download, click [here](https://git-scm.com/downloads))
2. Open git bash in the folder where you want to clone the repository and clone it:
@@ -117,7 +159,7 @@ git clone https://github.com/bc3LC/gcamreport.git
docker pull claudiarodes/gcamreport_docker:gcam-v7.0-v2
```
-**Note**:exclamation:: this step requires 13.5GB of free space in your computer.
+**Note**:exclamation:: This step requires 13.5GB of free space in your computer.
5. Run the Docker container using your full path to the `gcamreport` folder:
@@ -125,7 +167,7 @@ docker pull claudiarodes/gcamreport_docker:gcam-v7.0-v2
docker run -v /path/to/gcamreport:/app -p 4000:3838 -it claudiarodes/gcamreport_docker:gcam-v7.0-v2
```
-This should prompt an R terminal in your console.
+This should prompt an R console in your terminal.
6. Install the `gcamreport` package in the new R console:
@@ -134,11 +176,27 @@ remotes::install_github("bc3LC/gcamreport") #you can skip all updates in case yo
library(gcamreport)
```
-**Note**:exclamation:: the local files to be accessed must be inside the `gcamreport` folder, which is considered now as the root directory of the R session. Inside the R session, it is referred to as `/app`.
+Now `gcamreport` package is fully loaded. Enjoy! :smile:
-**Note**:exclamation:: to use again the docker image, you can simply run steps 3, 5 and 6, since the docker image is already on your computer.
-Now `gcamreport` package is fully loaded. Enjoy! :smile:
+**Note**:exclamation:: To access local files, you should place them in the `gcamreport` folder, which is now considered the root of the R session. Inside the R session it is referred to as `/app`.
+
+**Note**:exclamation:: To reuse the docker image, you can simply perform steps 3, 5, and 6, since the docker image is already on your computer.
+
+**Note**:exclamation:: If you followed the [Docker installation](#with-Docker), to open the user interface (UI) once it has been launched, either go to the Docker Desktop and type the last port started, or type in your browser.
+
+
+
+
+**Note**:boom:: If you want to install previous `gcamreport` versions, indicate the tag or branch name when cloning the repository (step 2). For instance:
+
+``` bash
+# to clone the taged version "v6.0.1":
+git clone --branch v6.0.1 --single-branch https://github.com/bc3LC/gcamreport.git
+
+# to clone the branch version "gcam-v6.0":
+git clone --branch gcam-v6.0 https://github.com/bc3LC/gcamreport.git
+```
@@ -156,15 +214,12 @@ Now `gcamreport` package is fully loaded. Enjoy! :smile:
The `gcamreport` package consists of a set of functions divided into two different blocks:
-- Dataset generation: it creates or loads an existing project and automatically saves the generated dataset that meets the reporting requirements of [IAMC](https://www.iamconsortium.org/). Main function: `generate_report()`. For more information look at this [tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html) or type `?generate_report` in your R console. If you obtain some warning or error messages, it might be useful to look at the [Warning and Error Messages](#bugs) section.
-
-- Interactive user block: it launches an interactive widget to display in table format the dataset, with the possibility to filter, reorder, and download live. Moreover, it displays plots and allows them to be downloaded, aggregated by variables, regions, and scenarios. Main function: `launch_gcamreport_ui()`. For more information look at this [tutorial](https://bc3lc.github.io/gcamreport/articles/Interactive_UI_Tutorial.html) or type `?launch_gcamreport_ui` in your R console. If you obtain some warning or error messages, it might be useful to look at the [Warning and Error Messages](#bugs) section.
+- Dataset generation: It creates or loads an existing project and automatically saves the generated dataset that meets the reporting requirements of the [IAMC](https://www.iamconsortium.org/). Main function: `generate_report()`. For more information, see this [tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html) or type `??generate_report` in your R console. If you get any warning or error messages, you might want to look at the [Warnings and Error Messages](#bugs) section.
-**Note**:exclamation:: if you followed the [Docker installation](#with-Docker), to open the user interface (UI) once it has been launched, either go to Docker Desktop and type the last started port, or type in the browser.
+- Interactive user block: it launches an interactive widget that displays the dataset in tabular form, with the ability to filter, reorder and download live. It also displays plots and allows them to be downloaded, aggregated by variables, regions and scenarios. Main function: `launch_gcamreport_ui()`. For more information see this [tutorial](https://bc3lc.github.io/gcamreport/articles/Interactive_UI_Tutorial.html) or type `??launch_gcamreport_ui` in your R console. If you get any warning or error messages, it might be useful to have a look at the [Warnings and Error Messages](#bugs) section.
-
-In addition, the package includes some default input files (.Rda), that are read by the different functions. These can be changed by the user. Some of these constants include energy shares, land shares, and others.
+The package also includes some default input files (.Rda) that are read by the different functions. These can be changed by the user as detailed in [this tutorial](https://bc3lc.github.io/gcamreport/articles/Modify_Mapping_Template_Tutorial.html).
@@ -172,7 +227,7 @@ In addition, the package includes some default input files (.Rda), that are read
-## Warning and Error Messages
+## Warnings and Error Messages
@@ -281,3 +336,7 @@ Once the R console is opened, you might see this message after introducing any c
Simply type `Ctrl+C` and run your command again.
+
+
+
+**Note**::boom: For other errors, please check the troubleshooting sections of the [`generate_report` function](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#troubleshooting-for-the-generate_report-function) or the [user interface widget](https://bc3lc.github.io/gcamreport/articles/Interactive_UI_Tutorial.html#troubleshooting-when-launching-the-ui). If your error is not listed, please open an [Issue](https://github.com/bc3LC/gcamreport/issues) on the GitHub page with all the information to reproduce the crash.
diff --git a/coverage.xml b/coverage.xml
index d4b1860..4d362df 100644
--- a/coverage.xml
+++ b/coverage.xml
@@ -1,13 +1,13 @@
-
+C:/Users/claudia.rodes/Documents/IAM_COMPACT/gcamreport
-
+
-
+
@@ -57,145 +57,150 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
@@ -232,345 +237,352 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
+
-
+
+
-
-
+
-
+
+
-
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
+
@@ -578,621 +590,614 @@
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
@@ -1205,49 +1210,47 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1255,154 +1258,156 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -1410,31 +1415,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1447,60 +1450,60 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1521,68 +1524,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
@@ -1591,177 +1594,178 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
-
@@ -1787,6 +1791,7 @@
+
@@ -1803,9 +1808,7 @@
-
-
@@ -1818,6 +1821,7 @@
+
@@ -1826,185 +1830,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2012,646 +2017,654 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -2664,41 +2677,39 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -2706,126 +2717,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -2833,27 +2846,25 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
@@ -2866,52 +2877,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -2932,60 +2943,60 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2994,157 +3005,158 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+
-
-
-
@@ -3170,6 +3182,7 @@
+
@@ -3186,9 +3199,7 @@
-
-
@@ -3201,6 +3212,7 @@
+
@@ -3209,169 +3221,170 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -3379,740 +3392,767 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/data/CO2_market.rda b/data/CO2_market.rda
index 8180a2f..af693fd 100644
Binary files a/data/CO2_market.rda and b/data/CO2_market.rda differ
diff --git a/data/F_GASES.rda b/data/F_GASES.rda
index dcbd776..e203bb4 100644
Binary files a/data/F_GASES.rda and b/data/F_GASES.rda differ
diff --git a/data/GCAM_years.rda b/data/GCAM_years.rda
index 34c4cf2..37ac5f2 100644
Binary files a/data/GCAM_years.rda and b/data/GCAM_years.rda differ
diff --git a/data/GHG_gases.rda b/data/GHG_gases.rda
index 7e8577a..e3472a0 100644
Binary files a/data/GHG_gases.rda and b/data/GHG_gases.rda differ
diff --git a/data/GWP_adjuster.rda b/data/GWP_adjuster.rda
index 43ddc2a..d693034 100644
Binary files a/data/GWP_adjuster.rda and b/data/GWP_adjuster.rda differ
diff --git a/data/PPP_MER_KOR.rda b/data/PPP_MER_KOR.rda
new file mode 100644
index 0000000..8389294
Binary files /dev/null and b/data/PPP_MER_KOR.rda differ
diff --git a/data/ag_demand_map.rda b/data/ag_demand_map.rda
index f21d931..8d6ab17 100644
Binary files a/data/ag_demand_map.rda and b/data/ag_demand_map.rda differ
diff --git a/data/ag_prices_map.rda b/data/ag_prices_map.rda
index 1fe8602..479b7cb 100644
Binary files a/data/ag_prices_map.rda and b/data/ag_prices_map.rda differ
diff --git a/data/buildings_en_service.rda b/data/buildings_en_service.rda
index 7731e6c..76ecbda 100644
Binary files a/data/buildings_en_service.rda and b/data/buildings_en_service.rda differ
diff --git a/data/capacity_map.rda b/data/capacity_map.rda
index f2115c9..1baa1af 100644
Binary files a/data/capacity_map.rda and b/data/capacity_map.rda differ
diff --git a/data/capital_gcam.rda b/data/capital_gcam.rda
index 53f31ae..25162fc 100644
Binary files a/data/capital_gcam.rda and b/data/capital_gcam.rda differ
diff --git a/data/carbon_content.rda b/data/carbon_content.rda
index a9e003b..61dea36 100644
Binary files a/data/carbon_content.rda and b/data/carbon_content.rda differ
diff --git a/data/carbon_seq_tech_map.rda b/data/carbon_seq_tech_map.rda
index 613e3dc..8d15a35 100644
Binary files a/data/carbon_seq_tech_map.rda and b/data/carbon_seq_tech_map.rda differ
diff --git a/data/cf_gcam.rda b/data/cf_gcam.rda
index 9a42dc2..93547fa 100644
Binary files a/data/cf_gcam.rda and b/data/cf_gcam.rda differ
diff --git a/data/cf_rgn.rda b/data/cf_rgn.rda
index 108aecc..b2eddb7 100644
Binary files a/data/cf_rgn.rda and b/data/cf_rgn.rda differ
diff --git a/data/co2_ets_sector_map.rda b/data/co2_ets_sector_map.rda
index 2bea2a9..f7df18f 100644
Binary files a/data/co2_ets_sector_map.rda and b/data/co2_ets_sector_map.rda differ
diff --git a/data/co2_market_frag_map.rda b/data/co2_market_frag_map.rda
index b17fffc..8e9f553 100644
Binary files a/data/co2_market_frag_map.rda and b/data/co2_market_frag_map.rda differ
diff --git a/data/co2_sector_map.rda b/data/co2_sector_map.rda
index 66fc1bb..de367c4 100644
Binary files a/data/co2_sector_map.rda and b/data/co2_sector_map.rda differ
diff --git a/data/co2_tech_map.rda b/data/co2_tech_map.rda
index 8365e9a..6fe548f 100644
Binary files a/data/co2_tech_map.rda and b/data/co2_tech_map.rda differ
diff --git a/data/convert.rda b/data/convert.rda
index e1d35f0..25d8731 100644
Binary files a/data/convert.rda and b/data/convert.rda differ
diff --git a/data/elec_gen_map.rda b/data/elec_gen_map.rda
index 4c2bc2e..a66fe4c 100644
Binary files a/data/elec_gen_map.rda and b/data/elec_gen_map.rda differ
diff --git a/data/emissions_list.rda b/data/emissions_list.rda
index d0ec788..eaa7f99 100644
Binary files a/data/emissions_list.rda and b/data/emissions_list.rda differ
diff --git a/data/energy_prices_map.rda b/data/energy_prices_map.rda
index 01de8c6..a0b6260 100644
Binary files a/data/energy_prices_map.rda and b/data/energy_prices_map.rda differ
diff --git a/data/final_energy_map.rda b/data/final_energy_map.rda
index 7b29d02..270d0a9 100644
Binary files a/data/final_energy_map.rda and b/data/final_energy_map.rda differ
diff --git a/data/global_vet_values.rda b/data/global_vet_values.rda
index 7af8411..4f9a228 100644
Binary files a/data/global_vet_values.rda and b/data/global_vet_values.rda differ
diff --git a/data/iea_capacity.rda b/data/iea_capacity.rda
index d3e5ed8..2e62d3f 100644
Binary files a/data/iea_capacity.rda and b/data/iea_capacity.rda differ
diff --git a/data/investment.rda b/data/investment.rda
index 9081b56..63020b7 100644
Binary files a/data/investment.rda and b/data/investment.rda differ
diff --git a/data/kyoto_sector_map.rda b/data/kyoto_sector_map.rda
index 71a34bf..4bfc1e9 100644
Binary files a/data/kyoto_sector_map.rda and b/data/kyoto_sector_map.rda differ
diff --git a/data/land_use_map.rda b/data/land_use_map.rda
index d16ad84..84dca84 100644
Binary files a/data/land_use_map.rda and b/data/land_use_map.rda differ
diff --git a/data/last_historical_year.rda b/data/last_historical_year.rda
index e7433e2..53e361b 100644
Binary files a/data/last_historical_year.rda and b/data/last_historical_year.rda differ
diff --git a/data/long_columns.rda b/data/long_columns.rda
index 15fad28..8dac435 100644
Binary files a/data/long_columns.rda and b/data/long_columns.rda differ
diff --git a/data/nonCO2_content.rda b/data/nonCO2_content.rda
index 24d38ff..01acac2 100644
Binary files a/data/nonCO2_content.rda and b/data/nonCO2_content.rda differ
diff --git a/data/nonco2_emis_resource_map.rda b/data/nonco2_emis_resource_map.rda
index 616c30a..316e5cf 100644
Binary files a/data/nonco2_emis_resource_map.rda and b/data/nonco2_emis_resource_map.rda differ
diff --git a/data/nonco2_emis_sector_map.rda b/data/nonco2_emis_sector_map.rda
index 28cbbeb..30ba3ba 100644
Binary files a/data/nonco2_emis_sector_map.rda and b/data/nonco2_emis_sector_map.rda differ
diff --git a/data/primary_energy_map.rda b/data/primary_energy_map.rda
index fdf9043..686404b 100644
Binary files a/data/primary_energy_map.rda and b/data/primary_energy_map.rda differ
diff --git a/data/production_map.rda b/data/production_map.rda
index 84270b0..eec0e92 100644
Binary files a/data/production_map.rda and b/data/production_map.rda differ
diff --git a/data/queries_general.rda b/data/queries_general.rda
new file mode 100644
index 0000000..1bf1565
Binary files /dev/null and b/data/queries_general.rda differ
diff --git a/data/queries_nonCO2.rda b/data/queries_nonCO2.rda
new file mode 100644
index 0000000..0a2e119
Binary files /dev/null and b/data/queries_nonCO2.rda differ
diff --git a/data/reg_cont.rda b/data/reg_cont.rda
index 458784d..d563889 100644
Binary files a/data/reg_cont.rda and b/data/reg_cont.rda differ
diff --git a/data/reporting_years.rda b/data/reporting_years.rda
index 395f73e..5eb6cd0 100644
Binary files a/data/reporting_years.rda and b/data/reporting_years.rda differ
diff --git a/data/se_gen_map.rda b/data/se_gen_map.rda
index f8a7df2..44ecb11 100644
Binary files a/data/se_gen_map.rda and b/data/se_gen_map.rda differ
diff --git a/data/template.rda b/data/template.rda
index d593ac3..d590bf8 100644
Binary files a/data/template.rda and b/data/template.rda differ
diff --git a/data/transport_en_service.rda b/data/transport_en_service.rda
index a4019bf..b1c19ce 100644
Binary files a/data/transport_en_service.rda and b/data/transport_en_service.rda differ
diff --git a/data/transport_final_en_map.rda b/data/transport_final_en_map.rda
index d00708d..16a8e25 100644
Binary files a/data/transport_final_en_map.rda and b/data/transport_final_en_map.rda differ
diff --git a/data/var_fun_map.rda b/data/var_fun_map.rda
index 590fa26..7ec9407 100644
Binary files a/data/var_fun_map.rda and b/data/var_fun_map.rda differ
diff --git a/examples/example2.dat b/examples/example2.dat
deleted file mode 100644
index ed236d4..0000000
Binary files a/examples/example2.dat and /dev/null differ
diff --git a/examples/example3.RData b/examples/example3.RData
deleted file mode 100644
index ae60c8d..0000000
Binary files a/examples/example3.RData and /dev/null differ
diff --git a/inst/extdata/mappings/PPP_MER_KOR.csv b/inst/extdata/mappings/PPP_MER_KOR.csv
new file mode 100644
index 0000000..a266379
--- /dev/null
+++ b/inst/extdata/mappings/PPP_MER_KOR.csv
@@ -0,0 +1,30 @@
+# File: PPP-MER-KOR.csv,
+# Title: PPP-MER conversion ratio (= PPP/MER),
+# Units: PPP/MER index,
+# Description: Korea specific PPP-MER conversion rate,
+# Source: world bank history interpolation by KAIST,
+# Column types: n,
+# ----------,
+year,conversion_ratio
+1975,1.310
+1990,1.310
+2005,1.310
+2010,1.310
+2015,1.310
+2020,1.295
+2025,1.276
+2030,1.258
+2035,1.239
+2040,1.221
+2045,1.203
+2050,1.184
+2055,1.166
+2060,1.147
+2065,1.129
+2070,1.111
+2075,1.092
+2080,1.074
+2085,1.055
+2090,1.037
+2095,1.018
+2100,1.000
diff --git a/inst/extdata/queries/queries_gcamreport_gcam6.0_complete.xml b/inst/extdata/queries/queries_gcamreport_gcam6.0_complete.xml
deleted file mode 100644
index 903279b..0000000
--- a/inst/extdata/queries/queries_gcamreport_gcam6.0_complete.xml
+++ /dev/null
@@ -1,895 +0,0 @@
-
-
-
-
-
-
- region
- gdp-mer
- GDP/gdp-mer/text()
-
-
-
-
-
-
-
- region
- gdp-per-capita-ppp
- GDP/gdp-per-capita-ppp/text()
-
-
-
-
-
-
-
- region
- populationMiniCAM
- demographics/populationMiniCAM/total-population/node()
-
-
-
-
-
-
-
- input[@name]
- demand-physical[@vintage]
- 0
- return element coef {
- attribute vintage { $outputSum/@vintage },
- text { $inputSum div $outputSum }
- }
- },
- for $input in distinct-values($renewOutputs/@name)
- return element input {
- attribute name { concat($input, ' renewable') },
- attribute is-renewable { true() },
- for $outputSum in $totalOutputSum
- let $inputSum := sum($renewOutputs[@name=$input]/physical-output[@vintage=$outputSum/@vintage])
- where $inputSum > 0
- return element coef {
- attribute vintage { $outputSum/@vintage },
- text { $inputSum div $outputSum }
- }
- }
- }
- return
- local:generate-sector-input-coefs(distinct-values(($newOutputNameQueue, $useInputs/@name)), $currTree, $new_coefs, $is_usa)
- };
- declare function local:generate-ccs-coefs($currTree as node(), $coefs as node()*) as node()* {
- for $sector in $coefs/@name
- let $currSector := $currTree/*[@type='sector' and @name=$sector],
- $useInputs := $currSector//*[@type='technology' and not(contains(@name, 'CCS')) and not(child::keyword/@primary-renewable)]/*[@type='input' and not(@name='oil-credits')],
- $useInputsCCS := $currSector//*[@type='technology' and contains(@name, 'CCS')]/*[@type='input' and not(@name='oil-credits')],
- $totalOutputSum := for $vintage in distinct-values($useInputs/demand-physical/@vintage | $useInputsCCS/demand-physical/@vintage)
- return element output {
- attribute vintage { $vintage },
- text {
- sum($currSector//output-primary/physical-output[@vintage=$vintage])
- }
- }
- return if(exists($useInputsCCS)) then
- element sector {
- attribute name { $sector },
- $coefs[@name=$sector]/input[@is-renewable],
- for $input in distinct-values(($useInputs/@name, $useInputsCCS/@name))
- return element input {
- attribute name { $input },
- for $outputSum in $totalOutputSum
- let $inputSum := sum($useInputs[@name=$input]/demand-physical[@vintage=$outputSum/@vintage]),
- $inputSumCCS := sum($useInputsCCS[@name=$input]/demand-physical[@vintage=$outputSum/@vintage])
- return (element coef {
- attribute vintage { $outputSum/@vintage },
- text { $inputSum div $outputSum }
- },
- element coef_ccs {
- attribute vintage { $outputSum/@vintage },
- text { $inputSumCCS div $outputSum }
- })
- }
- }
- else
- $coefs[@name=$sector]
- };
- declare function local:apply-coefs($outputName as xs:string, $outputs as node()*, $coefs as node()*, $isCCS as xs:boolean) as node()* {
- if(exists($coefs[@name=$outputName]) and sum($outputs) > 0.001) then
- for $input in $coefs[@name=$outputName]/input
- return local:apply-coefs($input/@name,
- for $vintage in distinct-values($outputs/@vintage)
- let $outputThisVintage := $outputs[@vintage=$vintage],
- $firstOutput := $outputThisVintage[1],
- $outputSum := sum($outputThisVintage),
- $coefThisVintage := $input/coef[@vintage=$vintage]
- where $coefThisVintage > 0
- return element { local-name($firstOutput) } {
- $firstOutput/@*,
- text{ $outputSum * $coefThisVintage }
- }, $coefs, $isCCS)
- | local:apply-coefs($input/@name,
- for $vintage in distinct-values($outputs/@vintage)
- let $outputThisVintage := $outputs[@vintage=$vintage],
- $firstOutput := $outputThisVintage[1],
- $outputSum := sum($outputThisVintage),
- $coefThisVintage := $input/coef_ccs[@vintage=$vintage]
- where exists($coefThisVintage) and $coefThisVintage > 0
- return element { local-name($firstOutput) } {
- $firstOutput/@*,
- text{ $outputSum * $coefThisVintage }
- }, $coefs, true())
- else if( sum($outputs) > 0.001) then
- element input {
- attribute name { if($isCCS) then concat($outputName, ' CCS') else $outputName },
- attribute type { 'input' },
- (: $outputs :) (: TODO: not sure why this doesn't work and we need to create these explicitly :)
- for $o in $outputs
- return element demand-physical { $o/@*, text{ $o/text() } }
- }
- else
- (: These are the residuals from chasing simulenaties, I've left this here
- for debuging purposes :)
- element input {
- attribute name { $outputName },
- attribute type { 'input' } (:,
- $outputs :)
- }
- };
- declare function local:run-input-by-primary($scenarios as xs:string*, $regions as xs:string*, $collection as xs:string) as node()* {
- unordered {
- let $regionsG := if(not($regions[1] = 'Global'))
- then $regions
- else distinct-values(collection($collection)/scenario/world/*[@type='region']/@name)
- return
- for $scenario in $scenarios,
- $region in $regionsG
- let $scenario_split := tokenize($scenario, ' '),
- $currTree := collection($collection)/scenario[@name = $scenario_split[1] and @date = $scenario_split[2]]/world/*[@type='region' and @name=$region],
- $currInputs := $currTree/*[@type='sector' and (@name='unconventional oil production' or exists(child::keyword/@final-energy))]//*[@type='input' and empty(index-of(('trn_pass_road', 'limestone', 'process heat cement', 'industrial energy use', 'industrial feedstocks', 'renewable', 'trn_freight_road', 'trn_pass_road_LDV', 'trn_pass_road_LDV_2W', 'trn_pass_road_LDV_4W', 'unconventional oil', 'oil-credits'), @name))],
- $coefs := local:generate-sector-input-coefs(distinct-values($currInputs/@name), $currTree, (), false()),
- $ccs_coefs := local:generate-ccs-coefs($currTree, $coefs)
- return
- for $inputName in distinct-values($currInputs/@name)
- return local:append-heirarchy($currTree, local:apply-coefs($inputName, $currInputs[@name=$inputName]/demand-physical, $ccs_coefs, false()))//text()
- }
- };
- local:run-input-by-primary((:scenarios:), (:regions:), (:collection:))]]>
- WARNING: Results are slightly inflated due to improper secondary-output accounting
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- resource
- output
- *[@type='resource']//output/node()
-
-
-
-
-
-
- technology[@name]
- physical-output[@vintage]
- *[@type='resource']/*[@type='subresource']/
- *[@type='technology']/output-primary[@type='output' (:collapse:)]/physical-output/node()
-
-
-
-
-
-
-
-
- sector
- cost
- *[@type = 'sector' and (@name='regional oil' or @name='regional natural gas'
- or @name='regional coal' or @name='regional biomass' or @name='nuclearFuelGenIII')]/
- cost/text()
-
-
-
-
-
-
-
- technology
- physical-output[@vintage]
- *[@type='sector' (:collapse:) and
- (@name='electricity' or @name='elect_td_bld' or @name='industrial energy use')]/
- *[@type='subsector']/*[@type='technology' and not (@name='electricity' or @name='elect_td_bld')]/
- *[@type='output' and (@name='electricity' or @name='elect_td_bld')]/
- physical-output/node()
-
-
-
-
-
-
- technology
- physical-output[@vintage]
- *[@type='sector' and (@name='electricity' or @name='elect_td_bld' or
- contains(@name,'elec_')) and not(contains(@name, 'water_td'))]/
- *[@type='subsector' and not (@name='elect_td_bld')]/
- *[@type='technology' and not(@name='biomass (conv)' or @name='biomass (conv CCS)' or @name='biomass (IGCC)' or @name='biomass (IGCC CCS)'
- or @name='coal (conv pul)' or @name='coal (conv pul CCS)' or @name='coal (IGCC)' or @name='coal (IGCC CCS)'
- or @name='gas (steam/CT)' or @name='gas (CC)' or @name='gas (CC CCS)'
- or @name='refined liquids (steam/CT)' or @name='refined liquids (CC)' or @name='refined liquids (CC CCS)'
- or @name='geothermal' or @name='Gen_II_LWR' or @name='Gen_III'
- or @name='CSP' or @name='CSP_storage')]/
- *[@type='output']/physical-output/node()
-
-
-
-
-
-
-
-
- technology
- physical-output[@vintage]
- *[@type='sector' and contains(@name,'refining')]/*[@type='subsector']/
- *[@type='technology']/output-primary[@type='output']/physical-output/node()
-
-
-
-
-
-
- technology
- physical-output[@vintage]
- *[@type='sector' and (@name='H2 central production' or @name='H2 forecourt production')]/
- *[@type='subsector']/*[@type='technology']/*[@type='output' (:collapse:)]/
- physical-output/node()
-
-
-
-
-
-
-
- technology
- cost
- *[@type='sector' and (@name='H2 central production' or @name='H2 forecourt production')]/
- *[@type='subsector']/*[@type='technology']/cost/text()
-
-
-
-
-
-
-
- technology
- physical-output[@vintage]
- *[@type='sector' and (@name='gas processing')]/*[@type='subsector']/
- *[@type='technology']/*[@type='output' (:collapse:)]/physical-output/node()
-
-
-
-
-
-
-
- input
- demand-physical[@vintage]
- *[@type='sector' and ((@name='building' or @name='industry' or @name='transportation') or
- (exists(child::keyword/@final-energy)))]//*[@type='input' and
- not(@name='limestone' or @name='process heat cement' or @name='industrial energy use' or
- @name='industrial feedstocks' or @name='renewable' or contains(@name, 'trn_') or @name='oil-credits')]/
- demand-physical[@unit='EJ']/node()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gcam-consumer[@name]
- floorspace[@year]
- gcam-consumer//floorspace/node()
-
-
-
-
-
-
-
- sector
- physical-output[@vintage]
- *[@type='sector' and (@name='industry' or (exists(child::keyword[@final-energy='industry'])))]//
- output-primary/physical-output/node()
-
-
-
-
-
-
- technology
- demand-physical[@vintage]
- *[@type='sector' and (@name='industry' or (exists(child::keyword[@final-energy='industry'])))]/
- *[@type='subsector']/*[@type='technology']/
- *[@type='input' and (@name='delivered biomass' or @name='delivered coal' or
- @name='H2 wholesale delivery' or @name='H2 wholesale dispensing' or @name='H2 industrial' or
- @name='elect_td_ind' or @name='wholesale gas' or
- @name='refined liquids industrial')]/demand-physical/node()
-
-
-
-
-
-
-
- subsector
- demand-physical[@vintage]
- *[@type='sector' and (@name='transportation' or (exists(child::keyword[@final-energy='transportation'])))]/
- *[@type='subsector']//*[@type='input' and not (@name='renewable')]/
- demand-physical[@unit='EJ']/node()
-
-
-
-
-
-
- sector
- cost
- *[@type='sector' and (@name='delivered gas' or @name='delivered coal' or @name='elect_td_trn'
- or @name='refined liquids enduse' or @name='H2 enduse')]/cost/text()
-
-
-
-
-
-
-
- sector
- physical-output[@vintage]
- *[@type='sector' and (@name='electricity' or @name='electricity_net_ownuse' or
- @name='elect_td_bld' or @name='elect_td_ind' or @name='elect_td_trn')]/
- *[@type='subsector' (:collapse:)]/*[@type='technology' (:collapse:) and not (@name='rooftop_pv')]/
- *[@type='output' (:collapse:)]/physical-output/node()
- excludes rooftop pv
-
-
-
-
-
- sector[@name]
- physical-output[@vintage]
- *[@type='sector' and (local-name()='AgSupplySector')]//
- output-primary/physical-output/node()
- primary output only (no residue biomass)
-
-
-
-
-
- sector
- demand-physical[@vintage]
- *[@type='sector']//*[@type='input' and
- (@name='regional corn' or @name='regional fibercrop'
- or @name='regional misccrop' or @name='regional oilcrop' or @name='regional othergrain'
- or @name='regional palmfruit' or @name='regional rice' or @name='regional root_tuber'
- or @name='regional sugarcrop' or @name='regional wheat' or @name='FodderGrass' or @name='FodderHerb'
- or @name='Forest' or @name='Pasture')]/
- demand-physical/node()
-
-
-
-
-
-
- sector
- demand-physical[@vintage]
- *[@type='sector']//*[@type='input' and
- (@name='Beef' or @name='Pork' or @name='Poultry' or @name='SheepGoat' or @name='OtherMeat_Fish')]/
- demand-physical/node()
-
-
-
-
-
-
- LandLeaf
- land-use-change-emission[@year]
- 1970]/text()]]>
-
-
-
-
-
-
-
- LandLeaf[@crop]
- land-allocation[@year]
- /LandNode[@name='root' or @type='LandNode' (:collapse:)]//land-allocation/text()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- market
- market
- Marketplace/market[true() and contains(@name,'CO2')]/price/node()
-
-
-
-
-
-
-
- sector[@name]
- emissions[@year]
- 0,
- 27.3,
- 19.6,
- 23,
- 27.3,
- 14.2,
- 14.2,
- 14.2,
- 0.08,
- 14.2,
- 19.6,
- 19.6,
- 19.6,
- 23,
- 19.6,
- 27.3,
- 19.6,
- 14.2,
- 19.6,
- 19.6,
- 19.6,
- 21.1,
- 19.6,
- 14.2),
- $currCoef := $carbonCoefs[@name=$good]/text()
- return if(exists($currCoef)) then $currCoef else 0.0
- };
-
-
- declare function local:is-carbonatious-fuel($good as xs:string) as xs:boolean {
- not(local:get-carbon-coef($good) = 0.0)
- };
- declare function local:generate-sector-output-coefs($inputNameQueue as xs:string*, $currTree as node(), $coefs as node()*, $is_usa as xs:boolean) as node()* {
- if(empty($inputNameQueue)) then $coefs
- else if( exists($coefs[@name = $inputNameQueue[1]]) or exists(index-of(('traded unconventional oil'),
- $inputNameQueue[1])) or not($currTree/*[@type='sector' and @name=$inputNameQueue[1]]) or not(local:is-carbonatious-fuel($inputNameQueue[1])))
- then
- local:generate-sector-output-coefs(remove($inputNameQueue, 1), $currTree, $coefs, $is_usa)
- else
- let $inputName := $inputNameQueue[1],
- $newInputNameQueue := remove($inputNameQueue, 1),
- $useInputs := $currTree//*[@type='input' and @name=$inputName],
- $useSectors := distinct-values($useInputs/ancestor::*[@type='sector']/@name),
- $totalInputSum := for $vintage in distinct-values($useInputs/demand-physical/@vintage)
- return element input {
- attribute vintage { $vintage },
- text {
- sum($useInputs/demand-physical[@vintage=$vintage])
- }
- },
- $new_coefs := if(empty($useSectors)) then
- $coefs
- else
- $coefs | element sector {
- attribute name { $inputName },
- for $output in $useSectors
- return element output {
- attribute name { $output },
- for $inputSum in $totalInputSum
- let $currSectorInputs := $useInputs[ancestor::*[@type='sector' and @name=$output]],
- $outputSum := sum($currSectorInputs/demand-physical[@vintage=$inputSum/@vintage]),
- $carbonIn := sum($currSectorInputs/parent::*//carbon-content[@vintage=$inputSum/@vintage]),
- $carbonOut := sum($currSectorInputs/parent::*/output-primary/physical-output[@vintage=$inputSum/@vintage]) *
- local:get-carbon-coef($output)
- return (element share {
- attribute vintage { $inputSum/@vintage },
- text { $outputSum div $inputSum }
- }, element carbon_ratio {
- attribute vintage { $inputSum/@vintage },
- text{ if($carbonIn > 0) then $carbonOut div $carbonIn else 0 }
- })
- }
- }
- return
- local:generate-sector-output-coefs(distinct-values(($newInputNameQueue, $useSectors)), $currTree, $new_coefs, $is_usa)
- };
- declare function local:apply-coefs($outputName as xs:string, $emissions as node()*, $coefs as node()*) as node()* {
- if(exists($coefs[@name=$outputName]) and abs(sum($emissions)) > 0.001) then
- for $output in $coefs[@name=$outputName]/output
- let $emiss_go := for $year in distinct-values($emissions/@year)
- let $emissThisVintage := $emissions[@year=$year],
- $firstEmiss := $emissThisVintage[1],
- $emissSum := sum($emissThisVintage),
- $shareThisVintage := $output/share[@vintage=$year],
- $carbonRatioThisVintage := $output/carbon_ratio[@vintage=$year],
- $coefThisVintage := $shareThisVintage * $carbonRatioThisVintage
- where $coefThisVintage > 0
- return element { local-name($firstEmiss) } {
- $firstEmiss/@*,
- text{ $emissSum * $coefThisVintage }
- },
- $emiss_stay := for $year in distinct-values($emissions/@year)
- let $emissThisVintage := $emissions[@year=$year],
- $firstEmiss := $emissThisVintage[1],
- $emissSum := sum($emissThisVintage),
- $shareThisVintage := $output/share[@vintage=$year],
- $carbonRatioThisVintage := 1.0 - $output/carbon_ratio[@vintage=$year],
- $coefThisVintage := $shareThisVintage * $carbonRatioThisVintage
- where $coefThisVintage > 0
- return element { local-name($firstEmiss) } {
- $firstEmiss/@*,
- text{ $emissSum * $coefThisVintage }
- }
- return local:apply-coefs($output/@name, $emiss_go, $coefs) |
- element sector {
- attribute name { $output/@name},
- attribute type { 'sector' },
- $emiss_stay
- }
- else if( abs(sum($emissions)) > 0.001) then
- element sector {
- attribute name { $outputName },
- attribute type { 'sector' },
- $emissions
- }
- else
- (: These are the residuals from chasing simulenaties, I've left this here
- for debuging purposes :)
- element sector {
- attribute name { $outputName },
- attribute type { 'sector' }(:,
- $emissions:)
- }
- };
- declare function local:run-emiss-by-enduse($scenarios as xs:string*, $regions as xs:string*, $collection as xs:string) as node()* {
- (:unordered { :)
- let $regionsG := if(not($regions[1] = 'Global'))
- then $regions
- else distinct-values(collection($collection)/scenario/world/*[@type='region']/@name)
- return
- for $scenario in $scenarios,
- $region in $regionsG
- let $scenario_split := tokenize($scenario, ' '),
- $currTree := collection($collection)/scenario[@name = $scenario_split[1] and @date = $scenario_split[2]]/world/*[@type='region' and @name=$region],
- $sector_emiss := $currTree/*[@type='sector' and not(@name='regional biomass' or @name='regional biomassOil' or @name='regional corn for ethanol' or @name='regional sugar for ethanol' or @name='regional sugarbeet for ethanol')]//CO2[@type='GHG' (:collapse:) and @name='CO2']/emissions/text(),
- $currEmissSectors := $currTree/*[@type='sector' and (@name='regional biomass' or @name='regional biomassOil' or @name='regional corn for ethanol' or @name='regional sugar for ethanol' or @name='regional sugarbeet for ethanol')],
- $coefs := local:generate-sector-output-coefs(distinct-values($currEmissSectors/@name), $currTree, (), false()),
- $downstream_emiss := for $sectorName in distinct-values($currEmissSectors/@name)
- return local:append-heirarchy($currTree, local:apply-coefs($sectorName, $currEmissSectors[@name=$sectorName]//CO2[@name='CO2']/emissions, $coefs))//text()
- return ($sector_emiss, $downstream_emiss )
- (: } :)
- };
- local:run-emiss-by-enduse((:scenarios:), (:regions:), (:collection:))]]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- sector
- emissions
- *[@type='sector']//CO2/emissions/node()
-
-
-
-
-
-
-
- region
- emissions
- *[@type='sector' (:collapse:)]//CO2/emissions/node()
-
-
-
-
-
-
-
- technology
- emissions
- *[@type = 'sector' ]/*[@type='subsector']/*[@type='technology']//
- CO2/emissions/node()
-
-
-
-
-
-
-
- subsector
- emissions-sequestered
- *[@type = 'sector' ]/*[@type='subsector']/*[@type='technology']//
- CO2/emissions-sequestered/node()
-
-
-
-
-
-
-
- none
- CO2-concentration[@year]
- climate-model/CO2-concentration/text()
-
-
-
-
-
-
- none
- global-mean-temperature[@year]
- climate-model/global-mean-temperature/text()
-
-
-
-
-
-
-
- none
- forcing-total[@year]
- climate-model/forcing-total/text()
-
-
-
-
-
-
-
- sector
- cost
- *[@type = 'sector']/cost/text()
-
-
-
-
-
-
-
- subsector
- cost
- *[@type='sector' and (local-name()!='AgSupplySector')]/*[@type = 'subsector']/cost/text()
- Excludes AgSupplySubsector costs, where data written out are no meaningful
-
-
-
-
-
-
- market
- market
- Marketplace/market[contains(@name, 'regional coal') or contains(@name, 'regional natural gas') or contains(@name, 'regional oil')][true()]/supply/node()
-
-
-
-
-
-
- input
- demand-physical[@vintage]
- *[@type='sector']//*[@type='input' and (@name='delivered biomass' or @name='delivered coal')]/demand-physical/node()
-
-
-
-
-
-
-
- subsector
- physical-output[@vintage]
- *[@type='sector' and (@name='transportation' or (exists(child::keyword[@final-energy='transportation'])))]/
- *[@type='subsector']//*[@type='output' (:collapse:) and not(@name='CAFEcredit')]/
- physical-output/node()
-
-
-
-
-
-
-
- GHG
- emissions
- *[@type = 'resource']//*[@type = 'GHG']/emissions/node()
-
-
-
-
-
\ No newline at end of file
diff --git a/inst/extdata/queries/queries_gcamreport_gcam6.0_nonCO2.xml b/inst/extdata/queries/queries_gcamreport_gcam6.0_nonCO2.xml
deleted file mode 100644
index c54281c..0000000
--- a/inst/extdata/queries/queries_gcamreport_gcam6.0_nonCO2.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
- GHG
- emissions
- *[@type = 'sector']//*[@type = 'GHG' and @name = 'current_emis']/emissions/node()
-
-
-
-
-
-
-
- GHG
- emissions
- *[@type = 'sector' (:collapse:) or @type = 'resource' (:collapse:)](: / *[@type = 'subresource' (: collapse :)] :)//
- *[@type = 'GHG' and @name = 'current_emis']/emissions/node()
-
-
-
-
-
diff --git a/inst/extdata/queries/queries_gcamreport_gcam7.0_complete.xml b/inst/extdata/queries/queries_gcamreport_gcam7.0_general.xml
similarity index 100%
rename from inst/extdata/queries/queries_gcamreport_gcam7.0_complete.xml
rename to inst/extdata/queries/queries_gcamreport_gcam7.0_general.xml
diff --git a/inst/extdata/saveDataFiles.R b/inst/extdata/saveDataFiles.R
index 4879cf4..1bfcb46 100644
--- a/inst/extdata/saveDataFiles.R
+++ b/inst/extdata/saveDataFiles.R
@@ -1,6 +1,7 @@
# Converting raw data into package data
library(usethis)
library(magrittr)
+library(tidyverse)
### paths
rawDataFolder <- here::here()
@@ -46,6 +47,9 @@ global_vet_values <- read.csv(file.path(rawDataFolder, "inst/extdata/vetting", "
)
use_data(global_vet_values, overwrite = T)
+template %>%
+ filter(Variable =="GDP|PPP")
+
# Read in template
template <- read.csv(file.path(rawDataFolder, "inst/extdata", "template/reporting_template.csv"),
fileEncoding = "UTF-8-BOM", stringsAsFactors = FALSE
@@ -247,6 +251,16 @@ co2_market_frag_map <- read.csv(file.path(rawDataFolder, "inst/extdata/mappings"
)
use_data(co2_market_frag_map, overwrite = T)
+# creating PPP for KOREA
+PPP_MER_KOR <- read.csv(file.path(rawDataFolder, "inst/extdata/mappings", "PPP_MER_KOR.csv"),
+ skip = 7,
+ stringsAsFactors = FALSE
+)
+
+use_data(PPP_MER_KOR, overwrite = T)
+
+
+
# List of Constants
convert <- list(
@@ -260,6 +274,7 @@ convert <- list(
conv_75USD_10USD = 3.227608,
conv_15USD_10USD = 0.91863,
conv_19USD_75USD = 0.2658798,
+ conv_90USD_17USD = 102.9 / 60.8, ######## source : Worldbank - 102.9/60.8,
conv_C_CO2 = 44 / 12,
# Elec related conversions
hr_per_yr = 8760,
@@ -271,6 +286,9 @@ convert <- list(
)
use_data(convert, overwrite = T)
+gcamreport::convert$conv_90USD_17USD
+gcamreport::convert$CO2_equivalent
+
# GHG emission conversion
F_GASES <- c(
"C2F6", "CF4", "HFC125", "HFC134a", "HFC245fa", "SF6", "HFC143a",
@@ -299,3 +317,17 @@ use_data(last_historical_year, overwrite = T)
# Reporting columns
long_columns <- c("scenario", "region", "var", "year", "value")
use_data(long_columns, overwrite = T)
+
+
+# QUERY files
+
+# gcamreport7 queries complete
+queryFile <- file.path(rawDataFolder, "inst/extdata/queries/queries_gcamreport_gcam7.0_general.xml")
+queries_general <- parse_batch_query(queryFile)
+use_data(queries_general, overwrite = T)
+
+# gcamreport7 queries nonCO2
+queryFile <- file.path(rawDataFolder, "inst/extdata/queries/queries_gcamreport_gcam7.0_nonCO2.xml")
+queries_nonCO2 <- parse_batch_query(queryFile)
+use_data(queries_nonCO2, overwrite = T)
+
diff --git a/inst/extdata/template/reporting_template.csv b/inst/extdata/template/reporting_template.csv
index 55751e9..19029eb 100644
--- a/inst/extdata/template/reporting_template.csv
+++ b/inst/extdata/template/reporting_template.csv
@@ -1,1039 +1,1039 @@
-"Model","Variable","Unit","Internal_variable"
-"GCAM 7.0","Agricultural Demand","million t DM/yr","ag_demand_clean"
-"GCAM 7.0","Agricultural Demand|Crops","million t DM/yr","ag_demand_clean"
-"GCAM 7.0","Agricultural Demand|Crops|Energy","million t DM/yr","ag_demand_clean"
-"GCAM 7.0","Agricultural Demand|Crops|Energy|1st generation","million t DM/yr",""
-"GCAM 7.0","Agricultural Demand|Crops|Energy|2nd generation","million t DM/yr",""
-"GCAM 7.0","Agricultural Demand|Crops|Feed","million t DM/yr","ag_demand_clean"
-"GCAM 7.0","Agricultural Demand|Crops|Food","million t DM/yr","ag_demand_clean"
-"GCAM 7.0","Agricultural Demand|Crops|Other","million t DM/yr","ag_demand_clean"
-"GCAM 7.0","Agricultural Demand|Livestock","million t DM/yr","ag_demand_clean"
-"GCAM 7.0","Agricultural Demand|Livestock|Food","million t DM/yr","ag_demand_clean"
-"GCAM 7.0","Agricultural Demand|Livestock|Other","million t DM/yr","ag_demand_clean"
-"GCAM 7.0","Agricultural Production","million t DM/yr","ag_production_clean"
-"GCAM 7.0","Agricultural Production|Energy","million t DM/yr",""
-"GCAM 7.0","Agricultural Production|Energy|Crops","million t DM/yr",""
-"GCAM 7.0","Agricultural Production|Energy|Residues","million t DM/yr",""
-"GCAM 7.0","Agricultural Production|Non-Energy","million t DM/yr",""
-"GCAM 7.0","Agricultural Production|Non-Energy|Crops","million t DM/yr",""
-"GCAM 7.0","Agricultural Production|Non-Energy|Livestock","million t DM/yr",""
-"GCAM 7.0","Capacity Additions|Electricity|Biomass","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Biomass|w/ CCS","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Biomass|w/o CCS","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Coal","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Coal|w/ CCS","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Coal|w/o CCS","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Gas","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Gas|w/ CCS","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Gas|w/o CCS","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Geothermal","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Hydro","GW/yr",""
-"GCAM 7.0","Capacity Additions|Electricity|Nuclear","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Oil","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Oil|w/ CCS","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Oil|w/o CCS","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Solar","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Solar|CSP","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Solar|PV","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Storage Capacity","GWh/yr",""
-"GCAM 7.0","Capacity Additions|Electricity|Transmissions Grid","GWkm/yr",""
-"GCAM 7.0","Capacity Additions|Electricity|Wind","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Wind|Offshore","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity Additions|Electricity|Wind|Onshore","GW/yr","elec_capacity_add_clean"
-"GCAM 7.0","Capacity|Electricity","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Biomass","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Biomass|w/ CCS","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Biomass|w/o CCS","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Coal","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Coal|w/ CCS","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Coal|w/o CCS","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Gas","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Gas|w/ CCS","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Gas|w/o CCS","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Geothermal","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Hydro","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Nuclear","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Ocean","GW",""
-"GCAM 7.0","Capacity|Electricity|Oil","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Oil|w/ CCS","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Oil|w/o CCS","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Other","GW",""
-"GCAM 7.0","Capacity|Electricity|Peak Demand","GW",""
-"GCAM 7.0","Capacity|Electricity|Solar","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Solar|CSP","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Solar|PV","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Storage","GW",""
-"GCAM 7.0","Capacity|Electricity|Storage Capacity","GW",""
-"GCAM 7.0","Capacity|Electricity|Transmissions Grid","GW",""
-"GCAM 7.0","Capacity|Electricity|Wind","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Wind|Offshore","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Electricity|Wind|Onshore","GW","elec_capacity_tot_clean"
-"GCAM 7.0","Capacity|Gases","GW",""
-"GCAM 7.0","Capacity|Gases|Biomass","GW",""
-"GCAM 7.0","Capacity|Gases|Biomass|w/ CCS","GW",""
-"GCAM 7.0","Capacity|Gases|Biomass|w/o CCS","GW",""
-"GCAM 7.0","Capacity|Gases|Coal","GW",""
-"GCAM 7.0","Capacity|Gases|Coal|w/ CCS","GW",""
-"GCAM 7.0","Capacity|Gases|Coal|w/o CCS","GW",""
-"GCAM 7.0","Capacity|Hydrogen","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Biomass","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Biomass|w/ CCS","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Biomass|w/o CCS","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Coal","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Coal|w/ CCS","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Coal|w/o CCS","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Electricity","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Gas","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Gas|w/ CCS","GW",""
-"GCAM 7.0","Capacity|Hydrogen|Gas|w/o CCS","GW",""
-"GCAM 7.0","Capacity|Liquids","GW",""
-"GCAM 7.0","Capacity|Liquids|Biomass","GW",""
-"GCAM 7.0","Capacity|Liquids|Biomass|w/ CCS","GW",""
-"GCAM 7.0","Capacity|Liquids|Biomass|w/o CCS","GW",""
-"GCAM 7.0","Capacity|Liquids|Coal","GW",""
-"GCAM 7.0","Capacity|Liquids|Coal|w/ CCS","GW",""
-"GCAM 7.0","Capacity|Liquids|Coal|w/o CCS","GW",""
-"GCAM 7.0","Capacity|Liquids|Gas","GW",""
-"GCAM 7.0","Capacity|Liquids|Gas|w/ CCS","GW",""
-"GCAM 7.0","Capacity|Liquids|Gas|w/o CCS","GW",""
-"GCAM 7.0","Capacity|Liquids|Oil","GW",""
-"GCAM 7.0","Capacity|Transportation|Aviation|Freight","billion tkm/yr",""
-"GCAM 7.0","Capacity|Transportation|Aviation|Passenger","billion pkm/yr",""
-"GCAM 7.0","Capacity|Transportation|Maritime|Freight","billion tkm/yr",""
-"GCAM 7.0","Capacity|Transportation|Maritime|Passenger","billion pkm/yr",""
-"GCAM 7.0","Capacity|Transportation|Rail|Freight","billion tkm/yr",""
-"GCAM 7.0","Capacity|Transportation|Rail|Passenger","billion pkm/yr",""
-"GCAM 7.0","Capacity|Transportation|Road|Freight","billion tkm/yr",""
-"GCAM 7.0","Capital Cost|Electricity|Biomass|w/ CCS","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Biomass|w/o CCS","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Coal|w/ CCS","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Coal|w/o CCS","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Gas|w/ CCS","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Gas|w/o CCS","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Geothermal","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Hydro","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Electricity|Nuclear","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Solar|CSP","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Solar|PV","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Wind|Offshore","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Electricity|Wind|Onshore","US$2010/kW","elec_capital_clean"
-"GCAM 7.0","Capital Cost|Gases|Biomass|w/o CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Gases|Coal|w/o CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Hydrogen|Biomass|w/ CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Hydrogen|Biomass|w/o CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Hydrogen|Coal|w/ CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Hydrogen|Coal|w/o CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Hydrogen|Electricity","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Hydrogen|Gas|w/ CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Hydrogen|Gas|w/o CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Industry|Cement","Index (2020 = 1)",""
-"GCAM 7.0","Capital Cost|Industry|Steel","Index (2020 = 1)",""
-"GCAM 7.0","Capital Cost|Liquids|Biomass|w/ CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Liquids|Biomass|w/o CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Liquids|Coal|w/ CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Liquids|Coal|w/o CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Liquids|Gas|w/ CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Liquids|Gas|w/o CCS","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Liquids|Oil","US$2010/kW",""
-"GCAM 7.0","Capital Cost|Residential and Commercial|Cooling","Index (2020 = 1)",""
-"GCAM 7.0","Capital Cost|Residential and Commercial|Heating","Index (2020 = 1)",""
-"GCAM 7.0","Capital Cost|Transportation","Index (2020 = 1)",""
-"GCAM 7.0","Carbon Intensity|Production|Cement|Industrial Processes","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Chemicals","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Chemicals|Fossil|Energy|Demand|Industry","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Chemicals|High value chemicals","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Chemicals|High value chemicals|Fossil|Energy|Demand|Industry","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Chemicals|Methanol|Fossil|Energy|Demand|Industry","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Chemicals|Methanol|Industrial Processes","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Chemicals|Other|Industrial Processes","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Plastics|Fossil|Energy|Demand|Industry","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Plastics|Industrial Processes","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Pulp and Paper","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Pulp and Paper|Fossil|Energy|Demand|Industry","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Pulp and Paper|Industrial Processes","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Steel","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Steel|Fossil|Energy|Demand|Industry","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Intensity|Production|Steel|Industrial Processes","Mt CO2-equiv/Mt",""
-"GCAM 7.0","Carbon Sequestration|CCS","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Biomass","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Biomass|Energy|Demand|Industry","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Biomass|Energy|Supply","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Biomass|Energy|Supply|Electricity","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Biomass|Energy|Supply|Hydrogen","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Biomass|Energy|Supply|Liquids","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Fossil","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Fossil|Energy|Demand|Industry","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Fossil|Energy|Supply","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Fossil|Energy|Supply|Electricity","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Fossil|Energy|Supply|Hydrogen","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Fossil|Energy|Supply|Liquids","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|CCS|Industrial Processes","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|Direct Air Capture","Mt CO2/yr","co2_sequestration_clean"
-"GCAM 7.0","Carbon Sequestration|Feedstocks","Mt CO2/yr",""
-"GCAM 7.0","Carbon Sequestration|Land Use","Mt CO2/yr",""
-"GCAM 7.0","Carbon Sequestration|Land Use|Afforestation","Mt CO2/yr",""
-"GCAM 7.0","Concentration|CH4","ppb",""
-"GCAM 7.0","Concentration|CO2","ppm","co2_concentration_clean"
-"GCAM 7.0","Concentration|N2O","ppb",""
-"GCAM 7.0","Consumption","billion US$2010/yr",""
-"GCAM 7.0","Emissions|BC","Mt BC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|BC|AFOLU","Mt BC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|BC|Energy","Mt BC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|BC|Energy|Demand|Industry","Mt BC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|BC|Energy|Demand|Residential and Commercial","Mt BC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|BC|Energy|Demand|Transportation","Mt BC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|BC|Energy|Supply","Mt BC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|C2F6","kt C2F6/yr","nonco2_clean"
-"GCAM 7.0","Emissions|C6F14","kt C6F14/yr",""
-"GCAM 7.0","Emissions|CF4","kt CF4/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CH4","Mt CH4/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CH4|AFOLU","Mt CH4/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CH4|Energy","Mt CH4/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CH4|Energy|Demand|Industry","Mt CH4/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CH4|Energy|Demand|Residential and Commercial","Mt CH4/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CH4|Energy|Demand|Transportation","Mt CH4/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CH4|Energy|Supply","Mt CH4/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CH4|Other","Mt CH4/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CO","Mt CO/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CO|AFOLU","Mt CO/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CO|Energy","Mt CO/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CO|Energy|Demand|Industry","Mt CO/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CO|Energy|Demand|Residential and Commercial","Mt CO/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CO|Energy|Demand|Transportation","Mt CO/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CO|Energy|Supply","Mt CO/yr","nonco2_clean"
-"GCAM 7.0","Emissions|CO2","Mt CO2/yr","tot_co2_clean"
-"GCAM 7.0","Emissions|CO2|AFOLU","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy and Industrial Processes","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|AFOFI","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Cement","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Chemicals","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Chemicals|Ammonia","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Chemicals|High value chemicals","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Chemicals|Methanol","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Chemicals|Other","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Non-ferrous metals","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Other","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Plastics","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Pulp and Paper","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Industry|Steel","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Residential and Commercial","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Residential and Commercial|Commercial","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Residential and Commercial|Residential","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Aviation","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Aviation|Freight","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Aviation|Passenger","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Freight","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Maritime","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Maritime|Freight","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Maritime|Passenger","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Passenger","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Rail","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Rail|Freight","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Demand|Transportation|Road|Passenger|Bus","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Energy|Supply","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Supply|Electricity","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Supply|Gases","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Supply|Heat","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Supply|Liquids","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Energy|Supply|Solids","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Industrial Processes","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Industrial Processes|Chemicals","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Industrial Processes|Chemicals|High value chemicals","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Industrial Processes|Chemicals|Methanol","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Industrial Processes|Chemicals|Other","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Industrial Processes|Non-ferrous metals","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Industrial Processes|Other","Mt CO2/yr",""
-"GCAM 7.0","Emissions|CO2|Other","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|CO2|Other|DACCS","Mt CO2/yr","co2_emissions_clean"
-"GCAM 7.0","Emissions|F-Gases","Mt CO2-equiv/yr","f_gas_clean"
-"GCAM 7.0","Emissions|HFC","kt HFC134a-equiv/yr","nonco2_clean"
-"GCAM 7.0","Emissions|HFC|HFC125","kt HFC125/yr","nonco2_clean"
-"GCAM 7.0","Emissions|HFC|HFC134a","kt HFC134a/yr","nonco2_clean"
-"GCAM 7.0","Emissions|HFC|HFC143a","kt HFC143a/yr","nonco2_clean"
-"GCAM 7.0","Emissions|HFC|HFC227ea","kt HFC227ea/yr","nonco2_clean"
-"GCAM 7.0","Emissions|HFC|HFC23","kt HFC23/yr","nonco2_clean"
-"GCAM 7.0","Emissions|HFC|HFC245fa","kt HFC245fa/yr","nonco2_clean"
-"GCAM 7.0","Emissions|HFC|HFC32","kt HFC32/yr","nonco2_clean"
-"GCAM 7.0","Emissions|HFC|HFC43-10","kt HFC43-10/yr",""
-"GCAM 7.0","Emissions|Kyoto Gases","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|AFOLU","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Buildings","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Cement","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Chemicals","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Electricity","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Industry","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Non-ferrous Metals","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Other","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Other Energy Supply","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Other Industry","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Steel","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Supply","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|Kyoto Gases|Transportation","Mt CO2-equiv/yr","ghg_sector_clean"
-"GCAM 7.0","Emissions|N2O","kt N2O/yr","nonco2_clean"
-"GCAM 7.0","Emissions|N2O|AFOLU","kt N2O/yr","nonco2_clean"
-"GCAM 7.0","Emissions|N2O|Energy","kt N2O/yr","nonco2_clean"
-"GCAM 7.0","Emissions|N2O|Other","kt N2O/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NH3","Mt NH3/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NH3|AFOLU","Mt NH3/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NH3|Energy","Mt NH3/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NH3|Energy|Demand|Industry","Mt NH3/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NH3|Energy|Demand|Residential and Commercial","Mt NH3/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NH3|Energy|Demand|Transportation","Mt NH3/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NH3|Energy|Supply","Mt NH3/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NOx","Mt NO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NOx|AFOLU","Mt NO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NOx|Energy","Mt NO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NOx|Energy|Demand|Industry","Mt NO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NOx|Energy|Demand|Residential and Commercial","Mt NO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NOx|Energy|Demand|Transportation","Mt NO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|NOx|Energy|Supply","Mt NO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|OC","Mt OC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|OC|AFOLU","Mt OC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|OC|Energy","Mt OC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|OC|Energy|Demand|Industry","Mt OC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|OC|Energy|Demand|Residential and Commercial","Mt OC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|OC|Energy|Demand|Transportation","Mt OC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|OC|Energy|Supply","Mt OC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|PFC","kt CF4-equiv/yr","nonco2_clean"
-"GCAM 7.0","Emissions|PFC|C2F6","kt C2F6/yr",""
-"GCAM 7.0","Emissions|PFC|C6F14","kt C6F14/yr",""
-"GCAM 7.0","Emissions|PFC|CF4","kt CF4/yr",""
-"GCAM 7.0","Emissions|SF6","kt SF6/yr","nonco2_clean"
-"GCAM 7.0","Emissions|Sulfur","Mt SO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|Sulfur|AFOLU","Mt SO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|Sulfur|Energy","Mt SO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|Sulfur|Energy|Demand|Industry","Mt SO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|Sulfur|Energy|Demand|Residential and Commercial","Mt SO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|Sulfur|Energy|Demand|Transportation","Mt SO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|Sulfur|Energy|Supply","Mt SO2/yr","nonco2_clean"
-"GCAM 7.0","Emissions|VOC","Mt VOC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|VOC|AFOLU","Mt VOC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|VOC|Energy","Mt VOC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|VOC|Energy|Demand|Industry","Mt VOC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|VOC|Energy|Demand|Residential and Commercial","Mt VOC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|VOC|Energy|Demand|Transportation","Mt VOC/yr","nonco2_clean"
-"GCAM 7.0","Emissions|VOC|Energy|Supply","Mt VOC/yr","nonco2_clean"
-"GCAM 7.0","Energy Expenditures|Industry|Cement","US$2010/yr",""
-"GCAM 7.0","Energy Expenditures|Industry|Steel","US$2010/yr",""
-"GCAM 7.0","Energy Expenditures|Residential and Commercial|Cooling","US$2010/yr",""
-"GCAM 7.0","Energy Expenditures|Residential and Commercial|Heating","US$2010/yr",""
-"GCAM 7.0","Energy Expenditures|Transportation","US$2010/yr",""
-"GCAM 7.0","Energy Service|Residential and Commercial|Commercial|Health|Floor space","billion m2/yr",""
-"GCAM 7.0","Energy Service|Residential and Commercial|Commercial|Offices|Floor space","billion m2/yr",""
-"GCAM 7.0","Energy Service|Residential and Commercial|Commercial|Restaurant|Floor space","billion m2/yr",""
-"GCAM 7.0","Energy Service|Residential and Commercial|Floor Space","billion m2/yr","energy_service_buildings_clean"
-"GCAM 7.0","Energy Service|Residential and Commercial|Residential|Floor Space","billion m2/yr","energy_service_buildings_clean"
-"GCAM 7.0","Energy Service|Residential and Commercial|Residential|Multi-family|Floor space","billion m2/yr",""
-"GCAM 7.0","Energy Service|Residential and Commercial|Residential|Slum|Floor space","billion m2/yr",""
-"GCAM 7.0","Energy Service|Transportation|Aviation","billion vkm/yr",""
-"GCAM 7.0","Energy Service|Transportation|Freight","billion tkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Freight|Aviation","billion tkm/yr",""
-"GCAM 7.0","Energy Service|Transportation|Freight|International Shipping","billion tkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Freight|Navigation","billion vkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Freight|Railways","billion tkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Freight|Road","billion tkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Passenger","billion pkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Passenger|Aviation","billion pkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Passenger|Bicycling and Walking","billion pkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Passenger|Railways","billion vkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Passenger|Road","billion vkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Energy Service|Transportation|Passenger|Road|Bus","billion pkm/yr",""
-"GCAM 7.0","Energy Service|Transportation|Passenger|Road|LDV","billion pkm/yr","energy_service_transportation_clean"
-"GCAM 7.0","Expenditure|Energy|Fossil","billion US$2010/Yr",""
-"GCAM 7.0","Fertilizer Use|Nitrogen","Tg N/yr",""
-"GCAM 7.0","Fertilizer Use|Phosphorus","Tg P/yr",""
-"GCAM 7.0","Final Energy","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Geothermal","EJ/yr",""
-"GCAM 7.0","Final Energy|Heat","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Cement","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Cement|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Cement|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Cement|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Hydrogen","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Liquids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Solids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Cement|Solids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Electricity","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Solids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Ammonia|Solids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Heat","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Electricity","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Gases","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Hydrogen","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Liquids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Solids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|High value chemicals|Solids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Electricity","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Gases","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Hydrogen","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Liquids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Solids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Methanol|Solids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Electricity","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Gases","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Hydrogen","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Liquids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Solids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Other|Solids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Chemicals|Solids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Solids|Bioenergy","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Chemicals|Solids|Fossil","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Electricity|Share","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Gases|","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Heat","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Liquids|","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Liquids|Oil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Hydrogen","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Solids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Solids|Bioenergy","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Non-ferrous metals|Solids|Fossil","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Electricity","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Gases","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Hydrogen","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Liquids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Solids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Other|Solids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Electricity","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Gases","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Hydrogen","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Liquids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Solids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Plastics|Solids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Electricity","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Gases","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Hydrogen","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Liquids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Solids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Pulp and Paper|Solids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Solids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Solids|Biomass","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Solids|Coal","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Steel","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Steel|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Steel|Gases","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Steel|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Steel|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Steel|Gases|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Steel|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Steel|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Steel|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Steel|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Steel|Liquids|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Steel|Liquids|Hydrogen synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Steel|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Industry|Steel|Solids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Steel|Solids|Bioenergy","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Industry|Steel|Solids|Fossil","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Non-Energy Use","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Non-Energy Use|Biomass","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Non-Energy Use|Coal","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Non-Energy Use|Gas","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Non-Energy Use|Oil","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Other Sector","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Other Sector|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Other Sector|Gases","EJ/yr",""
-"GCAM 7.0","Final Energy|Other Sector|Heat","EJ/yr",""
-"GCAM 7.0","Final Energy|Other Sector|Hydrogen","EJ/yr",""
-"GCAM 7.0","Final Energy|Other Sector|Liquids","EJ/yr",""
-"GCAM 7.0","Final Energy|Other Sector|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Other Sector|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Other Sector|Solids|Biomass","EJ/yr",""
-"GCAM 7.0","Final Energy|Other Sector|Solids|Biomass|Traditional","EJ/yr",""
-"GCAM 7.0","Final Energy|Other Sector|Solids|Coal","EJ/yr",""
-"GCAM 7.0","Final Energy|Other|Electricity","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Appliances","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Appliances","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Cooling","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Heat","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Heating","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Heating|Cooking","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Heating|Space","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Heating|Water","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Lighting","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Ofice equipment","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Solids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Solids|Biomass","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Solids|Biomass|Traditional","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Solids|Coal","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Water|Desalination","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Water|Groundwater Extraction","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Water|Surface Water Extraction","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Commercial|Water|Transfer","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Cooling","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Heat","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Heating","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Heating|Cooking","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Heating|Space","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Heating|Water","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Lighting","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Ofice equipment","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Appliances","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Cooling","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Heat","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Heating","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Heating|Cooking","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Heating|Space","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Heating|Water","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Lighting","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Ofice equipment","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Solids","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Solids|Biomass","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Solids|Biomass|Traditional","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Residential|Solids|Coal","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Solids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Solids|Biomass","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Residential and Commercial|Solids|Biomass|Traditional","EJ/yr",""
-"GCAM 7.0","Final Energy|Residential and Commercial|Solids|Coal","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Solar","EJ/yr",""
-"GCAM 7.0","Final Energy|Solids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Solids|Biomass","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Solids|Biomass|Traditional","EJ/yr",""
-"GCAM 7.0","Final Energy|Solids|Coal","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Aviation","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Aviation|Freight","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Aviation|Passenger","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Freight","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Freight|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Freight|Gases","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Freight|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Freight|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Freight|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Freight|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Freight|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Freight|Liquids|Fossil synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Freight|Liquids|Oil","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Freight|Other","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Liquids|Coal","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Liquids|Fossil synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Liquids|Natural Gas","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Liquids|Oil","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Maritime","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Maritime|Freight","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Maritime|Passenger","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Other","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Passenger","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Passenger|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Passenger|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Passenger|Gases|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Passenger|Gases|Fossil","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Passenger|Hydrogen","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Passenger|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Passenger|Liquids|Bioenergy","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Passenger|Liquids|Fossil synfuel","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Passenger|Liquids|Oil","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Passenger|Other","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Rail","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Rail|Freight","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Rail|Passenger","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Road","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Road|Freight","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Road|Freight|Electric","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Road|Freight|FC","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Road|Freight|ICE","EJ/yr",""
-"GCAM 7.0","Final Energy|Transportation|Road|Passenger","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Road|Passenger|2W&3W","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Road|Passenger|Bus","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Transportation|Road|Passenger|4W","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Desalination","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Desalination|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Desalination|Gases","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Desalination|Liquids","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Industry","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Industry|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Irrigation","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Irrigation|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Municipal","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Final Energy|Water|Municipal|Electricity","EJ/yr","fe_sector_clean"
-"GCAM 7.0","Fiscal Gap","billion US$2010/yr",""
-"GCAM 7.0","Fiscal Resilience","billion US$2010/yr",""
-"GCAM 7.0","Food Demand","kcal/cap/day",""
-"GCAM 7.0","Food Demand|Crops","kcal/cap/day",""
-"GCAM 7.0","Food Demand|Livestock","kcal/cap/day",""
-"GCAM 7.0","Food Energy Supply","EJ/yr",""
-"GCAM 7.0","Food Energy Supply|Livestock","EJ/yr",""
-"GCAM 7.0","Forcing","W/m2","forcing_clean"
-"GCAM 7.0","Forcing|Kyoto Gases","W/m2",""
-"GCAM 7.0","Forestry Demand|Roundwood","million m3/yr",""
-"GCAM 7.0","Forestry Demand|Roundwood|Industrial Roundwood","million m3/yr",""
-"GCAM 7.0","Forestry Demand|Roundwood|Wood Fuel","million m3/yr",""
-"GCAM 7.0","Forestry Production|Roundwood","million m3/yr",""
-"GCAM 7.0","Forestry Production|Roundwood|Industrial Roundwood","million m3/yr",""
-"GCAM 7.0","Forestry Production|Roundwood|Wood Fuel","million m3/yr",""
-"GCAM 7.0","GDP|MER","billion US$2010/yr","GDP_MER_clean"
-"GCAM 7.0","GDP|PPP","billion US$2010/yr","GDP_PPP_clean"
-"GCAM 7.0","Indirect Risk|GDP Growth","%",""
-"GCAM 7.0","Indirect Risk|Public Debt","billion US$2010/yr",""
-"GCAM 7.0","Investment","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Freight|Aviation","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Freight|Railways","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Freight|Road|HDT|EV","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Freight|Road|HDT|FCV","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Freight|Road|HDT|ICE","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Passenger|Aviation","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Passenger|Railways","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Passenger|Road|LDV|EV","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Passenger|Road|LDV|FCV","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Demand|Transportation|Passenger|Road|LDV|ICE","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Efficiency","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|CO2 Transport and Storage","billion US$2010/yr","CCS_invest_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Biomass","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Biomass|w/ CCS","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Biomass|w/o CCS","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Coal","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Coal|w/ CCS","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Coal|w/o CCS","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Electricity Storage","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Electricity|Fossil","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Electricity|Gas","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Gas|w/ CCS","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Gas|w/o CCS","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Geothermal","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Hydro","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Non-Biomass Renewables","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Non-fossil","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Electricity|Nuclear","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Ocean","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Electricity|Oil","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Oil|w/ CCS","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Oil|w/o CCS","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Other","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Electricity|Solar","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Transmission and Distribution","billion US$2010/yr","transmission_invest_clean"
-"GCAM 7.0","Investment|Energy Supply|Electricity|Wind","billion US$2010/yr","elec_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Extraction|Bioenergy","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Extraction|Coal","billion US$2010/yr","resource_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Extraction|Fossil","billion US$2010/yr","resource_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Extraction|Gas","billion US$2010/yr","resource_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Extraction|Oil","billion US$2010/yr","resource_investment_clean"
-"GCAM 7.0","Investment|Energy Supply|Extraction|Uranium","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Heat","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Hydrogen","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Hydrogen|Biomass","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Hydrogen|Electricity","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Hydrogen|Fossil","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Hydrogen|Other","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Hydrogen|Renewable","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Liquids","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Liquids|Biomass","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Liquids|Coal and Gas","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Liquids|Oil","billion US$2010/yr",""
-"GCAM 7.0","Investment|Energy Supply|Other","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Industry|Green","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Industry|Non-Green","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Residential and Commercial|Building Retrofits","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Residential and Commercial|High-Efficiency Buildings","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Residential and Commercial|Low-Efficiency Buildings","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Residential and Commercial|Medium-Efficiency Buildings","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Transportation","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Transportation|Aviation","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Transportation|Maritime","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Transportation|Rail","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Transportation|Road","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Water|Cooling","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Water|Irrigation","billion US$2010/yr",""
-"GCAM 7.0","Investment|Infrastructure|Water|Other","billion US$2010/yr",""
-"GCAM 7.0","Investment|Medical System","billion US$2010/yr",""
-"GCAM 7.0","Investment|RnD|Energy Supply","billion US$2010/yr",""
-"GCAM 7.0","Land Cover","million ha","land_clean"
-"GCAM 7.0","Land Cover|Built-up Area","million ha","land_clean"
-"GCAM 7.0","Land Cover|Cropland","million ha","land_clean"
-"GCAM 7.0","Land Cover|Cropland|Cereals","million ha",""
-"GCAM 7.0","Land Cover|Cropland|Energy Crops","million ha","land_clean"
-"GCAM 7.0","Land Cover|Cropland|Irrigated","million ha",""
-"GCAM 7.0","Land Cover|Forest","million ha","land_clean"
-"GCAM 7.0","Land Cover|Forest|Afforestation and Reforestation","million ha",""
-"GCAM 7.0","Land Cover|Forest|Managed","million ha","land_clean"
-"GCAM 7.0","Land Cover|Forest|Natural Forest","million ha","land_clean"
-"GCAM 7.0","Land Cover|Other Arable Land","million ha",""
-"GCAM 7.0","Land Cover|Other Land","million ha","land_clean"
-"GCAM 7.0","Land Cover|Pasture","million ha","land_clean"
-"GCAM 7.0","Material Consumption|Domestic","Mt/yr",""
-"GCAM 7.0","Material recycling|Cement","Mt/yr",""
-"GCAM 7.0","Material recycling|Chemicals","Mt/yr",""
-"GCAM 7.0","Material recycling|Chemicals|Ammonia","Mt/yr",""
-"GCAM 7.0","Material recycling|Chemicals|High value chemicals","Mt/yr",""
-"GCAM 7.0","Material recycling|Chemicals|Methanol","Mt/yr",""
-"GCAM 7.0","Policy Cost|Additional Total Energy System Cost","billion US$2010/yr",""
-"GCAM 7.0","Policy Cost|Area under MAC Curve","billion US$2010/yr",""
-"GCAM 7.0","Policy Cost|Consumption Loss","billion US$2010/yr",""
-"GCAM 7.0","Policy Cost|Default for CAV","billion US$2010/yr",""
-"GCAM 7.0","Policy Cost|Equivalent Variation","billion US$2010/yr",""
-"GCAM 7.0","Policy Cost|GDP Loss","billion US$2010/yr",""
-"GCAM 7.0","Policy Cost|GDP Loss|w/o transfers","billion US$2010/yr",""
-"GCAM 7.0","Policy Cost|Other","billion US$2010/yr",""
-"GCAM 7.0","Policy Cost|Welfare Change","billion US$2010/yr",""
-"GCAM 7.0","Population","million","population_clean"
-"GCAM 7.0","Population|Rural","million",""
-"GCAM 7.0","Population|Urban","million",""
-"GCAM 7.0","Price|Agriculture|Corn|Index","Index (2005 = 1)","ag_prices_clean"
-"GCAM 7.0","Price|Agriculture|Non-Energy Crops and Livestock|Index","Index (2005 = 1)",""
-"GCAM 7.0","Price|Agriculture|Non-Energy Crops|Index","Index (2005 = 1)",""
-"GCAM 7.0","Price|Agriculture|Soybean|Index","Index (2005 = 1)","ag_prices_clean"
-"GCAM 7.0","Price|Agriculture|Wheat|Index","Index (2005 = 1)","ag_prices_clean"
-"GCAM 7.0","Price|Carbon","US$2010/t","co2_price_clean"
-"GCAM 7.0","Price|Carbon|Demand|Industry","US$2010/t CO2","co2_price_clean"
-"GCAM 7.0","Price|Carbon|Demand|Residential and Commercial","US$2010/t CO2","co2_price_clean"
-"GCAM 7.0","Price|Carbon|Demand|Transportation","US$2010/t CO2","co2_price_clean"
-"GCAM 7.0","Price|Carbon|Supply","US$2010/t CO2","co2_price_clean"
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Electricity","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Electricity|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Gases|Natural Gas","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Gases|Natural Gas|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Liquids|Biomass","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Liquids|Biomass|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Liquids|Oil","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Liquids|Oil|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Solids|Biomass","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Buildings|Residential|Solids|Coal","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Electricity","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Gases","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Gases|Bioenergy","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Gases|Fossil","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Hydrogen","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Liquids","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Liquids|Bioenergy","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Liquids|Fossil synfuel","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Solids|Biomass","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Industry|Solids|Coal","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Transportation|Electricity","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Transportation|Gases","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Transportation|Gases|Bioenergy","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Transportation|Gases|Fossil","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Transportation|Hydrogen","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Transportation|Liquids","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Transportation|Liquids|Bioenergy","US$2010/GJ",""
-"GCAM 7.0","Price|Final Energy|Transportation|Liquids|Fossil synfuel","US$2010/GJ",""
-"GCAM 7.0","Price|Industry|Cement","US$2010/Mt",""
-"GCAM 7.0","Price|Primary Energy|Biomass","US$2010/GJ",""
-"GCAM 7.0","Price|Primary Energy|Biomass|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Primary Energy|Coal","US$2010/GJ",""
-"GCAM 7.0","Price|Primary Energy|Coal|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Primary Energy|Gas","US$2010/GJ",""
-"GCAM 7.0","Price|Primary Energy|Gas|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Primary Energy|Oil","US$2010/GJ",""
-"GCAM 7.0","Price|Primary Energy|Oil|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Secondary Energy|Electricity","US$2010/GJ",""
-"GCAM 7.0","Price|Secondary Energy|Electricity|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Secondary Energy|Gases|Natural Gas","US$2010/GJ",""
-"GCAM 7.0","Price|Secondary Energy|Gases|Natural Gas|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Secondary Energy|Hydrogen","US$2010/GJ",""
-"GCAM 7.0","Price|Secondary Energy|Liquids","US$2010/GJ",""
-"GCAM 7.0","Price|Secondary Energy|Liquids|Biomass","US$2010/GJ",""
-"GCAM 7.0","Price|Secondary Energy|Liquids|Biomass|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Secondary Energy|Liquids|Oil","US$2010/GJ",""
-"GCAM 7.0","Price|Secondary Energy|Liquids|Oil|Index","Index (2020 = 1)",""
-"GCAM 7.0","Price|Secondary Energy|Solids|Coal","US$2010/GJ",""
-"GCAM 7.0","Price|Secondary Energy|Solids|Coal|Index","Index (2020 = 1)",""
-"GCAM 7.0","Primary Energy","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Biomass","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Biomass|1st Generation","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Biomass|Electricity","EJ/yr",""
-"GCAM 7.0","Primary Energy|Biomass|Electricity|w/ CCS","EJ/yr",""
-"GCAM 7.0","Primary Energy|Biomass|Electricity|w/o CCS","EJ/yr",""
-"GCAM 7.0","Primary Energy|Biomass|Energy Crops","EJ/yr",""
-"GCAM 7.0","Primary Energy|Biomass|Modern","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Biomass|Residues","EJ/yr",""
-"GCAM 7.0","Primary Energy|Biomass|Traditional","EJ/yr",""
-"GCAM 7.0","Primary Energy|Coal","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Coal|Electricity","EJ/yr",""
-"GCAM 7.0","Primary Energy|Coal|Electricity|w/ CCS","EJ/yr",""
-"GCAM 7.0","Primary Energy|Coal|Electricity|w/o CCS","EJ/yr",""
-"GCAM 7.0","Primary Energy|Coal|w/ CCS","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Coal|w/o CCS","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Fossil","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Fossil|w/ CCS","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Fossil|w/o CCS","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Gas","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Gas|Electricity","EJ/yr",""
-"GCAM 7.0","Primary Energy|Gas|Electricity|w/ CCS","EJ/yr",""
-"GCAM 7.0","Primary Energy|Gas|Electricity|w/o CCS","EJ/yr",""
-"GCAM 7.0","Primary Energy|Gas|w/ CCS","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Gas|w/o CCS","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Non-Biomass Renewables","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Non-Biomass Renewables|Geothermal","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Non-Biomass Renewables|Hydro","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Non-Biomass Renewables|Ocean","EJ/yr",""
-"GCAM 7.0","Primary Energy|Non-Biomass Renewables|Solar","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Non-Biomass Renewables|Wind","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Nuclear","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Oil","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Oil|Electricity","EJ/yr",""
-"GCAM 7.0","Primary Energy|Oil|Electricity|w/ CCS","EJ/yr",""
-"GCAM 7.0","Primary Energy|Oil|Electricity|w/o CCS","EJ/yr",""
-"GCAM 7.0","Primary Energy|Oil|w/ CCS","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Oil|w/o CCS","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Primary Energy|Other","EJ/yr",""
-"GCAM 7.0","Primary Energy|Secondary Energy Trade","EJ/yr","primary_energy_clean"
-"GCAM 7.0","Production|Cement","Mt/yr","industry_production_clean"
-"GCAM 7.0","Production|Chemicals","Mt/yr",""
-"GCAM 7.0","Production|Chemicals|Other","Mt/yr",""
-"GCAM 7.0","Production|Non-ferrous metals","Mt/yr","industry_production_clean"
-"GCAM 7.0","Production|Plastics","Mt/yr",""
-"GCAM 7.0","Production|Pulp and Paper","Mt/yr",""
-"GCAM 7.0","Production|Steel","Mt/yr","industry_production_clean"
-"GCAM 7.0","Productivity|Industry|Cement","Mt/EJ",""
-"GCAM 7.0","Productivity|Industry|Steel","Mt/EJ",""
-"GCAM 7.0","Productivity|Residential and Commercial|Cooling","%",""
-"GCAM 7.0","Productivity|Residential and Commercial|Heating","%",""
-"GCAM 7.0","Productivity|Transportation|Freight","billion tkm/EJ",""
-"GCAM 7.0","Productivity|Transportation|Passenger","billion pkm/EJ",""
-"GCAM 7.0","Revenue|Government|Tax|Carbon","billion US$2010/yr","gov_revenue_clean"
-"GCAM 7.0","Revenue|Government|Tax|Carbon|Demand|Buildings","billion US$2010/yr","gov_revenue_clean"
-"GCAM 7.0","Revenue|Government|Tax|Carbon|Demand|Industry","billion US$2010/yr","gov_revenue_clean"
-"GCAM 7.0","Revenue|Government|Tax|Carbon|Demand|Transport","billion US$2010/yr","gov_revenue_clean"
-"GCAM 7.0","Revenue|Government|Tax|Carbon|Supply","billion US$2010/yr","gov_revenue_clean"
-"GCAM 7.0","Revenue|Industry|Cement","US$2010/yr",""
-"GCAM 7.0","Revenue|Industry|Steel","US$2010/yr",""
-"GCAM 7.0","Secondary Energy","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Biomass","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Biomass|w/ CCS","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Biomass|w/o CCS","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Coal","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Coal|w/ CCS","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Coal|w/o CCS","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Fossil","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Electricity|Fossil|w/ CCS","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Electricity|Fossil|w/o CCS","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Electricity|Gas","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Gas|w/ CCS","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Gas|w/o CCS","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Geothermal","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Hydro","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Non-Biomass Renewables","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Nuclear","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Oil","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Oil|w/o CCS","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Other","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Electricity|Solar","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Solar|CSP","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Solar|PV","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Storage Losses","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Electricity|Transmission Losses","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Electricity|Wind","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Wind|Offshore","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Electricity|Wind|Onshore","EJ/yr","elec_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Gases","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Gases|Biomass","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Gases|Coal","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Gases|Natural Gas","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Gases|Other","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Heat","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Heat|Biomass","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Heat|Coal","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Heat|Gas","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Heat|Geothermal","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Heat|Oil","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Heat|Other","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Hydrogen","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Biomass","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Biomass|w/ CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Biomass|w/o CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Coal","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Coal|w/ CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Coal|w/o CCS","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Hydrogen|Electricity","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Fossil","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Fossil|w/ CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Fossil|w/o CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Gas","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Gas|w/ CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Hydrogen|Gas|w/o CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Biomass","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Biomass|w/ CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Biomass|w/o CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Coal","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Coal|w/ CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Coal|w/o CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Fossil","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Fossil|w/ CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Fossil|w/o CCS","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Gas","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Liquids|Gas|w/ CCS","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Liquids|Gas|w/o CCS","EJ/yr",""
-"GCAM 7.0","Secondary Energy|Liquids|Oil","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Solids","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Solids|Biomass","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Secondary Energy|Solids|Coal","EJ/yr","se_gen_tech_clean"
-"GCAM 7.0","Specific Energy Consumption|Production|Chemicals|Methanol","MJ/t",""
-"GCAM 7.0","Specific Energy Consumption|Production|Chemicals|Other","MJ/t",""
-"GCAM 7.0","Specific Energy Consumption|Production|Non-ferrous metals","MJ/t",""
-"GCAM 7.0","Temperature|Global Mean","ºC","global_temp_clean"
-"GCAM 7.0","Trade|Primary Energy|Biomass|Volume","EJ/yr",""
-"GCAM 7.0","Trade|Primary Energy|Coal|Volume","EJ/yr","energy_trade_clean"
-"GCAM 7.0","Trade|Primary Energy|Gas|Volume","EJ/yr","energy_trade_clean"
-"GCAM 7.0","Trade|Primary Energy|Oil|Volume","EJ/yr","energy_trade_clean"
-"GCAM 7.0","Transport|Stock|Maritime","million vehicles",""
-"GCAM 7.0","Transport|Stock|Maritime|Freight","million vehicles",""
-"GCAM 7.0","Transport|Stock|Rail","million vehicles",""
-"GCAM 7.0","Transport|Stock|Rail|Freight","million vehicles",""
-"GCAM 7.0","Transport|Stock|Rail|Passenger","million vehicles",""
-"GCAM 7.0","Transport|Stock|Road|Freight","million vehicles",""
-"GCAM 7.0","Transport|Stock|Road|Passenger","million vehicles",""
-"GCAM 7.0","Transport|Stock|Road|Passenger|2W&3W","million vehicles",""
-"GCAM 7.0","Transport|Stock|Road|Passenger|Bus","million vehicles",""
-"GCAM 7.0","Value Added|Industry","billion US$2010/yr",""
-"GCAM 7.0","Value Added|Industry|Energy","billion US$2010/yr",""
-"GCAM 7.0","Value Added|Industry|Share of energy costs","%",""
-"GCAM 7.0","Water Consumption","km3/yr",""
-"GCAM 7.0","Water Consumption|Irrigation","km3/yr",""
-"GCAM 7.0","Water Withdrawal|Irrigation","km3/yr",""
-"GCAM 7.0","Yield|Cereal","t DM/ha/yr",""
-"GCAM 7.0","Yield|Oilcrops","t DM/ha/yr",""
-"GCAM 7.0","Yield|Sugarcrops","t DM/ha/yr",""
+Model,Variable,Unit,Internal_variable
+GCAM 7.0,Agricultural Demand,million t DM/yr,ag_demand_clean
+GCAM 7.0,Agricultural Demand|Crops,million t DM/yr,ag_demand_clean
+GCAM 7.0,Agricultural Demand|Crops|Energy,million t DM/yr,ag_demand_clean
+GCAM 7.0,Agricultural Demand|Crops|Energy|1st generation,million t DM/yr,
+GCAM 7.0,Agricultural Demand|Crops|Energy|2nd generation,million t DM/yr,
+GCAM 7.0,Agricultural Demand|Crops|Feed,million t DM/yr,ag_demand_clean
+GCAM 7.0,Agricultural Demand|Crops|Food,million t DM/yr,ag_demand_clean
+GCAM 7.0,Agricultural Demand|Crops|Other,million t DM/yr,ag_demand_clean
+GCAM 7.0,Agricultural Demand|Livestock,million t DM/yr,ag_demand_clean
+GCAM 7.0,Agricultural Demand|Livestock|Food,million t DM/yr,ag_demand_clean
+GCAM 7.0,Agricultural Demand|Livestock|Other,million t DM/yr,ag_demand_clean
+GCAM 7.0,Agricultural Production,million t DM/yr,ag_production_clean
+GCAM 7.0,Agricultural Production|Energy,million t DM/yr,
+GCAM 7.0,Agricultural Production|Energy|Crops,million t DM/yr,
+GCAM 7.0,Agricultural Production|Energy|Residues,million t DM/yr,
+GCAM 7.0,Agricultural Production|Non-Energy,million t DM/yr,
+GCAM 7.0,Agricultural Production|Non-Energy|Crops,million t DM/yr,
+GCAM 7.0,Agricultural Production|Non-Energy|Livestock,million t DM/yr,
+GCAM 7.0,Capacity Additions|Electricity|Biomass,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Biomass|w/ CCS,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Biomass|w/o CCS,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Coal,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Coal|w/ CCS,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Coal|w/o CCS,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Gas,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Gas|w/ CCS,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Gas|w/o CCS,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Geothermal,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Hydro,GW/yr,
+GCAM 7.0,Capacity Additions|Electricity|Nuclear,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Oil,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Oil|w/ CCS,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Oil|w/o CCS,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Solar,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Solar|CSP,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Solar|PV,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Storage Capacity,GWh/yr,
+GCAM 7.0,Capacity Additions|Electricity|Transmissions Grid,GWkm/yr,
+GCAM 7.0,Capacity Additions|Electricity|Wind,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Wind|Offshore,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity Additions|Electricity|Wind|Onshore,GW/yr,elec_capacity_add_clean
+GCAM 7.0,Capacity|Electricity,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Biomass,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Biomass|w/ CCS,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Biomass|w/o CCS,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Coal,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Coal|w/ CCS,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Coal|w/o CCS,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Gas,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Gas|w/ CCS,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Gas|w/o CCS,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Geothermal,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Hydro,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Nuclear,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Ocean,GW,
+GCAM 7.0,Capacity|Electricity|Oil,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Oil|w/ CCS,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Oil|w/o CCS,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Other,GW,
+GCAM 7.0,Capacity|Electricity|Peak Demand,GW,
+GCAM 7.0,Capacity|Electricity|Solar,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Solar|CSP,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Solar|PV,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Storage,GW,
+GCAM 7.0,Capacity|Electricity|Storage Capacity,GW,
+GCAM 7.0,Capacity|Electricity|Transmissions Grid,GW,
+GCAM 7.0,Capacity|Electricity|Wind,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Wind|Offshore,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Electricity|Wind|Onshore,GW,elec_capacity_tot_clean
+GCAM 7.0,Capacity|Gases,GW,
+GCAM 7.0,Capacity|Gases|Biomass,GW,
+GCAM 7.0,Capacity|Gases|Biomass|w/ CCS,GW,
+GCAM 7.0,Capacity|Gases|Biomass|w/o CCS,GW,
+GCAM 7.0,Capacity|Gases|Coal,GW,
+GCAM 7.0,Capacity|Gases|Coal|w/ CCS,GW,
+GCAM 7.0,Capacity|Gases|Coal|w/o CCS,GW,
+GCAM 7.0,Capacity|Hydrogen,GW,
+GCAM 7.0,Capacity|Hydrogen|Biomass,GW,
+GCAM 7.0,Capacity|Hydrogen|Biomass|w/ CCS,GW,
+GCAM 7.0,Capacity|Hydrogen|Biomass|w/o CCS,GW,
+GCAM 7.0,Capacity|Hydrogen|Coal,GW,
+GCAM 7.0,Capacity|Hydrogen|Coal|w/ CCS,GW,
+GCAM 7.0,Capacity|Hydrogen|Coal|w/o CCS,GW,
+GCAM 7.0,Capacity|Hydrogen|Electricity,GW,
+GCAM 7.0,Capacity|Hydrogen|Gas,GW,
+GCAM 7.0,Capacity|Hydrogen|Gas|w/ CCS,GW,
+GCAM 7.0,Capacity|Hydrogen|Gas|w/o CCS,GW,
+GCAM 7.0,Capacity|Liquids,GW,
+GCAM 7.0,Capacity|Liquids|Biomass,GW,
+GCAM 7.0,Capacity|Liquids|Biomass|w/ CCS,GW,
+GCAM 7.0,Capacity|Liquids|Biomass|w/o CCS,GW,
+GCAM 7.0,Capacity|Liquids|Coal,GW,
+GCAM 7.0,Capacity|Liquids|Coal|w/ CCS,GW,
+GCAM 7.0,Capacity|Liquids|Coal|w/o CCS,GW,
+GCAM 7.0,Capacity|Liquids|Gas,GW,
+GCAM 7.0,Capacity|Liquids|Gas|w/ CCS,GW,
+GCAM 7.0,Capacity|Liquids|Gas|w/o CCS,GW,
+GCAM 7.0,Capacity|Liquids|Oil,GW,
+GCAM 7.0,Capacity|Transportation|Aviation|Freight,billion tkm/yr,
+GCAM 7.0,Capacity|Transportation|Aviation|Passenger,billion pkm/yr,
+GCAM 7.0,Capacity|Transportation|Maritime|Freight,billion tkm/yr,
+GCAM 7.0,Capacity|Transportation|Maritime|Passenger,billion pkm/yr,
+GCAM 7.0,Capacity|Transportation|Rail|Freight,billion tkm/yr,
+GCAM 7.0,Capacity|Transportation|Rail|Passenger,billion pkm/yr,
+GCAM 7.0,Capacity|Transportation|Road|Freight,billion tkm/yr,
+GCAM 7.0,Capital Cost|Electricity|Biomass|w/ CCS,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Biomass|w/o CCS,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Coal|w/ CCS,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Coal|w/o CCS,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Gas|w/ CCS,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Gas|w/o CCS,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Geothermal,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Hydro,US$2010/kW,
+GCAM 7.0,Capital Cost|Electricity|Nuclear,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Solar|CSP,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Solar|PV,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Wind|Offshore,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Electricity|Wind|Onshore,US$2010/kW,elec_capital_clean
+GCAM 7.0,Capital Cost|Gases|Biomass|w/o CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Gases|Coal|w/o CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Hydrogen|Biomass|w/ CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Hydrogen|Biomass|w/o CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Hydrogen|Coal|w/ CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Hydrogen|Coal|w/o CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Hydrogen|Electricity,US$2010/kW,
+GCAM 7.0,Capital Cost|Hydrogen|Gas|w/ CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Hydrogen|Gas|w/o CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Industry|Cement,Index (2020 = 1),
+GCAM 7.0,Capital Cost|Industry|Steel,Index (2020 = 1),
+GCAM 7.0,Capital Cost|Liquids|Biomass|w/ CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Liquids|Biomass|w/o CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Liquids|Coal|w/ CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Liquids|Coal|w/o CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Liquids|Gas|w/ CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Liquids|Gas|w/o CCS,US$2010/kW,
+GCAM 7.0,Capital Cost|Liquids|Oil,US$2010/kW,
+GCAM 7.0,Capital Cost|Residential and Commercial|Cooling,Index (2020 = 1),
+GCAM 7.0,Capital Cost|Residential and Commercial|Heating,Index (2020 = 1),
+GCAM 7.0,Capital Cost|Transportation,Index (2020 = 1),
+GCAM 7.0,Carbon Intensity|Production|Cement|Industrial Processes,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Chemicals,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Chemicals|Fossil|Energy|Demand|Industry,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Chemicals|High value chemicals,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Chemicals|High value chemicals|Fossil|Energy|Demand|Industry,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Chemicals|Methanol|Fossil|Energy|Demand|Industry,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Chemicals|Methanol|Industrial Processes,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Chemicals|Other|Industrial Processes,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Plastics|Fossil|Energy|Demand|Industry,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Plastics|Industrial Processes,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Pulp and Paper,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Pulp and Paper|Fossil|Energy|Demand|Industry,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Pulp and Paper|Industrial Processes,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Steel,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Steel|Fossil|Energy|Demand|Industry,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Intensity|Production|Steel|Industrial Processes,Mt CO2-equiv/Mt,
+GCAM 7.0,Carbon Sequestration|CCS,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Biomass,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Biomass|Energy|Demand|Industry,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Biomass|Energy|Supply,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Biomass|Energy|Supply|Electricity,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Biomass|Energy|Supply|Hydrogen,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Biomass|Energy|Supply|Liquids,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Fossil,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Fossil|Energy|Demand|Industry,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Fossil|Energy|Supply,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Fossil|Energy|Supply|Electricity,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Fossil|Energy|Supply|Hydrogen,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Fossil|Energy|Supply|Liquids,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|CCS|Industrial Processes,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|Direct Air Capture,Mt CO2/yr,co2_sequestration_clean
+GCAM 7.0,Carbon Sequestration|Feedstocks,Mt CO2/yr,
+GCAM 7.0,Carbon Sequestration|Land Use,Mt CO2/yr,
+GCAM 7.0,Carbon Sequestration|Land Use|Afforestation,Mt CO2/yr,
+GCAM 7.0,Concentration|CH4,ppb,
+GCAM 7.0,Concentration|CO2,ppm,co2_concentration_clean
+GCAM 7.0,Concentration|N2O,ppb,
+GCAM 7.0,Consumption,billion US$2010/yr,
+GCAM 7.0,Emissions|BC,Mt BC/yr,nonco2_clean
+GCAM 7.0,Emissions|BC|AFOLU,Mt BC/yr,nonco2_clean
+GCAM 7.0,Emissions|BC|Energy,Mt BC/yr,nonco2_clean
+GCAM 7.0,Emissions|BC|Energy|Demand|Industry,Mt BC/yr,nonco2_clean
+GCAM 7.0,Emissions|BC|Energy|Demand|Residential and Commercial,Mt BC/yr,nonco2_clean
+GCAM 7.0,Emissions|BC|Energy|Demand|Transportation,Mt BC/yr,nonco2_clean
+GCAM 7.0,Emissions|BC|Energy|Supply,Mt BC/yr,nonco2_clean
+GCAM 7.0,Emissions|C2F6,kt C2F6/yr,nonco2_clean
+GCAM 7.0,Emissions|C6F14,kt C6F14/yr,
+GCAM 7.0,Emissions|CF4,kt CF4/yr,nonco2_clean
+GCAM 7.0,Emissions|CH4,Mt CH4/yr,nonco2_clean
+GCAM 7.0,Emissions|CH4|AFOLU,Mt CH4/yr,nonco2_clean
+GCAM 7.0,Emissions|CH4|Energy,Mt CH4/yr,nonco2_clean
+GCAM 7.0,Emissions|CH4|Energy|Demand|Industry,Mt CH4/yr,nonco2_clean
+GCAM 7.0,Emissions|CH4|Energy|Demand|Residential and Commercial,Mt CH4/yr,nonco2_clean
+GCAM 7.0,Emissions|CH4|Energy|Demand|Transportation,Mt CH4/yr,nonco2_clean
+GCAM 7.0,Emissions|CH4|Energy|Supply,Mt CH4/yr,nonco2_clean
+GCAM 7.0,Emissions|CH4|Other,Mt CH4/yr,nonco2_clean
+GCAM 7.0,Emissions|CO,Mt CO/yr,nonco2_clean
+GCAM 7.0,Emissions|CO|AFOLU,Mt CO/yr,nonco2_clean
+GCAM 7.0,Emissions|CO|Energy,Mt CO/yr,nonco2_clean
+GCAM 7.0,Emissions|CO|Energy|Demand|Industry,Mt CO/yr,nonco2_clean
+GCAM 7.0,Emissions|CO|Energy|Demand|Residential and Commercial,Mt CO/yr,nonco2_clean
+GCAM 7.0,Emissions|CO|Energy|Demand|Transportation,Mt CO/yr,nonco2_clean
+GCAM 7.0,Emissions|CO|Energy|Supply,Mt CO/yr,nonco2_clean
+GCAM 7.0,Emissions|CO2,Mt CO2/yr,tot_co2_clean
+GCAM 7.0,Emissions|CO2|AFOLU,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy and Industrial Processes,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|AFOFI,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Cement,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Chemicals,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Chemicals|Ammonia,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Chemicals|High value chemicals,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Chemicals|Methanol,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Chemicals|Other,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Non-ferrous metals,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Other,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Plastics,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Pulp and Paper,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Industry|Steel,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Residential and Commercial,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Residential and Commercial|Commercial,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Residential and Commercial|Residential,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Aviation,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Aviation|Freight,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Aviation|Passenger,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Freight,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Maritime,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Maritime|Freight,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Maritime|Passenger,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Passenger,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Rail,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Rail|Freight,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Demand|Transportation|Road|Passenger|Bus,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Energy|Supply,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Supply|Electricity,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Supply|Gases,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Supply|Heat,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Supply|Liquids,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Energy|Supply|Solids,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Industrial Processes,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Industrial Processes|Chemicals,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Industrial Processes|Chemicals|High value chemicals,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Industrial Processes|Chemicals|Methanol,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Industrial Processes|Chemicals|Other,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Industrial Processes|Non-ferrous metals,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Industrial Processes|Other,Mt CO2/yr,
+GCAM 7.0,Emissions|CO2|Other,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|CO2|Other|DACCS,Mt CO2/yr,co2_emissions_clean
+GCAM 7.0,Emissions|F-Gases,Mt CO2-equiv/yr,f_gas_clean
+GCAM 7.0,Emissions|HFC,kt HFC134a-equiv/yr,nonco2_clean
+GCAM 7.0,Emissions|HFC|HFC125,kt HFC125/yr,nonco2_clean
+GCAM 7.0,Emissions|HFC|HFC134a,kt HFC134a/yr,nonco2_clean
+GCAM 7.0,Emissions|HFC|HFC143a,kt HFC143a/yr,nonco2_clean
+GCAM 7.0,Emissions|HFC|HFC227ea,kt HFC227ea/yr,nonco2_clean
+GCAM 7.0,Emissions|HFC|HFC23,kt HFC23/yr,nonco2_clean
+GCAM 7.0,Emissions|HFC|HFC245fa,kt HFC245fa/yr,nonco2_clean
+GCAM 7.0,Emissions|HFC|HFC32,kt HFC32/yr,nonco2_clean
+GCAM 7.0,Emissions|HFC|HFC43-10,kt HFC43-10/yr,
+GCAM 7.0,Emissions|Kyoto Gases,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|AFOLU,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Buildings,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Cement,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Chemicals,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Electricity,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Industry,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Non-ferrous Metals,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Other,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Other Energy Supply,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Other Industry,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Steel,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Supply,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|Kyoto Gases|Transportation,Mt CO2-equiv/yr,ghg_sector_clean
+GCAM 7.0,Emissions|N2O,kt N2O/yr,nonco2_clean
+GCAM 7.0,Emissions|N2O|AFOLU,kt N2O/yr,nonco2_clean
+GCAM 7.0,Emissions|N2O|Energy,kt N2O/yr,nonco2_clean
+GCAM 7.0,Emissions|N2O|Other,kt N2O/yr,nonco2_clean
+GCAM 7.0,Emissions|NH3,Mt NH3/yr,nonco2_clean
+GCAM 7.0,Emissions|NH3|AFOLU,Mt NH3/yr,nonco2_clean
+GCAM 7.0,Emissions|NH3|Energy,Mt NH3/yr,nonco2_clean
+GCAM 7.0,Emissions|NH3|Energy|Demand|Industry,Mt NH3/yr,nonco2_clean
+GCAM 7.0,Emissions|NH3|Energy|Demand|Residential and Commercial,Mt NH3/yr,nonco2_clean
+GCAM 7.0,Emissions|NH3|Energy|Demand|Transportation,Mt NH3/yr,nonco2_clean
+GCAM 7.0,Emissions|NH3|Energy|Supply,Mt NH3/yr,nonco2_clean
+GCAM 7.0,Emissions|NOx,Mt NO2/yr,nonco2_clean
+GCAM 7.0,Emissions|NOx|AFOLU,Mt NO2/yr,nonco2_clean
+GCAM 7.0,Emissions|NOx|Energy,Mt NO2/yr,nonco2_clean
+GCAM 7.0,Emissions|NOx|Energy|Demand|Industry,Mt NO2/yr,nonco2_clean
+GCAM 7.0,Emissions|NOx|Energy|Demand|Residential and Commercial,Mt NO2/yr,nonco2_clean
+GCAM 7.0,Emissions|NOx|Energy|Demand|Transportation,Mt NO2/yr,nonco2_clean
+GCAM 7.0,Emissions|NOx|Energy|Supply,Mt NO2/yr,nonco2_clean
+GCAM 7.0,Emissions|OC,Mt OC/yr,nonco2_clean
+GCAM 7.0,Emissions|OC|AFOLU,Mt OC/yr,nonco2_clean
+GCAM 7.0,Emissions|OC|Energy,Mt OC/yr,nonco2_clean
+GCAM 7.0,Emissions|OC|Energy|Demand|Industry,Mt OC/yr,nonco2_clean
+GCAM 7.0,Emissions|OC|Energy|Demand|Residential and Commercial,Mt OC/yr,nonco2_clean
+GCAM 7.0,Emissions|OC|Energy|Demand|Transportation,Mt OC/yr,nonco2_clean
+GCAM 7.0,Emissions|OC|Energy|Supply,Mt OC/yr,nonco2_clean
+GCAM 7.0,Emissions|PFC,kt CF4-equiv/yr,nonco2_clean
+GCAM 7.0,Emissions|PFC|C2F6,kt C2F6/yr,
+GCAM 7.0,Emissions|PFC|C6F14,kt C6F14/yr,
+GCAM 7.0,Emissions|PFC|CF4,kt CF4/yr,
+GCAM 7.0,Emissions|SF6,kt SF6/yr,nonco2_clean
+GCAM 7.0,Emissions|Sulfur,Mt SO2/yr,nonco2_clean
+GCAM 7.0,Emissions|Sulfur|AFOLU,Mt SO2/yr,nonco2_clean
+GCAM 7.0,Emissions|Sulfur|Energy,Mt SO2/yr,nonco2_clean
+GCAM 7.0,Emissions|Sulfur|Energy|Demand|Industry,Mt SO2/yr,nonco2_clean
+GCAM 7.0,Emissions|Sulfur|Energy|Demand|Residential and Commercial,Mt SO2/yr,nonco2_clean
+GCAM 7.0,Emissions|Sulfur|Energy|Demand|Transportation,Mt SO2/yr,nonco2_clean
+GCAM 7.0,Emissions|Sulfur|Energy|Supply,Mt SO2/yr,nonco2_clean
+GCAM 7.0,Emissions|VOC,Mt VOC/yr,nonco2_clean
+GCAM 7.0,Emissions|VOC|AFOLU,Mt VOC/yr,nonco2_clean
+GCAM 7.0,Emissions|VOC|Energy,Mt VOC/yr,nonco2_clean
+GCAM 7.0,Emissions|VOC|Energy|Demand|Industry,Mt VOC/yr,nonco2_clean
+GCAM 7.0,Emissions|VOC|Energy|Demand|Residential and Commercial,Mt VOC/yr,nonco2_clean
+GCAM 7.0,Emissions|VOC|Energy|Demand|Transportation,Mt VOC/yr,nonco2_clean
+GCAM 7.0,Emissions|VOC|Energy|Supply,Mt VOC/yr,nonco2_clean
+GCAM 7.0,Energy Expenditures|Industry|Cement,US$2010/yr,
+GCAM 7.0,Energy Expenditures|Industry|Steel,US$2010/yr,
+GCAM 7.0,Energy Expenditures|Residential and Commercial|Cooling,US$2010/yr,
+GCAM 7.0,Energy Expenditures|Residential and Commercial|Heating,US$2010/yr,
+GCAM 7.0,Energy Expenditures|Transportation,US$2010/yr,
+GCAM 7.0,Energy Service|Residential and Commercial|Commercial|Health|Floor space,billion m2/yr,
+GCAM 7.0,Energy Service|Residential and Commercial|Commercial|Offices|Floor space,billion m2/yr,
+GCAM 7.0,Energy Service|Residential and Commercial|Commercial|Restaurant|Floor space,billion m2/yr,
+GCAM 7.0,Energy Service|Residential and Commercial|Floor Space,billion m2/yr,energy_service_buildings_clean
+GCAM 7.0,Energy Service|Residential and Commercial|Residential|Floor Space,billion m2/yr,energy_service_buildings_clean
+GCAM 7.0,Energy Service|Residential and Commercial|Residential|Multi-family|Floor space,billion m2/yr,
+GCAM 7.0,Energy Service|Residential and Commercial|Residential|Slum|Floor space,billion m2/yr,
+GCAM 7.0,Energy Service|Transportation|Aviation,billion vkm/yr,
+GCAM 7.0,Energy Service|Transportation|Freight,billion tkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Freight|Aviation,billion tkm/yr,
+GCAM 7.0,Energy Service|Transportation|Freight|International Shipping,billion tkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Freight|Navigation,billion vkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Freight|Railways,billion tkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Freight|Road,billion tkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Passenger,billion pkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Passenger|Aviation,billion pkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Passenger|Bicycling and Walking,billion pkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Passenger|Railways,billion vkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Passenger|Road,billion vkm/yr,energy_service_transportation_clean
+GCAM 7.0,Energy Service|Transportation|Passenger|Road|Bus,billion pkm/yr,
+GCAM 7.0,Energy Service|Transportation|Passenger|Road|LDV,billion pkm/yr,energy_service_transportation_clean
+GCAM 7.0,Expenditure|Energy|Fossil,billion US$2010/Yr,
+GCAM 7.0,Fertilizer Use|Nitrogen,Tg N/yr,
+GCAM 7.0,Fertilizer Use|Phosphorus,Tg P/yr,
+GCAM 7.0,Final Energy,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Geothermal,EJ/yr,
+GCAM 7.0,Final Energy|Heat,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Cement,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Cement|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Cement|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Cement|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Hydrogen,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Liquids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Solids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Cement|Solids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Electricity,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Solids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Ammonia|Solids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Heat,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Electricity,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Gases,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Hydrogen,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Liquids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Solids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|High value chemicals|Solids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Electricity,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Gases,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Hydrogen,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Liquids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Solids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Methanol|Solids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Electricity,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Gases,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Hydrogen,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Liquids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Solids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Other|Solids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Chemicals|Solids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Solids|Bioenergy,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Chemicals|Solids|Fossil,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Electricity|Share,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Gases|,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Heat,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Liquids|,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Liquids|Oil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Hydrogen,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Solids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Solids|Bioenergy,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Non-ferrous metals|Solids|Fossil,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Electricity,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Gases,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Hydrogen,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Liquids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Solids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Other|Solids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Electricity,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Gases,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Hydrogen,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Liquids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Solids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Plastics|Solids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Electricity,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Gases,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Hydrogen,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Liquids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Solids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Pulp and Paper|Solids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Solids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Solids|Biomass,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Solids|Coal,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Steel,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Steel|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Steel|Gases,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Steel|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Steel|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Steel|Gases|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Steel|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Steel|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Steel|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Steel|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Steel|Liquids|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Steel|Liquids|Hydrogen synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Steel|Other,EJ/yr,
+GCAM 7.0,Final Energy|Industry|Steel|Solids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Steel|Solids|Bioenergy,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Industry|Steel|Solids|Fossil,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Non-Energy Use,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Non-Energy Use|Biomass,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Non-Energy Use|Coal,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Non-Energy Use|Gas,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Non-Energy Use|Oil,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Other,EJ/yr,
+GCAM 7.0,Final Energy|Other,EJ/yr,
+GCAM 7.0,Final Energy|Other Sector,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Other Sector|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Other Sector|Gases,EJ/yr,
+GCAM 7.0,Final Energy|Other Sector|Heat,EJ/yr,
+GCAM 7.0,Final Energy|Other Sector|Hydrogen,EJ/yr,
+GCAM 7.0,Final Energy|Other Sector|Liquids,EJ/yr,
+GCAM 7.0,Final Energy|Other Sector|Other,EJ/yr,
+GCAM 7.0,Final Energy|Other Sector|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Other Sector|Solids|Biomass,EJ/yr,
+GCAM 7.0,Final Energy|Other Sector|Solids|Biomass|Traditional,EJ/yr,
+GCAM 7.0,Final Energy|Other Sector|Solids|Coal,EJ/yr,
+GCAM 7.0,Final Energy|Other|Electricity,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Appliances,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Appliances,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Cooling,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Heat,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Heating,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Heating|Cooking,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Heating|Space,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Heating|Water,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Lighting,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Ofice equipment,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Other,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Solids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Solids|Biomass,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Solids|Biomass|Traditional,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Solids|Coal,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Water|Desalination,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Water|Groundwater Extraction,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Water|Surface Water Extraction,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Commercial|Water|Transfer,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Cooling,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Heat,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Heating,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Heating|Cooking,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Heating|Space,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Heating|Water,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Lighting,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Ofice equipment,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Other,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Appliances,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Cooling,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Heat,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Heating,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Heating|Cooking,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Heating|Space,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Heating|Water,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Lighting,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Ofice equipment,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Other,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Solids,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Solids|Biomass,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Solids|Biomass|Traditional,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Residential|Solids|Coal,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Solids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Solids|Biomass,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Residential and Commercial|Solids|Biomass|Traditional,EJ/yr,
+GCAM 7.0,Final Energy|Residential and Commercial|Solids|Coal,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Solar,EJ/yr,
+GCAM 7.0,Final Energy|Solids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Solids|Biomass,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Solids|Biomass|Traditional,EJ/yr,
+GCAM 7.0,Final Energy|Solids|Coal,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Aviation,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Aviation|Freight,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Aviation|Passenger,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Freight,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Freight|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Freight|Gases,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Freight|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Freight|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Freight|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Freight|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Freight|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Freight|Liquids|Fossil synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Freight|Liquids|Oil,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Freight|Other,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Liquids|Coal,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Liquids|Fossil synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Liquids|Natural Gas,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Liquids|Oil,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Maritime,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Maritime|Freight,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Maritime|Passenger,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Other,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Passenger,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Passenger|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Passenger|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Passenger|Gases|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Passenger|Gases|Fossil,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Passenger|Hydrogen,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Passenger|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Passenger|Liquids|Bioenergy,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Passenger|Liquids|Fossil synfuel,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Passenger|Liquids|Oil,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Passenger|Other,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Rail,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Rail|Freight,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Rail|Passenger,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Road,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Road|Freight,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Road|Freight|Electric,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Road|Freight|FC,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Road|Freight|ICE,EJ/yr,
+GCAM 7.0,Final Energy|Transportation|Road|Passenger,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Road|Passenger|2W&3W,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Road|Passenger|Bus,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Transportation|Road|Passenger|4W,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Desalination,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Desalination|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Desalination|Gases,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Desalination|Liquids,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Industry,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Industry|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Irrigation,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Irrigation|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Municipal,EJ/yr,fe_sector_clean
+GCAM 7.0,Final Energy|Water|Municipal|Electricity,EJ/yr,fe_sector_clean
+GCAM 7.0,Fiscal Gap,billion US$2010/yr,
+GCAM 7.0,Fiscal Resilience,billion US$2010/yr,
+GCAM 7.0,Food Demand,kcal/cap/day,
+GCAM 7.0,Food Demand|Crops,kcal/cap/day,
+GCAM 7.0,Food Demand|Livestock,kcal/cap/day,
+GCAM 7.0,Food Energy Supply,EJ/yr,
+GCAM 7.0,Food Energy Supply|Livestock,EJ/yr,
+GCAM 7.0,Forcing,W/m2,forcing_clean
+GCAM 7.0,Forcing|Kyoto Gases,W/m2,
+GCAM 7.0,Forestry Demand|Roundwood,million m3/yr,
+GCAM 7.0,Forestry Demand|Roundwood|Industrial Roundwood,million m3/yr,
+GCAM 7.0,Forestry Demand|Roundwood|Wood Fuel,million m3/yr,
+GCAM 7.0,Forestry Production|Roundwood,million m3/yr,
+GCAM 7.0,Forestry Production|Roundwood|Industrial Roundwood,million m3/yr,
+GCAM 7.0,Forestry Production|Roundwood|Wood Fuel,million m3/yr,
+GCAM 7.0,GDP|MER,billion US$2010/yr,GDP_MER_clean
+GCAM 7.0,GDP|PPP,billion US$2017/yr,GDP_PPP_clean
+GCAM 7.0,Indirect Risk|GDP Growth,%,
+GCAM 7.0,Indirect Risk|Public Debt,billion US$2010/yr,
+GCAM 7.0,Investment,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Freight|Aviation,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Freight|Railways,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Freight|Road|HDT|EV,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Freight|Road|HDT|FCV,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Freight|Road|HDT|ICE,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Passenger|Aviation,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Passenger|Railways,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Passenger|Road|LDV|EV,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Passenger|Road|LDV|FCV,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Demand|Transportation|Passenger|Road|LDV|ICE,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Efficiency,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|CO2 Transport and Storage,billion US$2010/yr,CCS_invest_clean
+GCAM 7.0,Investment|Energy Supply|Electricity,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Biomass,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Biomass|w/ CCS,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Biomass|w/o CCS,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Coal,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Coal|w/ CCS,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Coal|w/o CCS,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Electricity Storage,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Electricity|Fossil,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Electricity|Gas,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Gas|w/ CCS,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Gas|w/o CCS,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Geothermal,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Hydro,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Non-Biomass Renewables,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Non-fossil,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Electricity|Nuclear,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Ocean,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Electricity|Oil,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Oil|w/ CCS,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Oil|w/o CCS,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Other,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Electricity|Solar,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Transmission and Distribution,billion US$2010/yr,transmission_invest_clean
+GCAM 7.0,Investment|Energy Supply|Electricity|Wind,billion US$2010/yr,elec_investment_clean
+GCAM 7.0,Investment|Energy Supply|Extraction|Bioenergy,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Extraction|Coal,billion US$2010/yr,resource_investment_clean
+GCAM 7.0,Investment|Energy Supply|Extraction|Fossil,billion US$2010/yr,resource_investment_clean
+GCAM 7.0,Investment|Energy Supply|Extraction|Gas,billion US$2010/yr,resource_investment_clean
+GCAM 7.0,Investment|Energy Supply|Extraction|Oil,billion US$2010/yr,resource_investment_clean
+GCAM 7.0,Investment|Energy Supply|Extraction|Uranium,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Heat,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Hydrogen,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Hydrogen|Biomass,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Hydrogen|Electricity,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Hydrogen|Fossil,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Hydrogen|Other,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Hydrogen|Renewable,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Liquids,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Liquids|Biomass,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Liquids|Coal and Gas,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Liquids|Oil,billion US$2010/yr,
+GCAM 7.0,Investment|Energy Supply|Other,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Industry|Green,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Industry|Non-Green,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Residential and Commercial|Building Retrofits,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Residential and Commercial|High-Efficiency Buildings,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Residential and Commercial|Low-Efficiency Buildings,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Residential and Commercial|Medium-Efficiency Buildings,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Transportation,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Transportation|Aviation,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Transportation|Maritime,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Transportation|Rail,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Transportation|Road,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Water|Cooling,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Water|Irrigation,billion US$2010/yr,
+GCAM 7.0,Investment|Infrastructure|Water|Other,billion US$2010/yr,
+GCAM 7.0,Investment|Medical System,billion US$2010/yr,
+GCAM 7.0,Investment|RnD|Energy Supply,billion US$2010/yr,
+GCAM 7.0,Land Cover,million ha,land_clean
+GCAM 7.0,Land Cover|Built-up Area,million ha,land_clean
+GCAM 7.0,Land Cover|Cropland,million ha,land_clean
+GCAM 7.0,Land Cover|Cropland|Cereals,million ha,
+GCAM 7.0,Land Cover|Cropland|Energy Crops,million ha,land_clean
+GCAM 7.0,Land Cover|Cropland|Irrigated,million ha,
+GCAM 7.0,Land Cover|Forest,million ha,land_clean
+GCAM 7.0,Land Cover|Forest|Afforestation and Reforestation,million ha,
+GCAM 7.0,Land Cover|Forest|Managed,million ha,land_clean
+GCAM 7.0,Land Cover|Forest|Natural Forest,million ha,land_clean
+GCAM 7.0,Land Cover|Other Arable Land,million ha,
+GCAM 7.0,Land Cover|Other Land,million ha,land_clean
+GCAM 7.0,Land Cover|Pasture,million ha,land_clean
+GCAM 7.0,Material Consumption|Domestic,Mt/yr,
+GCAM 7.0,Material recycling|Cement,Mt/yr,
+GCAM 7.0,Material recycling|Chemicals,Mt/yr,
+GCAM 7.0,Material recycling|Chemicals|Ammonia,Mt/yr,
+GCAM 7.0,Material recycling|Chemicals|High value chemicals,Mt/yr,
+GCAM 7.0,Material recycling|Chemicals|Methanol,Mt/yr,
+GCAM 7.0,Policy Cost|Additional Total Energy System Cost,billion US$2010/yr,
+GCAM 7.0,Policy Cost|Area under MAC Curve,billion US$2010/yr,
+GCAM 7.0,Policy Cost|Consumption Loss,billion US$2010/yr,
+GCAM 7.0,Policy Cost|Default for CAV,billion US$2010/yr,
+GCAM 7.0,Policy Cost|Equivalent Variation,billion US$2010/yr,
+GCAM 7.0,Policy Cost|GDP Loss,billion US$2010/yr,
+GCAM 7.0,Policy Cost|GDP Loss|w/o transfers,billion US$2010/yr,
+GCAM 7.0,Policy Cost|Other,billion US$2010/yr,
+GCAM 7.0,Policy Cost|Welfare Change,billion US$2010/yr,
+GCAM 7.0,Population,million,population_clean
+GCAM 7.0,Population|Rural,million,
+GCAM 7.0,Population|Urban,million,
+GCAM 7.0,Price|Agriculture|Corn|Index,Index (2005 = 1),ag_prices_clean
+GCAM 7.0,Price|Agriculture|Non-Energy Crops and Livestock|Index,Index (2005 = 1),
+GCAM 7.0,Price|Agriculture|Non-Energy Crops|Index,Index (2005 = 1),
+GCAM 7.0,Price|Agriculture|Soybean|Index,Index (2005 = 1),ag_prices_clean
+GCAM 7.0,Price|Agriculture|Wheat|Index,Index (2005 = 1),ag_prices_clean
+GCAM 7.0,Price|Carbon,US$2010/t,co2_price_clean
+GCAM 7.0,Price|Carbon|Demand|Industry,US$2010/t CO2,co2_price_clean
+GCAM 7.0,Price|Carbon|Demand|Residential and Commercial,US$2010/t CO2,co2_price_clean
+GCAM 7.0,Price|Carbon|Demand|Transportation,US$2010/t CO2,co2_price_clean
+GCAM 7.0,Price|Carbon|Supply,US$2010/t CO2,co2_price_clean
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Electricity,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Electricity|Index,Index (2020 = 1),
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Gases|Natural Gas,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Gases|Natural Gas|Index,Index (2020 = 1),
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Liquids|Biomass,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Liquids|Biomass|Index,Index (2020 = 1),
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Liquids|Oil,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Liquids|Oil|Index,Index (2020 = 1),
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Solids|Biomass,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Buildings|Residential|Solids|Coal,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Electricity,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Gases,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Gases|Bioenergy,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Gases|Fossil,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Hydrogen,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Liquids,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Liquids|Bioenergy,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Liquids|Fossil synfuel,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Solids|Biomass,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Industry|Solids|Coal,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Transportation|Electricity,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Transportation|Gases,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Transportation|Gases|Bioenergy,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Transportation|Gases|Fossil,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Transportation|Hydrogen,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Transportation|Liquids,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Transportation|Liquids|Bioenergy,US$2010/GJ,
+GCAM 7.0,Price|Final Energy|Transportation|Liquids|Fossil synfuel,US$2010/GJ,
+GCAM 7.0,Price|Industry|Cement,US$2010/Mt,
+GCAM 7.0,Price|Primary Energy|Biomass,US$2010/GJ,
+GCAM 7.0,Price|Primary Energy|Biomass|Index,Index (2020 = 1),
+GCAM 7.0,Price|Primary Energy|Coal,US$2010/GJ,
+GCAM 7.0,Price|Primary Energy|Coal|Index,Index (2020 = 1),
+GCAM 7.0,Price|Primary Energy|Gas,US$2010/GJ,
+GCAM 7.0,Price|Primary Energy|Gas|Index,Index (2020 = 1),
+GCAM 7.0,Price|Primary Energy|Oil,US$2010/GJ,
+GCAM 7.0,Price|Primary Energy|Oil|Index,Index (2020 = 1),
+GCAM 7.0,Price|Secondary Energy|Electricity,US$2010/GJ,
+GCAM 7.0,Price|Secondary Energy|Electricity|Index,Index (2020 = 1),
+GCAM 7.0,Price|Secondary Energy|Gases|Natural Gas,US$2010/GJ,
+GCAM 7.0,Price|Secondary Energy|Gases|Natural Gas|Index,Index (2020 = 1),
+GCAM 7.0,Price|Secondary Energy|Hydrogen,US$2010/GJ,
+GCAM 7.0,Price|Secondary Energy|Liquids,US$2010/GJ,
+GCAM 7.0,Price|Secondary Energy|Liquids|Biomass,US$2010/GJ,
+GCAM 7.0,Price|Secondary Energy|Liquids|Biomass|Index,Index (2020 = 1),
+GCAM 7.0,Price|Secondary Energy|Liquids|Oil,US$2010/GJ,
+GCAM 7.0,Price|Secondary Energy|Liquids|Oil|Index,Index (2020 = 1),
+GCAM 7.0,Price|Secondary Energy|Solids|Coal,US$2010/GJ,
+GCAM 7.0,Price|Secondary Energy|Solids|Coal|Index,Index (2020 = 1),
+GCAM 7.0,Primary Energy,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Biomass,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Biomass|1st Generation,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Biomass|Electricity,EJ/yr,
+GCAM 7.0,Primary Energy|Biomass|Electricity|w/ CCS,EJ/yr,
+GCAM 7.0,Primary Energy|Biomass|Electricity|w/o CCS,EJ/yr,
+GCAM 7.0,Primary Energy|Biomass|Energy Crops,EJ/yr,
+GCAM 7.0,Primary Energy|Biomass|Modern,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Biomass|Residues,EJ/yr,
+GCAM 7.0,Primary Energy|Biomass|Traditional,EJ/yr,
+GCAM 7.0,Primary Energy|Coal,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Coal|Electricity,EJ/yr,
+GCAM 7.0,Primary Energy|Coal|Electricity|w/ CCS,EJ/yr,
+GCAM 7.0,Primary Energy|Coal|Electricity|w/o CCS,EJ/yr,
+GCAM 7.0,Primary Energy|Coal|w/ CCS,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Coal|w/o CCS,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Fossil,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Fossil|w/ CCS,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Fossil|w/o CCS,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Gas,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Gas|Electricity,EJ/yr,
+GCAM 7.0,Primary Energy|Gas|Electricity|w/ CCS,EJ/yr,
+GCAM 7.0,Primary Energy|Gas|Electricity|w/o CCS,EJ/yr,
+GCAM 7.0,Primary Energy|Gas|w/ CCS,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Gas|w/o CCS,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Non-Biomass Renewables,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Non-Biomass Renewables|Geothermal,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Non-Biomass Renewables|Hydro,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Non-Biomass Renewables|Ocean,EJ/yr,
+GCAM 7.0,Primary Energy|Non-Biomass Renewables|Solar,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Non-Biomass Renewables|Wind,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Nuclear,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Oil,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Oil|Electricity,EJ/yr,
+GCAM 7.0,Primary Energy|Oil|Electricity|w/ CCS,EJ/yr,
+GCAM 7.0,Primary Energy|Oil|Electricity|w/o CCS,EJ/yr,
+GCAM 7.0,Primary Energy|Oil|w/ CCS,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Oil|w/o CCS,EJ/yr,primary_energy_clean
+GCAM 7.0,Primary Energy|Other,EJ/yr,
+GCAM 7.0,Primary Energy|Secondary Energy Trade,EJ/yr,primary_energy_clean
+GCAM 7.0,Production|Cement,Mt/yr,industry_production_clean
+GCAM 7.0,Production|Chemicals,Mt/yr,
+GCAM 7.0,Production|Chemicals|Other,Mt/yr,
+GCAM 7.0,Production|Non-ferrous metals,Mt/yr,industry_production_clean
+GCAM 7.0,Production|Plastics,Mt/yr,
+GCAM 7.0,Production|Pulp and Paper,Mt/yr,
+GCAM 7.0,Production|Steel,Mt/yr,industry_production_clean
+GCAM 7.0,Productivity|Industry|Cement,Mt/EJ,
+GCAM 7.0,Productivity|Industry|Steel,Mt/EJ,
+GCAM 7.0,Productivity|Residential and Commercial|Cooling,%,
+GCAM 7.0,Productivity|Residential and Commercial|Heating,%,
+GCAM 7.0,Productivity|Transportation|Freight,billion tkm/EJ,
+GCAM 7.0,Productivity|Transportation|Passenger,billion pkm/EJ,
+GCAM 7.0,Revenue|Government|Tax|Carbon,billion US$2010/yr,gov_revenue_clean
+GCAM 7.0,Revenue|Government|Tax|Carbon|Demand|Buildings,billion US$2010/yr,gov_revenue_clean
+GCAM 7.0,Revenue|Government|Tax|Carbon|Demand|Industry,billion US$2010/yr,gov_revenue_clean
+GCAM 7.0,Revenue|Government|Tax|Carbon|Demand|Transport,billion US$2010/yr,gov_revenue_clean
+GCAM 7.0,Revenue|Government|Tax|Carbon|Supply,billion US$2010/yr,gov_revenue_clean
+GCAM 7.0,Revenue|Industry|Cement,US$2010/yr,
+GCAM 7.0,Revenue|Industry|Steel,US$2010/yr,
+GCAM 7.0,Secondary Energy,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Biomass,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Biomass|w/ CCS,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Biomass|w/o CCS,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Coal,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Coal|w/ CCS,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Coal|w/o CCS,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Fossil,EJ/yr,
+GCAM 7.0,Secondary Energy|Electricity|Fossil|w/ CCS,EJ/yr,
+GCAM 7.0,Secondary Energy|Electricity|Fossil|w/o CCS,EJ/yr,
+GCAM 7.0,Secondary Energy|Electricity|Gas,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Gas|w/ CCS,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Gas|w/o CCS,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Geothermal,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Hydro,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Non-Biomass Renewables,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Nuclear,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Oil,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Oil|w/o CCS,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Other,EJ/yr,
+GCAM 7.0,Secondary Energy|Electricity|Solar,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Solar|CSP,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Solar|PV,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Storage Losses,EJ/yr,
+GCAM 7.0,Secondary Energy|Electricity|Transmission Losses,EJ/yr,
+GCAM 7.0,Secondary Energy|Electricity|Wind,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Wind|Offshore,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Electricity|Wind|Onshore,EJ/yr,elec_gen_tech_clean
+GCAM 7.0,Secondary Energy|Gases,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Gases|Biomass,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Gases|Coal,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Gases|Natural Gas,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Gases|Other,EJ/yr,
+GCAM 7.0,Secondary Energy|Heat,EJ/yr,
+GCAM 7.0,Secondary Energy|Heat|Biomass,EJ/yr,
+GCAM 7.0,Secondary Energy|Heat|Coal,EJ/yr,
+GCAM 7.0,Secondary Energy|Heat|Gas,EJ/yr,
+GCAM 7.0,Secondary Energy|Heat|Geothermal,EJ/yr,
+GCAM 7.0,Secondary Energy|Heat|Oil,EJ/yr,
+GCAM 7.0,Secondary Energy|Heat|Other,EJ/yr,
+GCAM 7.0,Secondary Energy|Hydrogen,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Biomass,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Biomass|w/ CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Biomass|w/o CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Coal,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Coal|w/ CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Coal|w/o CCS,EJ/yr,
+GCAM 7.0,Secondary Energy|Hydrogen|Electricity,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Fossil,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Fossil|w/ CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Fossil|w/o CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Gas,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Gas|w/ CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Hydrogen|Gas|w/o CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Biomass,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Biomass|w/ CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Biomass|w/o CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Coal,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Coal|w/ CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Coal|w/o CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Fossil,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Fossil|w/ CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Fossil|w/o CCS,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Gas,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Liquids|Gas|w/ CCS,EJ/yr,
+GCAM 7.0,Secondary Energy|Liquids|Gas|w/o CCS,EJ/yr,
+GCAM 7.0,Secondary Energy|Liquids|Oil,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Solids,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Solids|Biomass,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Secondary Energy|Solids|Coal,EJ/yr,se_gen_tech_clean
+GCAM 7.0,Specific Energy Consumption|Production|Chemicals|Methanol,MJ/t,
+GCAM 7.0,Specific Energy Consumption|Production|Chemicals|Other,MJ/t,
+GCAM 7.0,Specific Energy Consumption|Production|Non-ferrous metals,MJ/t,
+GCAM 7.0,Temperature|Global Mean,ºC,global_temp_clean
+GCAM 7.0,Trade|Primary Energy|Biomass|Volume,EJ/yr,
+GCAM 7.0,Trade|Primary Energy|Coal|Volume,EJ/yr,energy_trade_clean
+GCAM 7.0,Trade|Primary Energy|Gas|Volume,EJ/yr,energy_trade_clean
+GCAM 7.0,Trade|Primary Energy|Oil|Volume,EJ/yr,energy_trade_clean
+GCAM 7.0,Transport|Stock|Maritime,million vehicles,
+GCAM 7.0,Transport|Stock|Maritime|Freight,million vehicles,
+GCAM 7.0,Transport|Stock|Rail,million vehicles,
+GCAM 7.0,Transport|Stock|Rail|Freight,million vehicles,
+GCAM 7.0,Transport|Stock|Rail|Passenger,million vehicles,
+GCAM 7.0,Transport|Stock|Road|Freight,million vehicles,
+GCAM 7.0,Transport|Stock|Road|Passenger,million vehicles,
+GCAM 7.0,Transport|Stock|Road|Passenger|2W&3W,million vehicles,
+GCAM 7.0,Transport|Stock|Road|Passenger|Bus,million vehicles,
+GCAM 7.0,Value Added|Industry,billion US$2010/yr,
+GCAM 7.0,Value Added|Industry|Energy,billion US$2010/yr,
+GCAM 7.0,Value Added|Industry|Share of energy costs,%,
+GCAM 7.0,Water Consumption,km3/yr,
+GCAM 7.0,Water Consumption|Irrigation,km3/yr,
+GCAM 7.0,Water Withdrawal|Irrigation,km3/yr,
+GCAM 7.0,Yield|Cereal,t DM/ha/yr,
+GCAM 7.0,Yield|Oilcrops,t DM/ha/yr,
+GCAM 7.0,Yield|Sugarcrops,t DM/ha/yr,
diff --git a/man/convert.Rd b/man/convert.Rd
index b771d58..3e234d6 100644
--- a/man/convert.Rd
+++ b/man/convert.Rd
@@ -5,7 +5,7 @@
\alias{convert}
\title{convert}
\format{
-An object of class \code{list} of length 12.
+An object of class \code{list} of length 13.
}
\usage{
convert
diff --git a/man/create_project.Rd b/man/create_project.Rd
index 3e7c351..4085d20 100644
--- a/man/create_project.Rd
+++ b/man/create_project.Rd
@@ -10,7 +10,9 @@ create_project(
prj_name,
scenarios = NULL,
desired_regions = "All",
- desired_variables = "All"
+ desired_variables = "All",
+ queries_general_file = gcamreport::queries_general,
+ queries_nonCO2_file = gcamreport::queries_nonCO2
)
}
\arguments{
@@ -31,9 +33,16 @@ Otherwise, specify a vector with all the desired options. To know all possible o
In case the project dataset needs to be created, it will be produced with only the specified variables. ATTENTION:
the global variables such as "Emissions" will be computed considering only the selected variables, for instance "Emissions|CO2",
and will no account for other variables, such as "Emissions|CH4" or "Emissions|NH3".}
+
+\item{queries_general_file}{full path to a general xml query file (including file name and extension). By default it points to the
+gcamreport general query file, compatible with the latest GCAM version and able to report all standardized variables.}
+
+\item{queries_nonCO2_file}{full path to an xml query file (including file name and extension) designed to load long nonCO2 queries:
+"nonCO2 emissions by sector (excluding resource production)" and "nonCO2 emissions by region". By default it points to the
+gcamreport nonCO2 query file, compatible with the latest GCAM version and necessary to report some of the standardized variables.}
}
\value{
-loaded project into global environment.
+loaded project into global environment and local saved project.
}
\description{
Create specified project and load it into the global environment
diff --git a/man/data_query.Rd b/man/data_query.Rd
index 98fe657..c3d1875 100644
--- a/man/data_query.Rd
+++ b/man/data_query.Rd
@@ -10,7 +10,8 @@ data_query(
db_name,
prj_name,
scenarios,
- desired_regions = "All"
+ desired_regions = "All",
+ queries_nonCO2_file = gcamreport::queries_nonCO2
)
}
\arguments{
@@ -27,6 +28,10 @@ data_query(
\item{desired_regions}{desired regions to consider. By default, 'All'. Otherwise, specify a vector with all the considered regions.
To know all possible regions, run `available_regions()`. ATTENTION: the considered regions will make up "World".
In case the project dataset needs to be created, it will be produced with only the specified regions.}
+
+\item{queries_nonCO2_file}{full path to an xml query file (including file name and extension) designed to load long nonCO2 queries:
+"nonCO2 emissions by sector (excluding resource production)" and "nonCO2 emissions by region". By default it points to the
+gcamreport nonCO2 query file, compatible with the latest GCAM version and necessary to report some of the standardized variables.}
}
\value{
dataframe with the data from the query.
diff --git a/man/gcamreport.Rd b/man/gcamreport.Rd
index 27e30f0..0c5f663 100644
--- a/man/gcamreport.Rd
+++ b/man/gcamreport.Rd
@@ -6,6 +6,6 @@
\title{gcamreport}
\description{
\itemize{
-\item Github: https://github.com/JGCRI/gcamreport
-\item Webpage: https://jgcri.github.io/gcamreport/}
+\item Github: https://github.com/bc3LC/gcamreport
+\item Webpage: https://bc3lc.github.io/gcamreport/}
}
diff --git a/man/generate_report.Rd b/man/generate_report.Rd
index 2f6cca2..ed67ae8 100644
--- a/man/generate_report.Rd
+++ b/man/generate_report.Rd
@@ -15,7 +15,9 @@ generate_report(
desired_continents = "All",
save_output = TRUE,
output_file = NULL,
- launch_ui = TRUE
+ launch_ui = TRUE,
+ queries_general_file = gcamreport::queries_general,
+ queries_nonCO2_file = gcamreport::queries_nonCO2
)
}
\arguments{
@@ -54,9 +56,17 @@ database or the project file, and using a default name containing the project na
In case of specifying the `output_file`, introduce a whole path (e.g. /path/to/output/fileName) without extension tag, it will be automatically added.}
\item{launch_ui}{if TRUE, launch User Interface, Do not launch it otherwise.}
+
+\item{queries_general_file}{full path to a general xml query file (including file name and extension). By default it points to the
+gcamreport general query file, compatible with the latest GCAM version and able to report all standardized variables.}
+
+\item{queries_nonCO2_file}{full path to an xml query file (including file name and extension) designed to load long nonCO2 queries:
+"nonCO2 emissions by sector (excluding resource production)" and "nonCO2 emissions by region". By default it points to the
+gcamreport nonCO2 query file, compatible with the latest GCAM version and necessary to report some of the standardized variables.}
}
\value{
-RData, CSV, and XLSX datafile with the desired variables & launches user interface.
+RData, CSV, and XLSX saved datafiles with the desired standardized variables, launches user interface, and save the rgcam
+project file (if created).
}
\description{
Main function. Creates/loads a GCAM project, standardizes the data and saves it
diff --git a/man/queries_general.Rd b/man/queries_general.Rd
new file mode 100644
index 0000000..f73ea74
--- /dev/null
+++ b/man/queries_general.Rd
@@ -0,0 +1,26 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/data.R
+\docType{data}
+\name{queries_general}
+\alias{queries_general}
+\title{queries_general}
+\format{
+vector
+}
+\source{
+local
+}
+\usage{
+queries_general
+}
+\description{
+gcamreport queries compatible with GCAM 7.0 version.
+Contain all queries except for nonCO2 queries
+}
+\examples{
+\dontrun{
+library(gcamreport)
+gcamreport::queries_general
+}
+}
+\keyword{datasets}
diff --git a/man/queries_nonCO2.Rd b/man/queries_nonCO2.Rd
new file mode 100644
index 0000000..79a98cc
--- /dev/null
+++ b/man/queries_nonCO2.Rd
@@ -0,0 +1,25 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/data.R
+\docType{data}
+\name{queries_nonCO2}
+\alias{queries_nonCO2}
+\title{queries_nonCO2}
+\format{
+vector
+}
+\source{
+local
+}
+\usage{
+queries_nonCO2
+}
+\description{
+gcamreport nonCO2 query compatible with GCAM 7.0 version.
+}
+\examples{
+\dontrun{
+library(gcamreport)
+gcamreport::queries_nonCO2
+}
+}
+\keyword{datasets}
diff --git a/man/transform_to_xml.Rd b/man/transform_to_xml.Rd
new file mode 100644
index 0000000..3aa22dc
--- /dev/null
+++ b/man/transform_to_xml.Rd
@@ -0,0 +1,19 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/functions.R
+\name{transform_to_xml}
+\alias{transform_to_xml}
+\title{transform_to_xml}
+\usage{
+transform_to_xml(parsed_queries_list)
+}
+\arguments{
+\item{parsed_queries_list}{parsed list of queries}
+}
+\value{
+xml document containing the given queries list
+}
+\description{
+Return xml document from a given queries list
+}
+\keyword{internal}
+\keyword{utils}
diff --git a/paper/paper.bib b/paper/paper.bib
new file mode 100644
index 0000000..686891c
--- /dev/null
+++ b/paper/paper.bib
@@ -0,0 +1,325 @@
+@software{waite_gcamextractor_2023,
+ author = {Taryn Waite and Leeya Pressburger and Mengqi Zhao and Zarrar Khan},
+ title = {{JGCRI/gcamextractor: v1.1.0}},
+ year = 2023,
+ version = {v1.1.0},
+ publisher = {Zenodo},
+ doi = {10.5281/zenodo.8132290},
+ url = {https://doi.org/10.5281/zenodo.8132290},
+}
+
+@misc{krey_iamc_2023,
+ author = {Krey, Volker},
+ title = {{IAMC} {Webinar}: {Standardization} of scenario data collection via the {IAMC} data template: past developments and future challenges},
+ howpublished = {Online},
+ month = jun,
+ year = {2023},
+ url = {https://www.iamconsortium.org/event/iamc-webinar-standardization-of-scenario-data-collection-via-the-iamc-data-template-past-developments-and-future-challenges-volker-krey/},
+}
+
+@article{richters_ngfs_2022,
+ title = {{NGFS} {Climate} {Scenarios} {Data} {Set} {Version} 3.0},
+ author = {Richters, O and Bertram, C and Kriegler, E and Al Khourdajie, A and Cui, R and Edmonds, J and Hackstock, P and Holland, D and Hurst, I and Kikstra, J},
+ year = {2022},
+ note = {Publisher: Zenodo},
+ doi = {10.5281/zenodo.7085661},
+}
+
+@article{masson-delmotte_climate_2021,
+ title = {Climate change 2021: the physical science basis},
+ volume = {2},
+ journal = {Contribution of working group I to the sixth assessment report of the intergovernmental panel on climate change},
+ author = {Masson-Delmotte, Valérie and Zhai, Panmao and Pirani, Anna and Connors, Sarah L and Péan, Clotilde and Berger, Sophie and Caud, Nada and Chen, Y and Goldfarb, L and Gomis, MI},
+ year = {2021},
+ note = {Publisher: Cambridge University Press Cambridge, UK},
+ doi = {10.1017/9781009157896},
+}
+
+@article{masson-delmotte_ipcc_2018,
+ title = {An {IPCC} {Special} {Report} on the impacts of global warming of 1.5°{C} above pre-industrial levels and related global greenhouse gas emission pathways, in the context of strengthening the global response to the threat of climate change, sustainable development, and efforts to eradicate poverty},
+ language = {en},
+ author = {Masson-Delmotte, Valérie and Pörtner, Hans-Otto and Skea, Jim and Zhai, Panmao and Roberts, Debra and Shukla, Priyadarshi R and Pirani, Anna and Pidcock, Roz and Chen, Yang and Lonnoy, Elisabeth and Moufouma-Okia, Wilfran and Péan, Clotilde and Connors, Sarah and Matthews, J B Robin and Zhou, Xiao and Gomis, Melissa I and Maycock, Tom and Tignor, Melinda and Waterfield, Tim},
+ year = {2018},
+ doi = {10.1017/9781009157940},
+}
+
+@article{nikas_perspective_2021,
+ title = {Perspective of comprehensive and comprehensible multi-model energy and climate science in {Europe}},
+ volume = {215},
+ issn = {03605442},
+ url = {https://linkinghub.elsevier.com/retrieve/pii/S036054422032260X},
+ doi = {10.1016/j.energy.2020.119153},
+ language = {en},
+ urldate = {2023-06-05},
+ journal = {Energy},
+ author = {Nikas, A. and Gambhir, A. and Trutnevyte, E. and Koasidis, K. and Lund, H. and Thellufsen, J.Z. and Mayer, D. and Zachmann, G. and Miguel, L.J. and Ferreras-Alonso, N. and Sognnaes, I. and Peters, G.P. and Colombo, E. and Howells, M. and Hawkes, A. and Van Den Broek, M. and Van De Ven, D.J. and Gonzalez-Eguino, M. and Flamos, A. and Doukas, H.},
+ month = jan,
+ year = {2021},
+ pages = {119153},
+}
+
+@article{van_beek_anticipating_2020,
+ title = {Anticipating futures through models: the rise of {Integrated} {Assessment} {Modelling} in the climate science-policy interface since 1970},
+ volume = {65},
+ issn = {09593780},
+ shorttitle = {Anticipating futures through models},
+ url = {https://linkinghub.elsevier.com/retrieve/pii/S0959378020307743},
+ doi = {10.1016/j.gloenvcha.2020.102191},
+ language = {en},
+ urldate = {2023-06-05},
+ journal = {Global Environmental Change},
+ author = {Van Beek, Lisette and Hajer, Maarten and Pelzer, Peter and Van Vuuren, Detlef and Cassen, Christophe},
+ month = nov,
+ year = {2020},
+ pages = {102191},
+}
+
+@article{guivarch_using_2022,
+ title = {Using large ensembles of climate change mitigation scenarios for robust insights},
+ volume = {12},
+ issn = {1758-678X, 1758-6798},
+ url = {https://www.nature.com/articles/s41558-022-01349-x},
+ doi = {10.1038/s41558-022-01349-x},
+ language = {en},
+ number = {5},
+ urldate = {2023-06-05},
+ journal = {Nature Climate Change},
+ author = {Guivarch, Céline and Le Gallic, Thomas and Bauer, Nico and Fragkos, Panagiotis and Huppmann, Daniel and Jaxa-Rozen, Marc and Keppo, Ilkka and Kriegler, Elmar and Krisztin, Tamás and Marangoni, Giacomo and Pye, Steve and Riahi, Keywan and Schaeffer, Roberto and Tavoni, Massimo and Trutnevyte, Evelina and Van Vuuren, Detlef and Wagner, Fabian},
+ month = may,
+ year = {2022},
+ pages = {428--435},
+}
+
+@article{moss2010,
+ title = {The next generation of scenarios for climate change research and assessment},
+ volume = {463},
+ issn = {0028-0836},
+ pages = {747--756},
+ number = {7282},
+ journaltitle = {Nature},
+ shortjournal = {Nature},
+ author = {Moss, Richard H and Edmonds, Jae A and Hibbard, Kathy A and Manning, Martin R and Rose, Steven K and Van Vuuren, Detlef P and Carter, Timothy R and Emori, Seita and Kainuma, Mikiko and Kram, Tom},
+ date = {2010},
+ note = {Publisher: Nature Publishing Group {UK} London},
+ doi = {10.1038/nature08823},
+}
+
+
+@article{oneill2014,
+ title = {A new scenario framework for climate change research: the concept of shared socioeconomic pathways},
+ volume = {122},
+ issn = {0165-0009},
+ pages = {387--400},
+ journaltitle = {Climatic change},
+ shortjournal = {Climatic change},
+ author = {O’Neill, Brian C and Kriegler, Elmar and Riahi, Keywan and Ebi, Kristie L and Hallegatte, Stephane and Carter, Timothy R and Mathur, Ritu and Van Vuuren, Detlef P},
+ date = {2014},
+ note = {Publisher: Springer},
+ doi = {10.1007/s10584-013-0905-2},
+}
+
+
+@book{ar5,
+ title = {{Climate Change 2014: Impacts, Adaptation, and Vulnerability. Part A: Global and Sectoral Aspects. Contribution of Working Group II to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change}},
+ editor = {Field, C.B. and Barros, V.R. and Dokken, D.J. and Mach, K.J. and Mastrandrea, M.D. and Bilir, T.E. and Chatterjee, M. and Ebi, K.L. and Estrada, Y.O. and Genova, R.C. and Girma, B. and Kissel, E.S. and Levy, A.N. and MacCracken, S. and Mastrandrea, P.R. and White, L.L.},
+ year = {2014},
+ publisher = {Cambridge University Press},
+ address = {Cambridge, United Kingdom and New York, NY, USA},
+ pages = {1132},
+}
+
+@software{huppmann2023,
+ author = {Huppmann, Daniel and
+ Wienpahl, Laura and
+ Hackstock, Philip and
+ Castella, Lucie},
+ title = {nomenclature},
+ month = may,
+ year = 2023,
+ publisher = {Zenodo},
+ version = {v0.9.1},
+ doi = {10.5281/zenodo.7956229},
+ url = {https://doi.org/10.5281/zenodo.7956229}
+}
+
+@article{lin2020,
+ title = {The {TRUST} Principles for digital repositories},
+ volume = {7},
+ issn = {2052-4463},
+ pages = {144},
+ number = {1},
+ journaltitle = {Scientific Data},
+ shortjournal = {Scientific Data},
+ author = {Lin, Dawei and Crabtree, Jonathan and Dillo, Ingrid and Downs, Robert R and Edmunds, Rorie and Giaretta, David and De Giusti, Marisa and L’Hours, Hervé and Hugo, Wim and Jenkyns, Reyna},
+ date = {2020},
+ note = {Publisher: Nature Publishing Group {UK} London},
+ doi = {10.1038/s41597-020-0486-7},
+}
+
+@article{wilkinson2016,
+ title = {The {FAIR} Guiding Principles for scientific data management and stewardship},
+ volume = {3},
+ issn = {2052-4463},
+ url = {https://www.nature.com/articles/sdata201618},
+ doi = {10.1038/sdata.2016.18},
+ abstract = {In the realm of its Open Science strategy, the European Commission ({EC}) has announced its intentions to promote open access to research data resulting from publically funded research under Horizon 2020 to increase the circulation and exploitation of knowledge. Openness should become the default case respecting constraints to privacy, national security and intellectual property rights. For making open science happen, two major pillars need to be addressed. Data needs to be {FAIR} (Findable, Accessible, Interoperable, Reusable) to overcome the fragmentation and inefficiencies and thus to increase data reuse effectively. Commissioner Moedas made clear that "Europe's final transition must be one from fragmented data sets to an integrated European Open Science Cloud ({EOSC})". By 2020, all European researchers need to be able depositing, accessing and analyzing European scientific data through the {EOSC}. {EOSC} and {FAIR} research data are closely related and the {EC} is working out phases for implementing {EOSC} and action plans to make data {FAIR}.},
+ pages = {160018},
+ number = {1},
+ journaltitle = {Scientific data},
+ shortjournal = {Scientific data},
+ author = {Wilkinson, Mark D and Dumontier, Michel and Aalbersberg, {IJsbrand} Jan and Appleton, Gabrielle and Axton, Myles and Baak, Arie and Blomberg, Niklas and Boiten, Jan-Willem and da Silva Santos, Luiz Bonino and Bourne, Philip E},
+ date = {2016-03-15},
+ langid = {english},
+ note = {Publisher: Nature Publishing Group},
+}
+
+@article{shukla2022,
+ title = {Climate Change 2022 Mitigation of Climate Change},
+ doi = {10.1017/9781009157926},
+ journaltitle = {Cambridge University Press, Cambridge, {UK} and New York, {NY}, {USA}},
+ author = {{Shukla, J.} and {Skea, R.} and {Slade, A.} and {Al Khourdajie, R} and {R. van Diemen} and {D. McCollum} and {M. Pathak} and {S. Some} and {P. Vyas} and {R. Fradera} and {M. Belkacemi} and {A. Hasija} and {G. Lisboa} and {S. Luz} and {J. Malley} and {et al.}},
+ date = {2022},
+ langid = {english},
+ keywords = {ipcc, wgiii},
+}
+
+@article{skea2021,
+ title = {Intergovernmental Panel on Climate Change: Transparency and integrated assessment modeling},
+ volume = {12},
+ issn = {1757-7780, 1757-7799},
+ url = {https://onlinelibrary.wiley.com/doi/10.1002/wcc.727},
+ doi = {10.1002/wcc.727},
+ shorttitle = {Intergovernmental Panel on Climate Change},
+ number = {5},
+ journaltitle = {{WIREs} Climate Change},
+ shortjournal = {{WIREs} Climate Change},
+ author = {Skea, Jim and Shukla, Priyadarshi and Al Khourdajie, Alaa and {McCollum}, David},
+ urldate = {2023-05-08},
+ date = {2021-09},
+ langid = {english},
+}
+
+@incollection{krey_annex_2014,
+ author = {Krey, V. and Masera, O. and Blanford, G. and Bruckner, T. and Cooke, R. and Fisher-Vanden, K. and Haberl, H. and Hertwich, E. and Kriegler, E. and Mueller, D. and Paltsev, S. and Price, L. and Schlömer, S. and Ürge-Vorsatz, D. and van Vuuren, D. and Zwickel, T.},
+ title = {Annex II: Metrics & Methodology},
+ booktitle = {{Climate Change 2014: Mitigation of Climate Change. Contribution of Working Group III to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change}},
+ editor = {Edenhofer, O. and Pichs-Madruga, R. and Sokona, Y. and Farahani, E. and Kadner, S. and Seyboth, K. and Adler, A. and Baum, I. and Brunner, S. and Eickemeier, P. and Kriemann, B. and Savolainen, J. and Schlömer, S. and von Stechow, C. and Zwickel, T. and Minx, J.C.},
+ year = {2014},
+ publisher = {Cambridge University Press},
+ address = {Cambridge, United Kingdom and New York, NY, USA},
+}
+
+@article{marangoni2017,
+ title = {Sensitivity of projected long-term {CO}2 emissions across the Shared Socioeconomic Pathways},
+ volume = {7},
+ issn = {1758-678X, 1758-6798},
+ url = {http://www.nature.com/articles/nclimate3199},
+ doi = {10.1038/nclimate3199},
+ pages = {113--117},
+ number = {2},
+ journaltitle = {Nature Climate Change},
+ shortjournal = {Nature Clim Change},
+ author = {Marangoni, G. and Tavoni, M. and Bosetti, V. and Borgonovo, E. and Capros, P. and Fricko, O. and Gernaat, D.E.H.J. and Guivarch, C. and Havlik, P. and Huppmann, D. and Johnson, N. and Karkatsoulis, P. and Keppo, I. and Krey, V. and Ó Broin, E. and Price, J. and Van Vuuren, D. P.},
+ urldate = {2023-05-09},
+ date = {2017-02},
+ langid = {english},
+}
+
+@article{riahi2021,
+ title = {Cost and attainability of meeting stringent climate targets without overshoot},
+ volume = {11},
+ issn = {1758-678X, 1758-6798},
+ url = {https://www.nature.com/articles/s41558-021-01215-2},
+ doi = {10.1038/s41558-021-01215-2},
+ pages = {1063--1069},
+ number = {12},
+ journaltitle = {Nature Climate Change},
+ shortjournal = {Nature Climate Change},
+ author = {Riahi, Keywan and Bertram, Christoph and Huppmann, Daniel and Rogelj, Joeri and Bosetti, Valentina and Cabardos, Anique-Marie and Deppermann, Andre and Drouet, Laurent and Frank, Stefan and Fricko, Oliver},
+ date = {2021-12},
+ langid = {english},
+ note = {Publisher: Nature Publishing Group {UK} London},
+}
+
+
+@article{calvin2019,
+ title = {{GCAM} v5.1: representing the linkages between energy, water, land, climate, and economic systems},
+ volume = {12},
+ issn = {1991-9603},
+ url = {https://gmd.copernicus.org/articles/12/677/2019/},
+ doi = {10.5194/gmd-12-677-2019},
+ shorttitle = {{GCAM} v5.1},
+ abstract = {This paper describes {GCAM} v5.1, an open source model that represents the linkages between energy, water, land, climate, and economic systems. {GCAM} is a market equilibrium model, is global in scope, and operates from 1990 to 2100 in 5-year time steps. It can be used to examine, for example, how changes in population, income, or technology cost might alter crop production, energy demand, or water withdrawals, or how changes in one region’s demand for energy affect energy, water, and land in other regions. This paper describes the model, including its assumptions, inputs, and outputs. We then use 11 scenarios, varying the socioeconomic and climate policy assumptions, to illustrate the results from the model. The resulting scenarios demonstrate a wide range of potential future energy, water, and land uses. We compare the results from {GCAM} v5.1 to historical data and to future scenario simulations from earlier versions of {GCAM} and from other models. Finally, we provide information on how to obtain the model.},
+ pages = {677--698},
+ number = {2},
+ journaltitle = {Geoscientific Model Development},
+ shortjournal = {Geosci. Model Dev.},
+ author = {Calvin, Katherine and Patel, Pralit and Clarke, Leon and Asrar, Ghassem and Bond-Lamberty, Ben and Cui, Ryna Yiyun and Di Vittorio, Alan and Dorheim, Kalyn and Edmonds, Jae and Hartin, Corinne and Hejazi, Mohamad and Horowitz, Russell and Iyer, Gokul and Kyle, Page and Kim, Sonny and Link, Robert and {McJeon}, Haewon and Smith, Steven J. and Snyder, Abigail and Waldhoff, Stephanie and Wise, Marshall},
+ urldate = {2023-05-08},
+ date = {2019-02-15},
+ langid = {english},
+}
+
+
+@article{binsted2022,
+ title = {{GCAM}-{USA} v5. 3\_water\_dispatch: integrated modeling of subnational {US} energy, water, and land systems within a global framework},
+ volume = {15},
+ issn = {1991-959X},
+ pages = {2533--2559},
+ number = {6},
+ journaltitle = {Geoscientific Model Development},
+ shortjournal = {Geoscientific Model Development},
+ author = {Binsted, Matthew and Iyer, Gokul and Patel, Pralit and Graham, Neal T and Ou, Yang and Khan, Zarrar and Kholod, Nazar and Narayan, Kanishka and Hejazi, Mohamad and Kim, Son},
+ date = {2022},
+ note = {Publisher: Copernicus {GmbH}},
+ doi = {10.5194/gmd-15-2533-2022},
+}
+
+@article{sampedro2022,
+ title = {Implications of different income distributions for future residential energy demand in the {US}},
+ volume = {17},
+ issn = {1748-9326},
+ pages = {014031},
+ number = {1},
+ journaltitle = {Environmental Research Letters},
+ shortjournal = {Environmental Research Letters},
+ author = {Sampedro, Jon and Iyer, Gokul and Msangi, Siwa and Waldhoff, Stephanie and Hejazi, Mohamad and Edmonds, James A},
+ date = {2022},
+ note = {Publisher: {IOP} Publishing},
+ doi = {10.1088/1748-9326/ac43df}
+}
+
+
+@article{stodden2018,
+ title = {An empirical analysis of journal policy effectiveness for computational reproducibility},
+ volume = {115},
+ issn = {0027-8424},
+ pages = {2584--2589},
+ number = {11},
+ journaltitle = {Proceedings of the National Academy of Sciences},
+ shortjournal = {Proceedings of the National Academy of Sciences},
+ author = {Stodden, Victoria and Seiler, Jennifer and Ma, Zhaokun},
+ date = {2018},
+ note = {Publisher: National Acad Sciences},
+ doi = {10.1073/pnas.1708290115},
+}
+
+
+@article{boettiger2015,
+ title = {An introduction to Docker for reproducible research, with examples from the R environment},
+ volume = {49},
+ issn = {0163-5980},
+ url = {http://arxiv.org/abs/1410.0846},
+ doi = {10.1145/2723872.2723882},
+ pages = {71--79},
+ number = {1},
+ journaltitle = {{ACM} {SIGOPS} Operating Systems Review},
+ shortjournal = {{SIGOPS} Oper. Syst. Rev.},
+ author = {Boettiger, Carl},
+ urldate = {2023-04-24},
+ date = {2015-01-20},
+ langid = {english},
+ eprinttype = {arxiv},
+ eprint = {1410.0846 [cs]},
+ keywords = {Computer Science - Software Engineering},
+}
diff --git a/paper/paper.md b/paper/paper.md
new file mode 100644
index 0000000..d1b7985
--- /dev/null
+++ b/paper/paper.md
@@ -0,0 +1,115 @@
+---
+title: 'gcamreport: An R tool to process and standardize GCAM outputs'
+tags:
+- R
+- analysis
+- IAMC
+- GCAM
+date: "24 July 2023"
+output:
+ pdf_document: default
+ html_document:
+ df_print: paged
+authors:
+- name: "Clàudia Rodés-Bachs"
+ orcid: "0000-0001-6696-7685"
+ affiliation: 1
+- name: Jon Sampedro
+ orcid: "0000-0002-2277-1530"
+ affiliation: 1
+- name: "Dirk-Jan Van de Ven"
+ orcid: "0000-0001-9120-564X"
+ affiliation: 1
+- name: Ryna Yiyun Cui
+ orcid: "0000-0002-1186-8230"
+ affiliation: 2
+- name: Alicia Zhao
+ orcid: "0000-0002-6054-8671"
+ affiliation: 2
+- name: Matthew Zwerling
+ affiliation: 2
+- name: Zarrar Khan
+ orcid: "0000-0002-8147-8553"
+ affiliation: 3
+bibliography: paper.bib
+affiliations:
+- name: Basque Centre for Climate Change (BC3), Leioa, Spain
+ index: 1
+- name: Center for Global Sustainability, School of Public Policy, University of Maryland,
+ College Park, MD, USA
+ index: 2
+- name: Pacific Northwest National Laboratory's Joint Global Change Research Institute,
+ College Park, MD, USA
+ index: 3
+---
+
+# Summary
+
+There is an urgent need for multi-model studies to characterize uncertainty arising from model heterogeneity. These studies aim to build a more reliable and transparent framework, informing policymakers in the design and implementation of climate policies [@guivarch_using_2022]. In response to this challenge, multiple institutes and organizations have adopted the standardized data template developed by the Integrated Assessment Modeling Consortium (IAMC). This template is maintained by the International Institute for Applied Systems Analysis (IIASA) and aims to standardize and facilitate model intercomparison exercises. For the latest Assessment Report (AR6), the Intergovernmental Panel on Climate Change (IPCC) required all contributors to homogenize their data to enable comparisons and ensure full transparency [@krey_annex_2014]. This practice has set the foundation for a new open management of the outputs in the area of global scenario analysis.
+
+In the case of the Global Change Analysis Model (GCAM) [@calvin2019], a well-regarded model that has been extensively used for different international and national scenario analysis, the harmonization code has never been documented nor standardized, making it difficult to reproduce outputs and hindering the transparency of results. To overcome these limitations, we have developed `gcamreport`, an R package that systematizes the transformations of GCAM outputs, generates figures to facilitate the analysis of the results, and allows user interaction with the produced outputs. Furthermore, the tool can be used embedded in a Docker image, which allows users to use the package in a virtual environment without having to install any specific software or library. Finally, each `gcamreport` release is linked to either a version of GCAM or a study in which GCAM was used, ensuring reproducibility, interoperability, accessibility, and findability, which is in line with the well-known open science principles FAIR and TRUST [@wilkinson2016; @lin2020].
+
+
+{width="75%"}
+
+
+# Statement of need
+
+Integrated assessment models (IAMs) are the dominant tools for global scenario analysis and for exploring system-wide implications of climate policies [@van_beek_anticipating_2020]. They must be transparent and open in order to be an effective instrument for informing decision making. In addition, multi-model studies should be considered to strengthen the consistency and robustness of the policy recommendations [@nikas_perspective_2021]. However, it is not always easy to compare outputs from different models, as it involves a laborious task of bringing together modeling communities with different backgrounds. To overcome these handicaps, the [IAMC](https://www.iamconsortium.org) developed a time-series data template [@huppmann2023] which has been used in prominent multi-IAM studies, such as the presentation of the Shared Socio-economic Pathways (SSPs) [@oneill2014], the design of the Representative Concentration Pathways (RCPs) [@moss2010], and the last two IPCC Assessment Reports (AR5 [@masson-delmotte_climate_2021] and AR6 [@shukla2022]), as well as the IPCC Special Report on Global Warming of 1.5ºC [@masson-delmotte_ipcc_2018] and the recent climate scenarios of the Network for Greening the Financial System (NGFS) [@richters_ngfs_2022]. For these kind of assessments, it is essential that the outputs from the different models meet strict requirements and are reported in a standardized way to facilitate the comparison and multi-analysis [@skea2021].
+
+One of the most extensively applied integrated assessment model is the Global Change Analysis Model (GCAM) [@calvin2019]. GCAM is an open-source multi-sector model developed at the Joint Global Change Research Institute ([JGCRI](https://www.pnnl.gov/projects/jgcri)) designed to explore the linkages between energy, water, land, climate, and economics within a single computational system. It enables users to explore potential what-if type futures by dividing the world in 32 geopolitical regions and running in a 5-year time step. GCAM is in continuous development, with each new version increasing its accuracy by better representing and detailing existing elements, while adding new ones and fixing old ones [@binsted2022; @sampedro2022]. Hence, the code to transform GCAM outputs into suitable outputs for model intercomparison should be adapted to each particular version/study. Otherwise, it becomes difficult to reproduce, automatize, and track changes [@stodden2018].
+
+Here we present `gcamreport`, a powerful R-tool aligned with the principles of open science [@wilkinson2016; @lin2020], to guarantee the transparency of the produced outcomes by transforming GCAM outputs to the IAMC template requirements, making the results directly applicable to multi-IAM studies (including upcoming IPCC reports). Moreover, to overcome the limitations to reproduce the execution environment (e.g., packages or libraries), `gcamreport` is also available within a [Docker](https://www.docker.com/) image, which already contains all the required packages and facilitates the usage, ensuring interoperability and reproducibility [@boettiger2015].
+
+Finally, to support the analysis of the model results, `gcamreport` includes a user-friendly interface that allows to visualize the standardized outputs in tabular format, allowing the user to subset the results by regions, scenarios, models, variables, and years, along with the option to download the desired results. Moreover, the `gcamreport` user interface generates plots of the selected variables within the same category, aggregated by region and/or sub-variables, which can also be downloaded for more in-depth analysis.
+
+# Functionality
+
+## A brief description
+
+The `gcamreport` package is accessible online at the public domain . To run it to generate and save the dataset meeting the IAMC requirements and to launch the user interface, you can follow a detailed [step-by-step tutorial](https://bc3lc.github.io/gcamreport/articles/Step_By_Step_Full_Example.html) or this simplified code once the package has been cloned:
+
+``` r
+# 1) open the gcamreport project
+
+# 2) load the package
+devtools::load_all()
+
+# 3) run the main function to produce the dataset report meeting the IAMC
+# requirements and launch the user interface
+db_path <- "path/to/my-gcam-database"
+db_name <- "my-gcam-database"
+prj_name <- "my-project.dat"
+scen_name <- "name of the GCAM scenarios"
+generate_report(db_path = db_path, db_name = db_name, prj_name = prj_name,
+scenarios = scen_name, final_year = 2100, save_output = TRUE, launch_ui = TRUE)
+```
+
+The additional instructions to run the package through a Docker image and using further functionalities can be found in the [online documentation](https://bc3lc.github.io/gcamreport/) for all the release versions.
+
+## A note on the architecture
+
+The `gcamreport` package consists of a set of functions divided into two different blocks. All functions are described in a specific [documentation](https://bc3lc.github.io/gcamreport/index.html) supplemented by detailed tutorials.
+
+- Dataset generation block: Transformation and saving of outputs from a created or pre-loaded GCAM database to meet the IAMC formatting requirements.
+- Interactive user block: Dataset visualization and manipulation, and figures generation.
+
+To read the raw GCAM outputs, `gcamreport` uses [`rgcam`](https://github.com/JGCRI/rgcam). This R package is part of the GCAM-ecosystem, which is a set of complementary tools to the GCAM model that extend its functionality and facilitate data management. In particular, `rgcam` allows to both read and create a manageable data file containing the desired model outputs selected from the GCAM results database.
+
+For the correct performance of `gcamreport` internal functions, the package includes user-modifiable constant values and mapping files, such as regional and sectorial aggregations, as well as external files to compute additional calculations to produce some results that are beyond the regular GCAM reporting (e.g., installed capacity). These additional calculations are necessary to meet the IAMC reporting requirements (since not all models provide the same type of outputs, but often through back-on-the-envelope calculations, harmonizing outputs in this way improves the comparability of model results). Mapping files are automatically loaded and used, but they can be customized and adjusted by the user if required by a specific study as described in a detailed [R vignette](https://bc3lc.github.io/gcamreport/articles/Modify_Mapping_Template_Tutorial.html). If the mapping files or the reporting template are modified, it is recommended to save and tag the final used version to allow reusability and reproducibility.
+
+The output generated by the functions within the *dataset generation block* consists of an RData dataset, a Comma-Separated Values (CSV) file, and a Microsoft Excel Open XML Spreadsheet (XLSX), all of which are automatically saved unless the user specifies otherwise with the `save_output` parameter. This ensures portability and format compatibility of the output [@krey_iamc_2023]. Besides, the output generated by the *interactive user block* are both CSV files and Portable Network Graphic (PNG) files, corresponding to the processed tabular data and the generated figures, which are only saved if the user clicks on the corresponding *download* button. This last block can be directly run with the RData dataset generated by the former block, avoiding the need to re-create the reporting dataset, as detailed in this [example](https://bc3lc.github.io/gcamreport/articles/Step_By_Step_Full_Example.html#example3).
+
+{width="60%"} {width="42.5%"}
+
+**Figure 2:** (left) Interactive user interface visualization example: tabular example and plotting example. (right) Usage workflow scheme.
+
+Despite the optimization, the package still requires some performing time, mostly in order to create the project file from the given database. If the project file is already given, it takes less than a minute to produce the reporting dataset.
+
+Lastly, the package will be updated simultaneously with the official GCAM releases, promoting the reusability and transparency. To keep track of the versions, there will be a `gcamreport` release by each `GCAM` version, tagged and named as documented in this [protocol](https://bc3lc.github.io/gcamreport/articles/Version_Guide.html). In the same line, some new features are planned for next releases, such as the reporting of hydrogen or refinery investments, or the generation of other types of plots in the user interface, in order to make the package more flexible and better adaptable to the needs of the scientific community. There are also plans to integrate the package into the GCAM-ecosystem suite of tools. Combining `gcamreport` with other tools in the ecosystem (such as [gcamextractor](https://github.com/JGCRI/gcamextractor))[@waite_gcamextractor_2023] will allow GCAM users to obtain the model outputs in different formats, depending on their scientific needs.
+
+# Acknowledgements
+
+C.R. and D.V. acknowledges financial support from the European Union's Horizon research program under grant agreement 101056306 (IAM COMPACT project).
+
+# References
diff --git a/paper/paper.pdf b/paper/paper.pdf
new file mode 100644
index 0000000..be85316
Binary files /dev/null and b/paper/paper.pdf differ
diff --git a/paper/scheme_fig4_crop.png b/paper/scheme_fig4_crop.png
new file mode 100644
index 0000000..46c443f
Binary files /dev/null and b/paper/scheme_fig4_crop.png differ
diff --git a/paper/ui.png b/paper/ui.png
new file mode 100644
index 0000000..d9eb822
Binary files /dev/null and b/paper/ui.png differ
diff --git a/paper/workflow.png b/paper/workflow.png
new file mode 100644
index 0000000..e36d0ee
Binary files /dev/null and b/paper/workflow.png differ
diff --git a/tests/testthat/inst/extdata/queries/queries_gcamreport_gcam7.0_complete.xml b/tests/testthat/inst/extdata/queries/queries_gcamreport_gcam7.0_general.xml
similarity index 100%
rename from tests/testthat/inst/extdata/queries/queries_gcamreport_gcam7.0_complete.xml
rename to tests/testthat/inst/extdata/queries/queries_gcamreport_gcam7.0_general.xml
diff --git a/tests/testthat/testInputs/v_7.0/test_ui_5.data_sample.RData b/tests/testthat/testInputs/v_7.0/test_ui_5.data_sample.RData
deleted file mode 100644
index 27352b4..0000000
Binary files a/tests/testthat/testInputs/v_7.0/test_ui_5.data_sample.RData and /dev/null differ
diff --git a/tests/testthat/testInputs/v_7.0/test_ui_6.selected_scen.RData b/tests/testthat/testInputs/v_7.0/test_ui_6.selected_scen.RData
new file mode 100644
index 0000000..ce7f943
Binary files /dev/null and b/tests/testthat/testInputs/v_7.0/test_ui_6.selected_scen.RData differ
diff --git a/tests/testthat/testInputs/v_7.0/test_ui_6.selected_years.RData b/tests/testthat/testInputs/v_7.0/test_ui_6.selected_years.RData
new file mode 100644
index 0000000..23d9b28
Binary files /dev/null and b/tests/testthat/testInputs/v_7.0/test_ui_6.selected_years.RData differ
diff --git a/tests/testthat/testInputs/v_7.0/test_ui_6.sidebarItemExpanded.RData b/tests/testthat/testInputs/v_7.0/test_ui_6.sidebarItemExpanded.RData
new file mode 100644
index 0000000..254fa79
Binary files /dev/null and b/tests/testthat/testInputs/v_7.0/test_ui_6.sidebarItemExpanded.RData differ
diff --git a/tests/testthat/testInputs/v_7.0/test_ui_6.tree_regions.RData b/tests/testthat/testInputs/v_7.0/test_ui_6.tree_regions.RData
new file mode 100644
index 0000000..7d59b1d
Binary files /dev/null and b/tests/testthat/testInputs/v_7.0/test_ui_6.tree_regions.RData differ
diff --git a/tests/testthat/testInputs/v_7.0/test_ui_6.tree_variables.RData b/tests/testthat/testInputs/v_7.0/test_ui_6.tree_variables.RData
new file mode 100644
index 0000000..70ab456
Binary files /dev/null and b/tests/testthat/testInputs/v_7.0/test_ui_6.tree_variables.RData differ
diff --git a/tests/testthat/testOutputs/v_7.0/result_test13.1.xml b/tests/testthat/testOutputs/v_7.0/result_test13.1.xml
new file mode 100644
index 0000000..0977324
--- /dev/null
+++ b/tests/testthat/testOutputs/v_7.0/result_test13.1.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ GHG
+ emissions
+ *[@type = 'sector']//*[@type = 'GHG' and current_emis]/emissions/node()
+
+
+
+
+
+
+ GHG
+ emissions
+ *[@type = 'sector' (:collapse:) or @type = 'resource' (:collapse:)](: / *[@type = 'subresource' (: collapse :)] :)//
+ *[@type = 'GHG' and current_emis]/emissions/node()
+
+
+
+
+
+
+
+
+
diff --git a/tests/testthat/testOutputs/v_7.0/result_test13.2.RData b/tests/testthat/testOutputs/v_7.0/result_test13.2.RData
new file mode 100644
index 0000000..bb7c578
Binary files /dev/null and b/tests/testthat/testOutputs/v_7.0/result_test13.2.RData differ
diff --git a/tests/testthat/testOutputs/v_7.0/test_ui_5.1.RData b/tests/testthat/testOutputs/v_7.0/test_ui_5.1.RData
new file mode 100644
index 0000000..4e5dffd
Binary files /dev/null and b/tests/testthat/testOutputs/v_7.0/test_ui_5.1.RData differ
diff --git a/tests/testthat/testOutputs/v_7.0/test_ui_5.2.RData b/tests/testthat/testOutputs/v_7.0/test_ui_5.2.RData
new file mode 100644
index 0000000..4e5dffd
Binary files /dev/null and b/tests/testthat/testOutputs/v_7.0/test_ui_5.2.RData differ
diff --git a/tests/testthat/testOutputs/v_7.0/test_ui_5.3.RData b/tests/testthat/testOutputs/v_7.0/test_ui_5.3.RData
new file mode 100644
index 0000000..ed51bba
Binary files /dev/null and b/tests/testthat/testOutputs/v_7.0/test_ui_5.3.RData differ
diff --git a/tests/testthat/testOutputs/v_7.0/test_ui_5.4.RData b/tests/testthat/testOutputs/v_7.0/test_ui_5.4.RData
new file mode 100644
index 0000000..639cb2b
Binary files /dev/null and b/tests/testthat/testOutputs/v_7.0/test_ui_5.4.RData differ
diff --git a/tests/testthat/testOutputs/v_7.0/test_ui_5.5.RData b/tests/testthat/testOutputs/v_7.0/test_ui_5.5.RData
new file mode 100644
index 0000000..639cb2b
Binary files /dev/null and b/tests/testthat/testOutputs/v_7.0/test_ui_5.5.RData differ
diff --git a/tests/testthat/testOutputs/v_7.0/test_ui_6.1.RData b/tests/testthat/testOutputs/v_7.0/test_ui_6.1.RData
new file mode 100644
index 0000000..b952a2b
Binary files /dev/null and b/tests/testthat/testOutputs/v_7.0/test_ui_6.1.RData differ
diff --git a/tests/testthat/testReporter_v7.0.R b/tests/testthat/testReporter_v7.0.R
index b9816da..1255a63 100644
--- a/tests/testthat/testReporter_v7.0.R
+++ b/tests/testthat/testReporter_v7.0.R
@@ -589,3 +589,26 @@ test_that("Test12_v7. other functions", {
testthat::expect_equal(testResult, testExpect)
})
+
+test_that("Test13_v7. specify queries", {
+
+ # transform_to_xml ancillary function
+ testResult <- transform_to_xml(gcamreport::queries_nonCO2)
+ testExpect <- xml2::read_xml(file.path(rprojroot::find_root(rprojroot::is_testthat), "testOutputs/v_7.0/result_test13.1.xml"))
+ testthat::expect_equal(testResult, testExpect)
+
+ # generate standardize report specifying the query file
+ db_path <- file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0")
+ db_name <- "database_basexdb_ref"
+ prj_name <- "gcamv7.0_test_specify_queries.dat"
+ scenarios <- "Reference"
+ generate_report(db_path = db_path, db_name = db_name, prj_name = prj_name,
+ scenarios = scenarios, final_year = 2050, desired_variables = c('Price|Carbon*'),
+ save_output = T, launch_ui = F,
+ queries_general_file = file.path(rprojroot::find_root(rprojroot::is_testthat), "inst/extdata/queries/queries_gcamreport_gcam7.0_general.xml"))
+ testResult <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0/gcamv7.0_test_specify_queries_standardized.RData")))
+ testExpect <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testOutputs/v_7.0/result_test13.2.RData")))
+ testthat::expect_equal(testResult, testExpect)
+
+})
+
diff --git a/tests/testthat/testUI.R b/tests/testthat/testUI.R
index 8afc767..89dd153 100644
--- a/tests/testthat/testUI.R
+++ b/tests/testthat/testUI.R
@@ -142,8 +142,39 @@ test_that("Test5. do_data_sample", {
sel_vars <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0/test_ui_5.sel_vars.RData")))
sel_years <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0/test_ui_5.sel_years.RData")))
testResult <- do_data_sample(sdata, sel_scen, sel_years, sel_cols, sel_vars, sel_reg, 0, 0)
- testExpect <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0/test_ui_5.data_sample.RData")))
+ testExpect <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testOutputs/v_7.0/test_ui_5.1.RData")))
testthat::expect_equal(testResult, testExpect)
+
+ testResult <- do_data_sample(sdata, sel_scen, sel_years, sel_cols, sel_vars, sel_reg, 1, 0)
+ testExpect <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testOutputs/v_7.0/test_ui_5.2.RData")))
+ testthat::expect_equal(testResult, testExpect)
+
+ testResult <- do_data_sample(sdata, sel_scen, sel_years, sel_cols, sel_vars, sel_reg, 1, 1)
+ testExpect <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testOutputs/v_7.0/test_ui_5.3.RData")))
+ testthat::expect_equal(testResult, testExpect)
+
+ testResult <- do_data_sample(sdata, sel_scen, sel_years, sel_cols, sel_vars, sel_reg, 2, 1)
+ testExpect <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testOutputs/v_7.0/test_ui_5.4.RData")))
+ testthat::expect_equal(testResult, testExpect)
+
+ testResult <- do_data_sample(sdata, sel_scen, sel_years, sel_cols, sel_vars, sel_reg, 1, 2)
+ testExpect <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testOutputs/v_7.0/test_ui_5.5.RData")))
+ testthat::expect_equal(testResult, testExpect)
+})
+
+
+test_that("Test6. update_user_choices_plot", {
+
+ # update_user_choices_plot
+ selected_scen <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0/test_ui_6.selected_scen.RData")))
+ selected_years <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0/test_ui_6.selected_years.RData")))
+ sidebarItemExpanded <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0/test_ui_6.sidebarItemExpanded.RData")))
+ tree_regions <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0/test_ui_6.tree_regions.RData")))
+ tree_variables <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testInputs/v_7.0/test_ui_6.tree_variables.RData")))
+ testResult <- update_user_choices_plot(selected_scen, selected_years, tree_regions, tree_variables, sidebarItemExpanded)
+ testExpect <- get(load(file.path(rprojroot::find_root(rprojroot::is_testthat), "testOutputs/v_7.0/test_ui_6.1.RData")))
+ testthat::expect_equal(testResult, testExpect)
+
})
diff --git a/vignettes/Dataset_Generation_Tutorial.Rmd b/vignettes/Dataset_Generation_Tutorial.Rmd
index 5433f0e..55de9e1 100644
--- a/vignettes/Dataset_Generation_Tutorial.Rmd
+++ b/vignettes/Dataset_Generation_Tutorial.Rmd
@@ -7,7 +7,7 @@ vignette: >
%\VignetteEncoding{UTF-8}
---
-To see all possibilities of the `generate_report()` function, look [here](https://bc3lc.github.io/gcamreport/reference/generate_report.html).
+To see a formal description of the `generate_report()` function, look [here](https://bc3lc.github.io/gcamreport/reference/generate_report.html).
newline
@@ -21,30 +21,38 @@ To see all possibilities of the `generate_report()` function, look [here](https:
## Example 1: generate a dataset from a database {#example1}
-Assume you have a database called `myDb` in a folder named `dbFolder` and are willing to generate a standardized dataset for several scenarios: `scen1`, `scen2`, and `scen3`. With the `generate_report` function, it will be generated and automatically saved in the same folder where `myDb` is.
+Suppose you have a database named `myDb` in a folder named `dbFolder` and you want to generate a standardized dataset for several scenarios: `scen1`, `scen2` and `scen3` using a `new_general_queries_file`. The `generate_report` function will generate it and automatically save it in the same folder where `myDb` is located.
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker.
-2) Load `gcamreport` library.
+1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R or Docker.
+
+2) Load the `gcamreport` library. If you are using Rstudio or Docker, run
``` r
devtools::load_all()
```
-3) Store the database path and name, the query path, the desired project name, and the desired scenarios and reporting variables in variables. In case you do not specify the scenarios, all the scenarios in the database will be considered for reporting; and if the variables are not specified, all the available reporting variables will be used. For more details about scenarios and variables specification, look at the [regions' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-4-specify-the-regions-or-regions-groups) or at the [variables' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-5-specify-the-variables).
+and if you are using R, run
+
+``` r
+library(gcamreport)
+```
+
+3) Store the database path and name, the query path, the desired project name, and the desired scenarios and reporting variables in variables. In case you do not specify the scenarios, all the scenarios in the database will be considered for reporting; and if the variables are not specified, all the available reporting variables will be used. For more details about scenarios and variables specification, look at the [regions' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-4-specify-the-regions-or-regions-groups) or at the [variables' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-5-specify-the-variables). If you want to specify the query files, look at the [query files tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-6-specify-the-query-files).
``` r
dbpath <- "/path/to/database"
dbname <- "gcamdb_name"
prjname <- "awesomeProj.dat"
-scen <- c('scen1', 'scen2', 'scen3')
+scen <- c("scen1", "scen2", "scen3")
```
-Notice that the extension is included in the project name. Accepted extensions: `.dat` & `.proj`.
+Notice that the extension is included in the project name. Accepted extensions are `.dat` & `.proj`.
+
+**Note**: If you followed the Docker installation, you should place your database inside the `gcamreport` folder, which is now considered the root of the R session. Inside the R session it is referred to as `/app`. Thus, your database path will be something like `/app/path/to/database`.
-**Note**: in case you followed the Docker installation, you should store your database inside the `gcamreport` folder and your root directory is called `/app`. Thus, your database path will be something like `/app/path/to/database`.
-4) Generate the dataset until the desired year. In this example, 2050. By default is 2100 and it should be at least 2025.
+4) Generate the standardized standardized dataset until the desired year. In this example, 2050. By default is 2100 and it should be at least 2025.
``` r
generate_report(db_path = dbpath, query_path = querypath, db_name = dbname,
@@ -52,13 +60,13 @@ generate_report(db_path = dbpath, query_path = querypath, db_name = dbname,
launch_ui = FALSE)
```
-**Note**: project generation requires approximately 30 minutes.
+**Note**: The project generation might take some time, depending on the number of scenarios, regions, and variables you want to standardize.
Notice that the dataset will automatically be saved in `.RData`, `.csv` and `.xlsx` at `/path/to/database/awesomeProj_standardized.RData`, `/path/to/database/awesomeProj_standardized.csv`, and `/path/to/database/awesomeProj_standardized.xlsx`.
-This procedure will also generate a project file at `/path/to/database/dbname_prjname.dat` with all the necessary queries that you need for reporting. You can directly use it as indicated in [Example 2](#example2).
+This procedure will also generate a project file at `/path/to/database/dbname_prjname.dat` with all the loaded queries. You can directly use it as indicated in [Example 2](#example2).
-The terminal will output the performed verifications and their final status.
+The terminal will output the performed vetting verifications and their final status.
newline
@@ -73,19 +81,24 @@ The terminal will output the performed verifications and their final status.
## Example 2: generate a dataset from a project {#example2}
-Assume you have a project called `myProj.dat` and are willing to generate a standardized dataset out of it. With the `generate_report` function, it will be generated and automatically saved in the same folder where `myProj.dat` is. Notice that `myProj.dat` should have all the required queries for the standardized dataset generation. If you are not sure you have all of them or you need to generate the project, see [Example1](#example1).
+Suppose you have a project named `myProj.dat` and you want to generate a standardized dataset from it. The `generate_report` function will generate it and automatically save it in the same folder as `myProj.dat`. Note that `myProj.dat` should have all the queries needed to generate the standardized dataset. If you are not sure you have all of them, or if you need to generate the project, see [Example1](#example1).
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker.
+1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R or Docker.
-2) Load `gcamreport` library.
+2) Load the `gcamreport` library. If you are using Rstudio or Docker, run
``` r
devtools::load_all()
```
+and if you are using R, run
+
+``` r
+library(gcamreport)
+```
-3) Store the project path and the desired scenarios and reporting variables in variables. In case you do not specify the scenarios, all the scenarios in the database will be considered for reporting; and if the variables are not specified, all the available reporting variables will be used. For more details about scenarios and variables specification, look at the [regions' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-4-specify-the-regions-or-regions-groups) or at the [variables' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-5-specify-the-variables).
+3) Store the project path and the desired scenarios and reporting variables in variables. In case you do not specify the scenarios, all the scenarios in the database will be considered for reporting; and if the variables are not specified, all the available reporting variables will be used. For more details about scenarios and variables specification, look at the [regions' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-4-specify-the-regions-or-regions-groups) or at the [variables' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-5-specify-the-variables). Notice that only regions and variables already present in the rgcam project can be considered for reporting. If you wish to include new items in your project, consider generating the project again as detailed in [Example1](#example1).
``` r
@@ -93,11 +106,11 @@ mypath <- "/path/to/project/myProj.dat"
scen <- c('scen1', 'scen2', 'scen3')
```
-Notice that the extension is included. Accepted extensions: `.dat` & `.proj`.
+Notice that the extension is included. Accepted extensions are `.dat` & `.proj`.
-**Note**: in case you followed the Docker installation, you should store your database inside the `gcamreport` folder and your root directory is called `/app`. Thus, your database path will be something like `/app/path/to/database`.
+**Note**: If you followed the Docker installation, you should place your project file inside the `gcamreport` folder, which is now considered the root of the R session. Inside the R session it is referred to as `/app`. Thus, your project path will be something like `/app/path/to/project/myProj.dat`.
-4) Generate the dataset until the desired year. In this example, 2050. By default is 2100 and it should be at least 2025.
+4) Generate the standardized dataset until the desired year. In this example, 2050. By default is 2100 and it should be at least 2025.
``` r
generate_report(prj_name = mypath, scenarios = scen, final_year = 2050,
@@ -123,18 +136,23 @@ The terminal will output the performed verifications and their final status.
## Example 3: save or not the output and specify the file format or the directory
-Assume you are in the situation of any of the previous examples but want to either not save the output, save it in `.csv`, `.xlsx`, or both extensions.
+Suppose you are in the situation of one of the previous examples, but you want to either not save the standardized output, save it in `.csv`, `.xlsx`, or in both extensions.
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker.
+1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R or Docker.
-2) Load `gcamreport` library.
+2) Load the `gcamreport` library. If you are using Rstudio or Docker, run
``` r
devtools::load_all()
```
+and if you are using R, run
+
+``` r
+library(gcamreport)
+```
-3) Use [example1](#example1) database or [example2](#example2) project description and add all the extra parameters that you would like to consider in the `generate_report` function (e.g., final year, desired scenarios...). Specify the output saving options through the `save_output` parameter
+3) Use [example1](#example1) database or [example2](#example2) project description and add all the extra parameters that you would like to consider in the `generate_report` function (e.g., final year, desired scenarios...). Specify the output saving options through the `save_output` parameter:
```r
## -- save the dataset in CSV and XLSX format
@@ -152,7 +170,7 @@ generate_report(..., save_output = FALSE)
-4) Use [example1](#example1) database or [example2](#example2) project description and add all the extra parameters that you consider in the `generate_report` function. Specify the output directory and output file name through `output_file` parameter. This will save the output in the indicated path as `.csv` and `.xlsx`. To modify this, see the above explanation.
+4) Use [example1](#example1) database or [example2](#example2) project description and add all the extra parameters that you consider in the `generate_report` function. Specify the output directory and output file name through `output_file` parameter. This will save the output in the indicated path as `.csv` and `.xlsx`. To modify the extension, check step 3.
```r
## -- save the dataset in '/desired/directory' and in a file called 'awesomeOutput'
@@ -166,23 +184,30 @@ generate_report(..., output_file = '/desired/directory/awesomeOutput')
## Example 4: specify the regions or regions' group/s
-Assume you are in the situation of any of the previous examples but want to consider only some regions. You have two options to select them: you can directly specify the desired regions to consider or you can specify the regions' group/s to consider. In any case, the desired regions will make up *World*. Then, for example, the World's total crop land will be the sum of the crop land of **only** the picked regions.
+Suppose you are in one of the previous situations, but you want to consider a standardized dataset with only some regions. You have two ways to select them: you can directly specify the desired regions to be considered, or you can specify the group(s) of regions to be considered. In either case, the desired regions will form *World*. Then, for example, the total arable land of the world will be the sum of the arable land of **only** the selected regions.
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker.
-2) Load `gcamreport` library.
+1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R or Docker.
+
+2) Load the `gcamreport` library. If you are using Rstudio or Docker, run
``` r
devtools::load_all()
```
-3) Check which are the available regions or regions' groups. The following commands will print a list with all the possibilities.
+and if you are using R, run
+
+``` r
+library(gcamreport)
+```
+
+3) Check which are the available regions or regions' groups for reporting. The following commands will print a list with all the possibilities.
``` r
available_regions()
available_continents()
```
-In case you want to save them in a vector, you can simply assign the output. You can also skip the regions' console printing by setting `print = FALSE`.
+In case you want to store them in a vector, you can simply assign the output. You can also skip the console printing by setting `print = FALSE`.
``` r
avail_reg <- available_regions(print = FALSE)
@@ -190,7 +215,7 @@ avail_cont <- available_continents()
```
-4) Use [example1](#example1) database or [example2](#example2) project description and add all the extra parameters that you consider in the `generate_report` function (e.g., final final, desired scenarios...). Specify the regions through the `desired_regions` parameter or regions' group through the `desired_continents` parameter. Notice that not both can be specified at the same time.
+4) Use [example1](#example1) database or [example2](#example2) project description and add all the extra parameters that you consider in the `generate_report` function (e.g., final final, desired scenarios...). Specify the regions through the `desired_regions` parameter or the `desired_continents` parameter. Notice that not both can be specified at the same time.
```r
## -- specify the desired regions
@@ -209,22 +234,29 @@ generate_report(..., desired_continents = c('ASIA','REF'))
## Example 5: specify the variables
-Assume you are in the situation of any of the previous examples but want to consider only variables.
+Suppose you are in the situation of one of the previous examples, but you want to consider only some variables in the standardized dataset.
+
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker.
+1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R or Docker.
-2) Load `gcamreport` library.
+2) Load the `gcamreport` library. If you are using Rstudio or Docker, run
``` r
devtools::load_all()
```
-3) Check which are the available variables. The following command will print a list with all the possibilities.
+and if you are using R, run
+
+``` r
+library(gcamreport)
+```
+
+3) Check which are the available variables for reporting. The following command will print a list with all the possibilities.
``` r
available_variables()
```
-In case you want to save them in a vector, you can simply assign the output. You can also skip the variables' console printing by setting `print = FALSE`.
+In case you want to save them in a vector, you can simply assign the output. You can also skip the console printing by setting `print = FALSE`.
``` r
avail_var <- available_variables(print = FALSE)
@@ -247,7 +279,72 @@ generate_report(...,
# Emissions|BC|Energy|Supply
```
-In case you specify only some variables within a group, they will make up the total value. As an example, if we select *Final Energy|Electricity* and *Final Energy|Gases*, then *Final Energy* will be the sum of these two sectors, and will not consider *Final Energy|Industry* or *Final Energy|Heat*.
+In case you specify only some variables within a group, they will make up the total value. For example, if we select *Final Energy|Electricity* and *Final Energy|Gases*, then *Final Energy* will be the sum of these two sectors, and will not consider *Final Energy|Industry* or *Final Energy|Heat*.
+
+newline
+
+
+
+
+
+
+## Example 6: specify the query files
+
+The `gcamreport` standardization procedure requires two query files. The `gcamreport::queries_general` is a query file that contains the necessary queries to standardize any variable. You can see the xml version of this file [here](https://github.com/bc3LC/gcamreport/blob/gcam-v7.0/inst/extdata/queries/queries_gcamreport_gcam7.0_general.xml). In contrast, the `gcamreport::queries_nonCO2` contains only _nonCO2_ queries. In particular, the queries `nonCO2 emissions by sector (excluding resource production` and `nonCO2 emissions by region`. These queries are particularly heavy, and to avoid crashing the R session, they are loaded in parts. You can see the xml version of the file [here](https://github.com/bc3LC/gcamreport/blob/gcam-v7.0/inst/extdata/queries/queries_gcamreport_gcam7.0_nonCO2.xml).
+
+It is highly recommended not to modify these files. Although they specify a large set of queries to be loaded, not all of them will be included in the rgcam project. The `gcamreport` package generates the rgcam project with the minimum queries necessary to standardize the desired variables, thus avoiding loading extra queries. It is only possible to specify the query files when generating the rgcam project.
+
+Let's start with the example: Suppose you have a database named `myDb` in a folder named `dbFolder` and you want to generate a standardized dataset for several scenarios (`scen1`, `scen2` and `scen3`) using a `new_general_queries_file`. The `generate_report` function will generate it and automatically save it in the same folder where `myDb` is located.
+
+
+1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R or Docker.
+
+2) Load the `gcamreport` library. If you are using Rstudio or Docker, run
+
+``` r
+devtools::load_all()
+```
+
+and if you are using R, run
+
+``` r
+library(gcamreport)
+```
+
+3) Store the database path and name, the general query path, the desired project name, and the desired scenarios and reporting variables in variables. In case you do not specify the scenarios, all the scenarios in the database will be considered for reporting; and if the variables are not specified, all the available reporting variables will be used. For more details about scenarios and variables specification, look at the [regions' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-4-specify-the-regions-or-regions-groups) or at the [variables' tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#example-5-specify-the-variables).
+
+``` r
+dbpath <- "/path/to/database"
+dbname <- "gcamdb_name"
+prjname <- "awesomeProj.dat"
+scen <- c("scen1", "scen2", "scen3")
+new_queries_general_file <- "path/to/your/new_queries_file.xml"
+```
+
+Notice that the extension is included in the general query file (`.xml`) and in the project name (`.dat` or `.proj`).
+
+**Note**: If you followed the Docker installation, you should place your database and the new query file inside the `gcamreport` folder, which is now considered the root of the R session. Inside the R session it is referred to as `/app`. Thus, your databse path will be something like `/app/path/to/database` and your query file path will be something like `/app/path/to/new_queries_file.xml`.
+
+
+4) Generate the standardized dataset until the desired year. In this example, 2050. By default is 2100 and it should be at least 2025.
+
+``` r
+generate_report(db_path = dbpath, query_path = querypath, db_name = dbname,
+ prj_name = prjname, scenarios = scen, final_year = 2050,
+ launch_ui = FALSE, queries_general_file = new_queries_general_file)
+```
+
+**Note**: The project generation might take some time, depending on the number of scenarios, regions, and variables you want to standardize.
+
+Notice that the dataset will automatically be saved in `.RData`, `.csv` and `.xlsx` at `/path/to/database/awesomeProj_standardized.RData`, `/path/to/database/awesomeProj_standardized.csv`, and `/path/to/database/awesomeProj_standardized.xlsx`.
+
+This procedure will also generate a project file at `/path/to/database/dbname_prjname.dat` with all the loaded queries. You can directly use it as indicated in [Example 2](#example2).
+
+The terminal will output the performed vetting verifications and their final status.
+
+
+To specify the _nonCO2_ query file you can proceed analogously. However, check carefully its default structure and the function where is used: [data_query](file:///C:/Users/claudia.rodes/Documents/IAM_COMPACT/gcamreport/docs/reference/data_query.html).
+
newline
diff --git a/vignettes/Interactive_UI_Tutorial.Rmd b/vignettes/Interactive_UI_Tutorial.Rmd
index c9a737f..df6e80c 100644
--- a/vignettes/Interactive_UI_Tutorial.Rmd
+++ b/vignettes/Interactive_UI_Tutorial.Rmd
@@ -58,7 +58,7 @@ launch_gcamreport_ui(data_path = /path/to/your/database/..._standardize.RData)
## Troubleshooting when launching the UI
-#### A) Error when launching the UI
+#### A) Large error when launching the UI
When running `launch_gcamreport_ui(data_path = "path/to/your/data.RData")`, you might get this message:
@@ -125,8 +125,22 @@ generate_report(data_path = "examples/amazingDataset.RData")
+#### B) Short error when launching the UI
-#### B) Wired message when launching the UI using the Docker installation.
+When launching the UI either through R, Rstudio or Docker, you might get this message:
+
+
+ Error in `shinyAppDir()`:
+ ! No Shiny application exists at the path "inst/gcamreport_ui"
+
+
+**Possible solution 1**: make sure that you are using the `gcamreport` package through Rstudio (following the full R installation) or Docker. Otherwise the UI can not be launched. Check the installation instructions [here](https://bc3lc.github.io/gcamreport/index.html#installation-guide).
+
+**Possible solution 2**: make sure that you have a folder called `inst/gcamreport_ui` in your working session. It might be that your working directory has changed. To check it, run `getwd()` on your R console. If necessary, set again the working environment with `setwd()`.
+
+
+
+#### C) Wired message when launching the UI using the Docker installation.
After using the functions `generate_report()` or `launch_gcamreport_ui()` to launch the UI, you might get this message:
@@ -150,7 +164,7 @@ or open this url in your favourite browser.
-#### C) Error when using the UI through Docker installation.
+#### D) Error when using the UI through Docker installation.
When opening your *localhost*, you might see this error:
diff --git a/vignettes/Modify_Mapping_Template_Tutorial.Rmd b/vignettes/Modify_Mapping_Template_Tutorial.Rmd
index c136eab..836add8 100644
--- a/vignettes/Modify_Mapping_Template_Tutorial.Rmd
+++ b/vignettes/Modify_Mapping_Template_Tutorial.Rmd
@@ -7,7 +7,7 @@ vignette: >
%\VignetteEncoding{UTF-8}
---
-In this tutorial, we will modify some of the pre-build mappings of the `gcamreport` package
+In this tutorial, we will modify some of the pre-build mappings of the `gcamreport` package. It is necessary to have the `gcamreport` package installed either through the [full R installation](https://bc3lc.github.io/gcamreport/index.html#with-r-full-mode-installation) or [Docker](https://bc3lc.github.io/gcamreport/index.html#with-docker)
newline
@@ -23,9 +23,9 @@ In this tutorial, we will modify some of the pre-build mappings of the `gcamrepo
In this example, we assume that the GCAM version has a more detailed land-food system and reports a new food item called *AvocadoSeeds* and a new land-leaf called *AvocadoSeedsTrees*. Thus, we need to modify `gcamreport` to include these items in the reporting dataset. In this example, the new items add to the final *cropland* area and several pollutant *emissions*, but do not have their own category in the template.
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker.
+1) Follow either the [full R installation](https://bc3lc.github.io/gcamreport/index.html#with-r-full-mode-installation) or the [Docker installation](https://bc3lc.github.io/gcamreport/index.html#with-docker)
-2) Open the `gcamreport.Rprj`.
+2) Open the `gcamreport.Rproj`.
3) To modify the mappings, it is best to relay on some similar item that is already present in the mappings. In this case, we relay on *NutsSeeds* and *NutsSeedsTree*. To see where the mapping modifications should be performed, search across all files (`Ctrl + Shift + F`) inside `inst/extdata/mappings` for the key words *NutsSeeds* and *NutsSeedsTree*.
@@ -64,22 +64,51 @@ In this example, we assume that the GCAM version has a more detailed land-food s
AvocadoTrees,SO2_3_AWB,Emissions|Sulfur,Emissions|Sulfur|AFOLU,,,,,,,1
AvocadoTrees,SO2_4_AWB,Emissions|Sulfur,Emissions|Sulfur|AFOLU,,,,,,,1
```
-5) Update the queries file (if necessary, as is in this example). To do it, open `inst/extdata/queries/queries_gcamreport_gcam7.0_complete.xml` and add these lines in the *aggregated land allocation* query.
+5) Modify the query file (if necessary, as is in this example). To do it, copy the default query file located at `inst/extdata/queries/queries_gcamreport_gcam7.0_general.xml` and add these lines in the *aggregated land allocation* query.
```
```
+To use it when standardizing your GCAM output, run the `generate_report` function specifying the new query file path:
+``` r
+generate_report(..., queries_general_file = "path/to/your/new_queries_general_file.xml")
+```
+
+Another way to modify the query file is to update the default query file directly. To do this, open the default query file located at `inst/extdata/queries/queries_gcamreport_gcam7.0_general.xml` and add the necessary lines. The next step (step 6) will embed the new version of the query file into the package. With this method, it is no longer necessary to specify the query file path, as it will be your default general query file.
+
6) Update the pre-build mappings:
a) Run the file `inst/extdata/saveDataFiles.R`.
- b) Build the document file: press `Ctrl + Shift + D`.
+ b) Build the document file: press `Ctrl + Shift + D` or click to `Build > More > Document`.
- c) Install the modified package: `Build > install`.
+ c) Install the modified package: `Build > Install`.
7) Do not forget to push the changes to your branch and tag the new version to allow reproducibility and reusability!! :)
+**Note**: If you want to install this `gcamreport` version into other devices, indicate the tag or branch name when cloning the repository, for instance:
+
+``` bash
+# to clone the taged version "v6.0.1":
+git clone --branch v6.0.1 --single-branch https://github.com/bc3LC/gcamreport.git
+
+# to clone the branch version "gcam-v6.0":
+git clone --branch gcam-v6.0 https://github.com/bc3LC/gcamreport.git
+```
+
+or when installing through Rstudio, for instance:
+``` r
+# to install the taged version "v6.0.1"
+devtools::install_github('bc3LC/gcamreport@v6.0.1')
+
+# to install the branch version "gcam-v6.0"
+devtools::install_github('bc3LC/gcamreport@gcam-v6.0')
+```
+
+
+
+
newline
@@ -94,9 +123,9 @@ In this example, we assume that the GCAM version has a more detailed land-food s
In this example, we assume that the GCAM version has a more detailed energy transportation freight service that considers *Bicycling and Walking*. We want to include this in the report as a new item: *Energy Service|Transportation|Passenger|Bicycling and Walking*. To do it, we need to modify the reporting template.
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker.
+1) Follow either the [full R installation](https://bc3lc.github.io/gcamreport/index.html#with-r-full-mode-installation) or the [Docker installation](https://bc3lc.github.io/gcamreport/index.html#with-docker)
-2) Open the `gcamreport.Rprj`.
+2) Open the `gcamreport.Rproj`.
3) To modify the reporting template, it is best to relay on some similar item that is already present in the mappings. In this case, we relay on *Energy Service|Transportation|Freight|Road*. To see where the reporting template modifications should be performed, open the reporting template file (`inst/extdata/template/reporting_template.csv`) and search (`Ctrl + F`) for the key words *Energy Service|Transportation|Freight|Road*.
@@ -110,9 +139,28 @@ In this example, we assume that the GCAM version has a more detailed energy tran
a) Run the file `inst/extdata/saveDataFiles.R`.
- b) Build the document file: press `Ctrl + Shift + D`.
+ b) Build the document file: press `Ctrl + Shift + D` or click to `Build > More > Document`.
- c) Install the modified package: `Build > install`.
+ c) Install the modified package: `Build > Install`.
6) Do not forget to push the changes to your branch and tag the new version to allow reproducibility and reusability!! :)
+**Note**: If you want to install this `gcamreport` version into other devices, indicate the tag or branch name when cloning the repository, for instance:
+
+``` bash
+# to clone the taged version "v6.0.1":
+git clone --branch v6.0.1 --single-branch https://github.com/bc3LC/gcamreport.git
+
+# to clone the branch version "gcam-v6.0":
+git clone --branch gcam-v6.0 https://github.com/bc3LC/gcamreport.git
+```
+
+or when installing through Rstudio, for instance:
+``` r
+# to install the taged version "v6.0.1"
+devtools::install_github('bc3LC/gcamreport@v6.0.1')
+
+# to install the branch version "gcam-v6.0"
+devtools::install_github('bc3LC/gcamreport@gcam-v6.0')
+```
+
diff --git a/vignettes/Step_By_Step_Full_Example.Rmd b/vignettes/Step_By_Step_Full_Example.Rmd
index 2ed2b34..578197c 100644
--- a/vignettes/Step_By_Step_Full_Example.Rmd
+++ b/vignettes/Step_By_Step_Full_Example.Rmd
@@ -7,7 +7,7 @@ vignette: >
%\VignetteEncoding{UTF-8}
---
-In this tutorial, we will 1) generate a dataset from a provided GCAM7.0 database and run the associated user interface and 2) generate a dataset from a provided project and run the corresponding user interface. To know more about the `gcamreport` package possibilities, look at these tutorials: [dataset generation tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html) and [user interface tutorial](https://bc3lc.github.io/gcamreport/articles/Interactive_UI_Tutorial.html).
+In this tutorial, we will 1) generate a dataset from a provided GCAM7.0 database and launch the associated user interface, 2) generate a dataset from a provided project and launch the corresponding user interface, and 3) launch the user interface from a provided standardized dataset. To know more about the `gcamreport` package possibilities, look at these tutorials: [dataset generation tutorial](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html) and [user interface tutorial](https://bc3lc.github.io/gcamreport/articles/Interactive_UI_Tutorial.html).
newline
@@ -21,16 +21,25 @@ In this tutorial, we will 1) generate a dataset from a provided GCAM7.0 database
## Example 1: step-by-step standardized dataset generation from a provided database
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker.
+1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R or Docker.
2) Download the example [GCAM7.0 database](https://zenodo.org/records/10258919), store it inside `gcamreport/examples`, and unpack it. Make sure that the database is directly located in `gcamreport/examples/database_basexdb_ref` and an intermediate folder has not appeared.
-3) Generate the standardized dataset:
+3) Load the `gcamreport` library. If you are using Rstudio or Docker, run
``` r
-## -- load gcamreport library.
devtools::load_all()
+```
+
+and if you are using R, run
+
+``` r
+library(gcamreport)
+```
+4) Generate the standardized dataset:
+
+``` r
## -- store the database path, name, and scenarios in a variable.
dbpath <- "examples"
dbname <- "database_basexdb_ref"
@@ -49,18 +58,20 @@ generate_report(db_path = dbpath, db_name = dbname, scenarios = scen,
save_output = TRUE, launch_ui = TRUE)
```
-In case you expirence some trouble, check this [troubleshooting section](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#troubleshooting-for-the-generate_report-function).
+In case you experience some trouble, check this [troubleshooting section](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#troubleshooting-for-the-generate_report-function).
-4) Once the project has been generated and the standardized dataset created, the user interface will prompt. If you are using R Studio, it will automatically open. For a better experience, click the `open in browser` button. If you are using Docker, either type in the browser or go to Docker Desktop and click the last started port.
+5) Once the project has been generated and the standardized dataset created, the user interface will prompt. If you are using Rstudio, it will automatically open. For a better experience, click the `open in browser` button. If you are using Docker, either type in the browser or go to Docker Desktop and click the last started port.
-5) Check the generated dataset: look at `examples` folder and you should see a file called `example1_standardized.csv` and a file called `example1_standardized.xlsx` containing the standardized dataset.
+**Note**: Remember that the user interface can only be launched through the [full R installation](https://bc3lc.github.io/gcamreport/index.html#with-r-full-mode-installation) or the [Docker installation](https://bc3lc.github.io/gcamreport/index.html#with-docker).
-6) Notice that in the `examples` folder a file called `database_basexdb_ref_example1.dat` has appeared. It is the generated project file from the provided database. In case you want to generate the standardized dataset again or to open the user interface, you can use directly this file and avoid creating the project again. If you wish to proceed as mentioned, you can follow [Example 2](#example2).
+6) Check the generated dataset: look in the `examples` folder and you should see two files named `example1_standardized.csv` and `example1_standardized.xlsx` containing the standardized dataset.
-7) Notice that in the `examples` folder a file called `example1_standardized.RData` has appeared. It is the generated reporting file from the provided database. In case you want to launch the user interface in the future, you can use directly this file and avoid creating or loading the project again. If you wish to proceed as mentioned, you can follow [Example 3](#example3).
+7) Note that a file called `database_basexdb_ref_example1.dat` has appeared in the `examples` folder. This is the generated project file from the provided database. If you want to rebuild the standardized dataset or launch the user interface, you can use this file directly and avoid rebuilding the project. If you want to proceed as mentioned, you can follow [Example 2](#example2).
+
+8) Note that a file named `example1_standardized.RData` has appeared in the `examples` folder. This is the report file generated from the provided database. If you want to launch the user interface in the future, you can use this file directly and avoid creating or loading the project again. If you want to proceed as mentioned, you can follow [Example 3](#example3).
newline
@@ -74,16 +85,25 @@ In case you expirence some trouble, check this [troubleshooting section](https:/
## Example 2: step-by-step standardized dataset generation from a provided project {#example2}
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker
+1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R or Docker
-2) In this example we will use an example dataset stored in `examples` called `example2.dat`
+2) In this example we will use an example rgcam project stored in `examples` called `example2.dat`
-3) Generate the standardized dataset:
+3) Load the `gcamreport` library. If you are using Rstudio or Docker, run
``` r
-## -- load gcamreport library.
devtools::load_all()
+```
+
+and if you are using R, run
+
+``` r
+library(gcamreport)
+```
+
+4) Generate the standardized dataset:
+```r
## -- store the project path and name in a variable.
prjname <- "examples/example2.dat"
@@ -95,16 +115,17 @@ generate_report(prj_name = prjname, final_year = 2050,
desired_variables = c('Agricultural*'),
save_output = TRUE, launch_ui = TRUE)
```
-In case you expirence some trouble, check this [troubleshooting section](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#troubleshooting-for-the-generate_report-function).
+In case you experience some trouble, check this [troubleshooting section](https://bc3lc.github.io/gcamreport/articles/Dataset_Generation_Tutorial.html#troubleshooting-for-the-generate_report-function).
-
-4) Once the project has been generated and the standardized dataset created, the user interface will prompt. If you are using R Studio, it will automatically open. For a better experience, click the `open in browser` button. If you are using Docker, either type in the browser or go to Docker Desktop and click the last started port.
+5) Once the project has been generated and the standardized dataset created, the user interface will prompt. If you are using Rstudio, it will automatically open. For a better experience, click the `open in browser` button. If you are using Docker, either type in the browser or go to Docker Desktop and click the last started port.
-5) Check the generated dataset: look at `examples` folder and you should see a file called `example2_standardized.csv` and a file called `example2_standardized.xlsx` containing the standardized dataset.
+**Note**: Remember that the user interface can only be launched through the [full R installation](https://bc3lc.github.io/gcamreport/index.html#with-r-full-mode-installation) or the [Docker installation](https://bc3lc.github.io/gcamreport/index.html#with-docker).
+
+6) Check the generated dataset: look in the `examples` folder and you should see two files named `example2_standardized.csv` and `example2_standardized.xlsx` containing the standardized dataset.
-6) Notice that in the `examples` folder a file called `example2_standardized.RData` has appeared. It is the generated reporting file from the provided database. In case you want to launch the user interface in the future, you can use directly this file and avoid creating or loading the project again. If you wish to proceed as mentioned, you can follow [Example 3](#example3).
+7) Note that a file called `example2_standardized.RData` has appeared in the `examples` folder. This is the report file generated from the provided database. If you want to launch the user interface in the future, you can use this file directly and avoid creating or loading the project again. If you want to proceed as mentioned, you can follow [Example 3](#example3).
newline
@@ -118,15 +139,24 @@ In case you expirence some trouble, check this [troubleshooting section](https:/
## Example 3: step-by-step user interface launching from a provided standardized dataset {#example3}
-1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with R Studio or Docker
+**Note**: Remember that the user interface can only be launched through the [full R installation](https://bc3lc.github.io/gcamreport/index.html#with-r-full-mode-installation) or the [Docker installation](https://bc3lc.github.io/gcamreport/index.html#with-docker).
+
+1) Follow the [installation guide](https://bc3lc.github.io/gcamreport/index.html#installation-guide) either with the R full installation or the Docker installation.
-2) In this example we will use an example dataset stored in `examples` called `example3.RData`
+2) In this example we will use a standardized example dataset stored in `examples` called `example3.RData`.
-3) Launch the user interface for the standardized dataset:
+3) Load the `gcamreport` library:
``` r
-## -- load gcamreport library.
devtools::load_all()
+```
+
+4) Launch the user interface for the standardized dataset:
+
+``` r
+## -- load gcamreport library.
+devtools::load_all() # if using Rstudio or Docker
+library(gcamreport) # if using R
## -- store the project path and name in a variable.
datapath <- "examples/example3.RData"
@@ -134,18 +164,19 @@ datapath <- "examples/example3.RData"
## -- launch the user interface
launch_gcamreport_ui(data_path = datapath)
```
-In case you expirence some trouble, check this [troubleshooting section](https://bc3lc.github.io/gcamreport/articles/Interactive_UI_Tutorial.html#troubleshooting-when-launching-the-ui-with-the-docker-installation).
+In case you experience some trouble, check this [troubleshooting section](https://bc3lc.github.io/gcamreport/articles/Interactive_UI_Tutorial.html#troubleshooting-when-launching-the-ui-with-the-docker-installation).
-4) Once the project has been generated and the standardized dataset created, the user interface will prompt. If you are using R Studio, it will automatically open. For a better experience, click the `open in browser` button. If you are using Docker, either type in the browser or go to Docker Desktop and click the last started port.
+5) Once the project has been generated and the standardized dataset created, the user interface will prompt. If you are using Rstudio, it will automatically open. For a better experience, click the `open in browser` button. If you are using Docker, either type in the browser or go to Docker Desktop and click the last started port.
-5) In case you just run [Example 1](#example1) or [Example 2](#example2), you should have in the environemnt a variable called `report`. You can use it too to launch the user interface:
+6) If you just ran [Example 1](#example1) or [Example 2](#example2), you should have a variable called `report` in the environment. You can also use it to launch the user interface:
``` r
## -- load gcamreport library.
-library(gcamreport)
+devtools::load_all() # if using Rstudio or Docker
+library(gcamreport) # if using R
## -- store the database path, name, and scenarios in a variable.
dataname <- "report"
diff --git a/vignettes/gcamreport_v6-0.Rmd b/vignettes/gcamreport_v6-0.Rmd
index 1568415..27045c1 100644
--- a/vignettes/gcamreport_v6-0.Rmd
+++ b/vignettes/gcamreport_v6-0.Rmd
@@ -17,3 +17,5 @@ Find below all tutorials compatible with `gcamreport v6.0*` releases (i.e. `gcam
[Dataset Generation Tutorial for gcamreport v6.0*](Dataset_Generation_Tutorial_v6-0.html)
[Interactive UI Tutorial for gcamreport v6.0*](Interactive_UI_Tutorial_v6-0.html)
+
+**Note**: These versions and their documentation pages are no longer maintained.