Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply shift in investment variables #664

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

fbenke-pik
Copy link
Contributor

@fbenke-pik fbenke-pik commented Oct 7, 2024

This PR is a follow-up to remindmodel/remind#1238

It applies a time shift to the following investment-related variables: vm_deltaCap, vm_costInvTeDir and vm_costInvTeAdj, affecting the variables New Cap|..., Cumulative Cap|..., Energy Investments|... and Total Energy costs|...

Validation:

@fbenke-pik fbenke-pik changed the title clean up plotLCOE.R Apply shift in investment variables Oct 7, 2024
Copy link
Contributor

@orichters orichters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for implementing that. I have some small comments scrolling through the PR, but have no time to look deeper. Do you have some comparison plots of old vs. new for these variables? I think that would be helpful to see whether the smoothing works and the variables still have the same order of magnitude. Regarding the fixing, I have lots of trust into piamInterfaces::fixOnRef :)

@@ -10,6 +10,8 @@
#' be created.
#' @param t temporal resolution of the reporting, default:
#' t=c(seq(2005,2060,5),seq(2070,2110,10),2130,2150)
#' @param gdx_ref a GDX object as created by readGDX, or the path to a gdx of the reference run.
#' It is used to guarantee consistency for Moving Avg prices before cm_startyear
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#' It is used to guarantee consistency for Moving Avg prices before cm_startyear
#' It is used to guarantee consistency before cm_startyear for Capacity variables where some time-averaging is used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has been adjusted

R/reportLCOE.R Outdated
@@ -20,6 +20,8 @@
#' Can be either "average" (returns only average LCOE),
#' "marginal" (returns only marginal LCOE), "both" (returns marginal and average LCOE) and
#' and "marginal detail" (returns table to trace back how marginal LCOE are calculated).
#' @param gdx_ref a GDX object as created by readGDX, or the path to a gdx of the reference run.
#' It is used to guarantee consistency for Moving Avg prices before cm_startyear
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really prices here, or is that copied from reportPrices?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has been adjusted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants