Skip to content

Climate correction - #803

Open
hagento wants to merge 2 commits into
pik-piam:masterfrom
hagento:climateCorrection
Open

Climate correction#803
hagento wants to merge 2 commits into
pik-piam:masterfrom
hagento:climateCorrection

Conversation

@hagento

@hagento hagento commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Purpose of this PR

This PR applies climate correction factors to the final energy (FE) and useful energy (UE) demand calculations for buildings in the reportFE function. This is specifically necessary if cm_climateCorrection == on in REMIND (see PR ...).

Changes

  • Reads pm_climateCorrection parameter from GDX file (exists if cm_climateCorrection == on, otherwise returns NULL)
  • Applies climate correction to buildings FE demand by:
    • Removing offset quantities from raw CES inputs
    • Multiplying by climate correction factor
    • Re-adding offset quantities
  • Uses climate-corrected FE values for calculating UE demand with efficiency factors

Impact

Buildings FE and UE reporting now properly reflects climate-adjusted energy demand, ensuring that reported values match the actual energy demand calculated in the model (vm_demFeSector) which includes climate corrections.

You can find a reporting comparing SSP2-NPi2025 with and without climate correction here: /p/tmp/hagento/dev/REMIND/climateCorrection/remind/compScen-climateCorrection-2026-06-09_13.41.26-H12.pdf

Checklist:

I checked the tests when running buildLibrary and made sure that my changes

  • do not create new complaints about summation checks.
  • do not create new complaints about missing variables that are expected in the piamInterfaces package. (If needed, adjust piamInterfaces mappings based on the README.md. In case of complaints unrelated to your changes that you are unable to fix, please open an issue in piamInterfaces.)

@hagento
hagento requested a review from robinhasse June 9, 2026 12:39
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.

1 participant