Skip to content
Snippets Groups Projects
Commit ce6ba5a4 authored by Marianna Rottoli's avatar Marianna Rottoli
Browse files

Calibration settings minor adjustments and bugfix.

parent f92f7ff0
No related branches found
No related tags found
1 merge request!159Pullreq1
......@@ -272,8 +272,8 @@ pm_cesdata(t,regi,in,"quantity") $ p29_esdemand(t,regi,"%cm_GDPscen%",in)
*** Load exogenous transport demand - required for the EDGE transport module
$ifthen.edgesm %transport% == "edge_esm"
pm_cesdata(t,regi,in,"quantity") $ p29_trpdemand(t,regi,"%cm_GDPscen%",in)
= p29_trpdemand(t,regi,"%cm_GDPscen%",in);
pm_cesdata(t,regi,in,"quantity") $ p29_trpdemand(t,regi,"%cm_GDPscen%","%cm_EDGEtr_scen%", in)
= p29_trpdemand(t,regi,"%cm_GDPscen%", "%cm_EDGEtr_scen%", in);
$endif.edgesm
*** Load capital quantities
......
......@@ -6,5 +6,8 @@
*** | Contact: remind@pik-potsdam.de
*** SOF ./modules/35_transport/edge_esm/output.gms
Execute "Rscript EDGE_transport.R --reporting";
$ifthen.calibrate %CES_parameters% == "load"
Execute "Rscript EDGE_transport.R --reporting";
$endif.calibrate
*** EOF ./modules/35_transport/edge_esm/output.gms
......@@ -227,6 +227,13 @@ prepare <- function() {
# create_ExogSameAsPrevious_CO2price_file(as.character(cfg$files2export$start["input_ref.gdx"]))
#}
# select demand pathway for transportation: options are conv (conventional demand pathway) and wise (wiseways, limited demand)
if(grepl("Wise", cfg$gms$cm_EDGEtr_scen)){
demTrsp = "wise"
} else {
demTrsp = "conv"
}
# Calculate CES configuration string
cfg$gms$cm_CES_configuration <- paste0("stat_",cfg$gms$stationary,"-",
"indu_",cfg$gms$industry,"-",
......@@ -235,6 +242,7 @@ prepare <- function() {
"POP_", cfg$gms$cm_POPscen, "-",
"GDP_", cfg$gms$cm_GDPscen, "-",
"Kap_", cfg$gms$capitalMarket, "-",
"demTrsp_", demTrsp, "-",
"Reg_", substr(regionscode(cfg$regionmapping),1,10))
# write name of corresponding CES file to datainput.gms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment