Skip to content

Adapt NDC target realization to new input data format - #2487

Open
fschreyer wants to merge 5 commits into
remindmodel:developfrom
fschreyer:NpiNDC
Open

fschreyer wants to merge 5 commits into
remindmodel:developfrom
fschreyer:NpiNDC

Conversation

@fschreyer

Copy link
Copy Markdown
Contributor

Purpose of this PR

This implements the changes from the refactoring of the NDC target preparation in pik-piam/mrremind#853.

Type of change

Indicate the items relevant for your PR by replacing ◻️ with ☑️.
Do not delete any lines. This makes it easier to understand which areas are affected by your changes and which are not.

Parts concerned

  • ☑️ GAMS Code
  • ◻️ R-scripts
  • ◻️ Documentation (GAMS incode documentation, comments, tutorials)
  • ◻️ Input data / CES parameters
  • ◻️ Tests, CI/CD (continuous integration/deployment)
  • ◻️ Configuration (switches in main.gms, default.cfg, and scenario_config*.csv files)
  • ◻️ Other (please give a description)

Impact

  • ◻️ Bug fix
  • ☑️ Refactoring
  • ◻️ New feature
  • ◻️ Change of parameter values or input data (including CES parameters)
  • ◻️ Minor change (default scenarios show only small differences)
  • ◻️ Fundamental change of results of default scenarios

Checklist

Do not delete any line. Leave unfinished elements unchecked so others know how far along you are.
In the end all checkboxes must be ticked before you can merge
.

  • I executed the automated model tests (make test) after my final commit and all tests pass (FAIL 0)
  • I adjusted the reporting in remind2 if and where it was needed
  • I adjusted the madrat packages (mrremind and other packages involved) for input data generation if and where it was needed
  • My code follows the coding etiquette
  • I explained my changes within the PR, particularly in hard-to-understand areas
  • I checked that the in-code documentation is up-to-date
  • I adjusted forbiddenColumnNames in readCheckScenarioConfig.R in case the PR leads to deprecated switches
  • I updated the CHANGELOG.md correctly (added, changed, fixed, removed, input data/calibration)

Further information (optional)

  • Runs with these changes are here:

  • Comparison of results (what changes by this PR?):
    /p/tmp/schreyer/Modeling/remind/Dev1/compScen-NDC_Refac-2026-09-29_10.09.50-H12-to2050.pdf

Very minor deviations that seem random (US coal power). Same targets and carbon prices.

Comment thread modules/40_techpol/NDC/datainput.gms Outdated
*** Quick patch: cm_NDC_version switch was removed (PBL 2026 NDC inputs carry no version dimension).
*** Local set mirrors the version members present in the input file; assignments are hard-coded
*** to "2024_cond" (latest version in the file, previous default of the removed switch) until module 40 is cleaned up.
Set NDC_version "NDC data versions present in input file"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Doesn't this violate the naming convention for sets in modules?

@@ -1,2 +1,2 @@
fm_shareTarget.cs3r
fm_EmiTargetAbs.cs3r No newline at end of file
fm_shareTarget.cs4r

@fbenke-pik fbenke-pik Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here, these files would have to be renamed if they are only used in this module, no?

…rgets in all techpol realizations as UNFCCC capacity targets are outdated
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