Skip to content

Store IEA energy balance info in structure files #136

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

Open
khaeru opened this issue Oct 24, 2023 · 1 comment
Open

Store IEA energy balance info in structure files #136

khaeru opened this issue Oct 24, 2023 · 1 comment
Labels
enh New features or functionality structure Infomation and metadata about model structure

Comments

@khaeru
Copy link
Member

khaeru commented Oct 24, 2023

We use various files like commodity.yaml, node/R12.yaml, to store code lists: these are lists of codes with an identifier R12_AFR, name, description, and 0 or more annotations. For instance:

coal:
name: Coal
units: GWa
report: Solids|Fossil
# NB same value as "Coking coal"; this choice is arbitrary
# NB in message_doc, this appears as "Hard coal", but this
# term usually refers to anthracite, which has a higher
# carbon emission factor.
ipcc-1996-name: "Other Bituminous Coal"

These annotations carry precise information about each code that can be directly usable in preparing model structure and data. In this case, the ipcc-1996-name: annotation gives the exact name that appears in a particular data source. This is a simple, clear, and unambiguous statement that a certain external name/code/ID should be used in correspondence with c=coal.

In particular, the IEA (extended) energy balances have particular code lists for concepts named FLOW and PRODUCT; these are dimensions in the data.

To do:

  • Establish an ID and form for annotations that give correspondence between MESSAGEix-GLOBIOM codes and those appearing in IEA (E)EB. For instance, something like:

    solar_pv_ppl:
      name: solar_pv_ppl
      description: Solar photovoltaic power plant (no storage)
      # ...
      iea-eb:
      - {PRODUCT: elect.output in gwh, FLOW: solar PV}
  • Update the existing code lists with these annotations.

  • Provide or extend tools that read this structural information from the code lists and prepare Python data structures that are needed for other operations; in particular for converting the IEA (E)WEB data to form(s) needed by MESSAGEix-GLOBIOM.

  • Provide or extend tools for writing these structures out for convenience/reference, for instance in a form similar to the “Excel mapping files” that are sometimes used.

cf. iiasa/message_data#505

@khaeru khaeru added the enh New features or functionality label Oct 24, 2023
@khaeru khaeru changed the title Store IEA energy balance information in structure files Store IEA energy balance info in structure files Oct 24, 2023
@khaeru khaeru added the structure Infomation and metadata about model structure label Oct 25, 2023
@khaeru
Copy link
Member Author

khaeru commented Jan 29, 2024

This was partly addressed in #75; see for instance:

ethanol:
name: Ethanol
units: GWa
report: Liquids|Biomass
iea-eweb-product: [BIODIESEL, BIOGASOL, BIOJETKERO, OBIOLIQ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enh New features or functionality structure Infomation and metadata about model structure
Projects
None yet
Development

No branches or pull requests

1 participant