Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
remind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jerome Hilaire
remind
Commits
543303c7
Commit
543303c7
authored
4 years ago
by
Felix Schreyer
Browse files
Options
Downloads
Patches
Plain Diff
update reporting scripts to incorporate new LCOE output file and plot option
parent
e435acbc
No related branches found
No related tags found
1 merge request
!190
update reporting scripts to incorporate new LCOE output file and plot…
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/output/single/LCOEPlot.R
+9
-4
9 additions, 4 deletions
scripts/output/single/LCOEPlot.R
scripts/output/single/reporting.R
+3
-3
3 additions, 3 deletions
scripts/output/single/reporting.R
with
12 additions
and
7 deletions
scripts/output/single/LCOEPlot.R
+
9
−
4
View file @
543303c7
...
...
@@ -9,22 +9,27 @@ library(lucode)
library
(
remind
)
library
(
lusweave
)
############################# BASIC CONFIGURATION #############################
gdx_name
<-
"fulldata.gdx"
# name of the gdx
if
(
!
exists
(
"source_include"
))
{
#Define arguments that can be read from command line
outputdir
<-
c
(
"C:/work/REMIND_tests/Trunk_latest/output/BAU_Nash
_201
9-0
2-
1
3_1
2.27.58"
);
outputdir
<-
"output/R17IH_SSP2_postIIASA-26
_201
6-1
2-
2
3_1
6.03.23"
# path to the output folder
# path to the output folder
lucode
::
readArgs
(
"outputdir"
)
lucode
::
readArgs
(
"outputdir"
,
"gdx_name"
)
}
gdx
<-
path
(
outputdir
,
gdx_name
)
###############################################################################
# Set mif path
scenNames
<-
getScenNames
(
outputdir
)
mif_path
<-
path
(
outputdir
,
paste
(
"REMIND_LCOE_"
,
scenNames
,
".mif"
,
sep
=
""
))
LCOE_path
<-
path
(
outputdir
,
paste
(
"REMIND_LCOE_"
,
scenNames
,
".csv"
,
sep
=
""
))
reportFile
<-
path
(
outputdir
,
paste
(
"LCOE_Plot_"
,
scenNames
,
".pdf"
,
sep
=
""
))
# run plot LCOE function
plotLCOE
(
mif
_path
)
plotLCOE
(
LCOE
_path
,
gdx
,
fileName
=
reportFile
)
This diff is collapsed.
Click to expand it.
scripts/output/single/reporting.R
+
3
−
3
View file @
543303c7
...
...
@@ -28,7 +28,7 @@ scenario <- getScenNames(outputdir)
# paths of the reporting files
remind_reporting_file
<-
path
(
outputdir
,
paste0
(
"REMIND_generic_"
,
scenario
,
".mif"
))
magicc_reporting_file
<-
path
(
outputdir
,
paste0
(
"REMIND_climate_"
,
scenario
,
".mif"
))
LCOE_reporting_file
<-
path
(
outputdir
,
paste0
(
"REMIND_LCOE_"
,
scenario
,
".
mif
"
))
LCOE_reporting_file
<-
path
(
outputdir
,
paste0
(
"REMIND_LCOE_"
,
scenario
,
".
csv
"
))
# produce REMIND reporting *.mif based on gdx information
tmp
<-
try
(
convGDX2MIF
(
gdx
,
gdx_ref
,
file
=
remind_reporting_file
,
scenario
=
scenario
))
# try to execute convGDX2MIF
...
...
@@ -57,6 +57,6 @@ if(file.exists(file.path(outputdir, "EDGE-T"))){
reportEDGETransport
(
outputdir
)
}
# produce REMIND LCOE reporting *.
mif
based on gdx information
tmp
<-
try
(
convGDX2
MIF
_LCOE
(
gdx
,
gdx_ref
,
file
=
LCOE_reporting_file
,
scen
ario
=
scenario
))
# execute convGDX2MIF_LCOE
# produce REMIND LCOE reporting *.
csv
based on gdx information
tmp
<-
try
(
convGDX2
CSV
_LCOE
(
gdx
,
file
=
LCOE_reporting_file
,
scen
=
scenario
))
# execute convGDX2MIF_LCOE
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment