Skip to content

Calc output for UNFCCC non-annex-data - #841

Merged
simonkrogmann merged 2 commits into
pik-piam:masterfrom
simonkrogmann:unfccc-non-annex
Jul 29, 2026
Merged

Calc output for UNFCCC non-annex-data#841
simonkrogmann merged 2 commits into
pik-piam:masterfrom
simonkrogmann:unfccc-non-annex

Conversation

@simonkrogmann

@simonkrogmann simonkrogmann commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

This maps the data read from non-annex-1 countries in pik-piam/mrcommonsenergy#13 to remind variables. I also added aggregate variables for the annex data to match the non-annex data.

Additionally, I modified the handling of subdimensions.

@simonkrogmann
simonkrogmann requested a review from fbenke-pik July 27, 2026 09:43
@simonkrogmann simonkrogmann changed the title Calc output of UNFCCC for non-annex-data Calc output for UNFCCC non-annex-data Jul 27, 2026
@simonkrogmann
simonkrogmann requested a review from fschreyer July 27, 2026 09:50
Comment thread R/calcUNFCCC.R Outdated
Comment thread R/calcUNFCCC.R Outdated
Comment thread R/calcUNFCCC.R Outdated
@fbenke-pik

Copy link
Copy Markdown
Contributor

For additional validation, make sure that your changes don't introduce new warnings and the resulting magpie object has the correct regions, years and additional variables.

@fschreyer fschreyer left a comment

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.

Thanks! I realized that some variable names should be mapped differently. See comments below.

Comment thread inst/extdata/reportingVariables/Mapping_UNFCCC_Non_Annex.csv Outdated
Comment thread R/calcUNFCCC.R Outdated
Comment thread R/calcEmiTargetReference.R Outdated
@simonkrogmann
simonkrogmann force-pushed the unfccc-non-annex branch 2 times, most recently from 48f4fb9 to ce64a79 Compare July 28, 2026 14:53
Comment thread R/calcUNFCCC.R
@simonkrogmann
simonkrogmann requested a review from fschreyer July 29, 2026 12:06
@simonkrogmann
simonkrogmann merged commit 0685090 into pik-piam:master Jul 29, 2026
1 check passed
Comment thread R/calcUNFCCC.R
cells_and_regions = getISOlist(),
years = years,
names = names,
sets = c("region", "year", "value"),

@fbenke-pik fbenke-pik Jul 31, 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.

Calling the 3rd dimension will cause problems later on. Inputdata generation in fullVALIDATION crashes when appending the magpie object to historical.mif Just name the 3rd dimension variable as value is kinda reserved for the actual values.

"~ Argument 'value.name' should not overlap with column names in result: [Region, year, value]"

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.

3 participants