-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev_newstructure' into dev
- Loading branch information
Showing
219 changed files
with
10,748 additions
and
9,905 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# rename template items | ||
db_path = NULL | ||
db_name = NULL | ||
# prj_name = 'database_basexdb_2100_prj_study1_rep.dat' | ||
prj_name = 'database_basexdb_2100_prj_renamevar3.dat' | ||
scenarios = NULL | ||
final_year = 2100 | ||
desired_variables = "All" | ||
desired_regions = "All" | ||
desired_continents = "All" | ||
save_output = TRUE | ||
output_file = NULL | ||
launch_ui = TRUE | ||
queries_general_file = gcamreport::queries_general | ||
queries_nonCO2_file = gcamreport::queries_nonCO2 | ||
verbose = FALSE | ||
|
||
generate_report( | ||
prj_name = 'database_basexdb_2100_prj_renamevar3.dat', | ||
desired_regions = "China" | ||
) | ||
|
||
|
||
|
||
|
||
prjname = 'C:/Users/claudia.rodes/Documents/gcam-v7.0-Windows-Release-Package/output/database_basexdb_policy_debug1.dat' | ||
generate_report(prj_name=prjname,launch_ui=FALSE, | ||
desired_variables = c('Price|Carbon')) | ||
|
||
|
||
|
||
|
||
############################################################################## | ||
generate_report(db_path = "examples", | ||
db_name = 'database_basexdb_ref', | ||
scenarios = 'Reference', | ||
prj_name = 'dev2.dat', | ||
final_year = 2050, | ||
desired_variables = c('Price|Carbon*'), | ||
save_output = TRUE, | ||
launch_ui = F) | ||
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 | ||
queries_general_file = gcamreport::queries_general | ||
queries_nonCO2_file = gcamreport::queries_nonCO2 | ||
|
||
|
||
## -- load gcamreport library. | ||
devtools::load_all() | ||
|
||
## -- store the project path and name in a variable. | ||
datapath <- "examples/example3.RData" | ||
|
||
## -- launch the user interface | ||
launch_gcamreport_ui(data_path = datapath) | ||
|
||
|
||
|
||
|
||
|
||
|
||
## -- generate the reporting dataset until 2050 for EU-12 and EU-15 for all the | ||
## -- Agricultural variables, save the output in .RData, .csv and .xlsx format, | ||
## -- and lunch the user interface | ||
generate_report(db_path = dbpath, db_name = dbname, scenarios = scen, | ||
prj_name = prjname, final_year = 2050, | ||
desired_regions = c('EU-12', 'EU-15', 'Canada', 'Brazil', 'USA'), | ||
desired_variables = c('Final*'), | ||
save_output = TRUE, launch_ui = TRUE) | ||
|
||
|
||
|
||
|
||
## -- load gcamreport library. | ||
devtools::load_all() | ||
# library(gcamreport) | ||
|
||
## -- store the database path, name, and scenarios in a variable. | ||
dbpath <- "examples" | ||
dbname <- "database_basexdb_ref" | ||
scen <- "Reference" | ||
|
||
## -- choose a project name | ||
prjname <- "example1.dat" | ||
|
||
## -- generate the reporting dataset until 2050 for EU-12 and EU-15 for all the | ||
## -- Agricultural variables, save the output in .RData, .csv and .xlsx format, | ||
## -- and lunch the user interface | ||
generate_report(db_path = dbpath, db_name = dbname, scenarios = scen, | ||
prj_name = prjname, final_year = 2050, | ||
desired_regions = c('EU-12', 'EU-15'), | ||
desired_variables = c('Agricultural*'), | ||
save_output = TRUE, launch_ui = TRUE) | ||
|
||
|
||
|
||
|
||
launch_gcamreport_ui("examples/example3.RData") | ||
|
||
datapath <- "examples/example3.RData" | ||
|
||
## -- launch the user interface | ||
launch_gcamreport_ui(data_path = datapath) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
|
||
################################################################################ | ||
## -- example 1 - generate project | ||
|
||
rm(list = ls()) | ||
devtools::load_all() | ||
|
||
## -- store the database path and name | ||
dbpath <- "C:/Users/claudia.rodes/Documents/gcam-v7.0-Windows-Release-Package/output" | ||
dbname <- "database_basexdb_ssp" | ||
|
||
## -- choose a project name | ||
prjname <- "example1.dat" | ||
|
||
## -- generate the reporting dataset | ||
generate_report(db_path = dbpath, db_name = dbname, prj_name = prjname, | ||
final_year = 2050, | ||
scenarios = c('GCAM_SSP4', 'GCAM_SSP5', 'GCAM_SSP1'), | ||
desired_regions = c('USA', 'Brazil', 'EU-15'), | ||
desired_variables = c('Agricultural*')) | ||
|
||
|
||
available_regions() | ||
available_variables() | ||
|
||
|
||
|
||
|
||
################################################################################ | ||
## -- example 2 - vetting | ||
|
||
rm(list = ls()) | ||
devtools::load_all() | ||
|
||
## -- choose the project name | ||
prjname <- "examples/prj_example_vetting.dat" | ||
|
||
## -- generate the reporting dataset | ||
generate_report(prj_name = prjname, final_year = 2050) | ||
|
||
|
||
|
||
|
||
################################################################################ | ||
## -- example 3 - launch UI | ||
|
||
|
||
## A) if "report" variable is in the environment | ||
launch_gcamreport_ui(data = report) | ||
|
||
|
||
## B) from an RData dataset | ||
rm(list = ls()) | ||
devtools::load_all() | ||
|
||
## -- set the Rproj path | ||
RDataName <- "examples/prj_example_vetting_standardized.RData" | ||
|
||
## -- generate the reporting dataset | ||
launch_gcamreport_ui(data_path = RDataName) | ||
|
||
|
||
|
||
|
||
################################################################################ | ||
## -- example 4 - saving options - launching UI options - error messages | ||
|
||
rm(list = ls()) | ||
devtools::load_all() | ||
|
||
## -- set the project name | ||
prjname <- "examples/example2.dat" | ||
|
||
## -- generate the reporting dataset | ||
generate_report(prj_name = prjname, | ||
final_year = 2050, | ||
desired_regions = c('Argentina'), | ||
desired_variables = c('Agricultral*'), | ||
save_output = FALSE, | ||
launch_ui = FALSE) | ||
|
||
|
Binary file not shown.
Binary file not shown.
68 changes: 34 additions & 34 deletions
68
...ppings/A23.globaltech_capacity_factor.csv → ...CAM7.0/A23.globaltech_capacity_factor.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
# File: A23.globaltech_capacity_factor.csv,,,, | ||
# Title: Electricity technology capacity factors,,,, | ||
# Units: Unitless; ratio of generation to capacity,,,, | ||
# Source: Assumption,,,, | ||
# Electricity technology capacity factors currently just used to levelize costs,,,, | ||
# Assumed to stay constant,,,, | ||
# Changes to future capacity factors are allow and are interpolated,,,, | ||
# Column types: cccnn ,,,, | ||
# ----------,,,, | ||
supplysector,subsector,technology,1971,2100 | ||
electricity,coal,coal (conv pul),0.85,0.85 | ||
electricity,coal,coal (conv pul CCS),0.8,0.8 | ||
electricity,coal,coal (IGCC),0.8,0.8 | ||
electricity,coal,coal (IGCC CCS),0.8,0.8 | ||
electricity,gas,gas (steam/CT),0.8,0.8 | ||
electricity,gas,gas (CC),0.85,0.85 | ||
electricity,gas,gas (CC CCS),0.8,0.8 | ||
electricity,refined liquids,refined liquids (steam/CT),0.8,0.8 | ||
electricity,refined liquids,refined liquids (CC),0.85,0.85 | ||
electricity,refined liquids,refined liquids (CC CCS),0.8,0.8 | ||
electricity,biomass,biomass (conv),0.85,0.85 | ||
electricity,biomass,biomass (conv CCS),0.85,0.85 | ||
electricity,biomass,biomass (IGCC),0.8,0.8 | ||
electricity,biomass,biomass (IGCC CCS),0.8,0.8 | ||
electricity,nuclear,Gen_II_LWR,0.9,0.9 | ||
electricity,nuclear,Gen_III,0.9,0.9 | ||
electricity,wind,wind,0.37,0.37 | ||
electricity,wind,wind_storage,0.37,0.37 | ||
electricity,solar,PV,0.2,0.2 | ||
electricity,solar,PV_storage,0.2,0.2 | ||
electricity,solar,CSP,0.25,0.25 | ||
electricity,solar,CSP_storage,0.5,0.5 | ||
electricity,geothermal,geothermal,0.9,0.9 | ||
elect_td_bld,rooftop_pv,rooftop_pv,0.17,0.17 | ||
# File: A23.globaltech_capacity_factor.csv,,,, | ||
# Title: Electricity technology capacity factors,,,, | ||
# Units: Unitless; ratio of generation to capacity,,,, | ||
# Source: Assumption,,,, | ||
# Electricity technology capacity factors currently just used to levelize costs,,,, | ||
# Assumed to stay constant,,,, | ||
# Changes to future capacity factors are allow and are interpolated,,,, | ||
# Column types: cccnn ,,,, | ||
# ----------,,,, | ||
supplysector,subsector,technology,1971,2100 | ||
electricity,coal,coal (conv pul),0.85,0.85 | ||
electricity,coal,coal (conv pul CCS),0.8,0.8 | ||
electricity,coal,coal (IGCC),0.8,0.8 | ||
electricity,coal,coal (IGCC CCS),0.8,0.8 | ||
electricity,gas,gas (steam/CT),0.8,0.8 | ||
electricity,gas,gas (CC),0.85,0.85 | ||
electricity,gas,gas (CC CCS),0.8,0.8 | ||
electricity,refined liquids,refined liquids (steam/CT),0.8,0.8 | ||
electricity,refined liquids,refined liquids (CC),0.85,0.85 | ||
electricity,refined liquids,refined liquids (CC CCS),0.8,0.8 | ||
electricity,biomass,biomass (conv),0.85,0.85 | ||
electricity,biomass,biomass (conv CCS),0.85,0.85 | ||
electricity,biomass,biomass (IGCC),0.8,0.8 | ||
electricity,biomass,biomass (IGCC CCS),0.8,0.8 | ||
electricity,nuclear,Gen_II_LWR,0.9,0.9 | ||
electricity,nuclear,Gen_III,0.9,0.9 | ||
electricity,wind,wind,0.37,0.37 | ||
electricity,wind,wind_storage,0.37,0.37 | ||
electricity,solar,PV,0.2,0.2 | ||
electricity,solar,PV_storage,0.2,0.2 | ||
electricity,solar,CSP,0.25,0.25 | ||
electricity,solar,CSP_storage,0.5,0.5 | ||
electricity,geothermal,geothermal,0.9,0.9 | ||
elect_td_bld,rooftop_pv,rooftop_pv,0.17,0.17 |
Oops, something went wrong.