Skip to content

Add emission chart showing the effect of CO2 capture on the emission total - #3530

Merged
kndehaan merged 11 commits into
masterfrom
emissions-chart
Nov 24, 2026
Merged

kndehaan merged 11 commits into
masterfrom
emissions-chart

Conversation

@robindesmit-quintel

@robindesmit-quintel robindesmit-quintel commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Context

A chart that displays the contribution of CO₂ capture to direct net emissions should be added to the ETM. The columns are in agreement with the data export of direct emissions: CO2 production, CO2 capture, Other GHG emissions and Total GHG emissions. In addition, captured CO₂ is broken down by technology.

Implemented changes

  • New queries for the gross CO2 production (fossil and LULUCF).
  • New queries for the captured CO2: fossil, biogenic, DAC and LULUCF. All return negative values.
  • New query for direct_emissions_co2_net_total, which is gross CO2 production minus all captured CO2.
  • 7 *_for_direct_emissions_chart queries in the folder direct_emissions_bruto_netto_chart, referring to the queries above.

Related

Goes with pull requests:

  • etmodel: 4875
  • mechanical_turk: 234

Checklist

  • I have tested these changes
  • I have updated documentation as needed
  • I have tagged the relevant people for review

@kndehaan kndehaan changed the title Add emission chart Add emission chart showing the effect of CO2 capture on the emission total Nov 23, 2026
@kndehaan
kndehaan marked this pull request as ready for review November 23, 2026 13:59

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In the end, we decided to only include "CO2" in the "CO2 production" column. Therefore, there's no need to split out LULUCF in these queries and later sum them again in the query that is used in the chart.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Personal preferences:

  • I would create individual queries for 1) the energy nodes fossil CO2 capture and 2) the molecule nodes CO2 capture. This is because they require a different querying method (direct_co2_output_production_capture_fossil vs direct_reporting_emissions_co2_capture), which looks a bit more clear to me when queried in separate queries and then summed in one query.
  • I would subtract CO2 capture from direct air capture and LULUCF from the total by using the queries that you created for these, instead of the EXCLUDE() function. This is preferred in terms of chart logic and keeping queries as generic as possible: you're creating the individual queries for this new chart, so when exceptions or exclusions have to be done in other queries for this chart, it's good to reuse them again these queries again.
  • Minor note: we never use ML() in our queries. I'm not sure if this is a legacy attribute or if it's still validated well in the engine. I would avoid using this for now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In general for the capture-related queries: I would only just apply the NEG() function in the queries that are in the chart folder, and not in the queries that are in the general folder. The reason that we want to apply the NEG() is to show the values as negative in the dedicated chart, therefore it's more appropriate to use NEG() in the chart queries.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since in the mechanical turk test we want to check if the chart results are correct, I would use the chart queries instead of the queries from the general folder (the result will in this case not be different though).

@kndehaan
kndehaan merged commit 1d5dc85 into master Nov 24, 2026
7 checks passed
@kndehaan
kndehaan deleted the emissions-chart branch November 24, 2026 14:51
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