Skip to content
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

Improve calculation of the share of electricity in primary energy #2196

Merged
merged 3 commits into from
Jan 22, 2024

Conversation

pabloarosado
Copy link
Contributor

@pabloarosado pabloarosado commented Jan 18, 2024

We currently calculate the share of electricity in primary energy consumption (shown in this chart) as simply dividing the total electricity generation by primary energy consumption.
However, primary energy consumption (from the Statistical Review of World Energy) is defined in "input-equivalents" (what we usually call the substitution method). This means that non-fossil electricity sources (nuclear, hydro, solar, wind, bioenergy and other renewables) are inflated to mimic the inefficiencies of fossil fuels. To achieve that, the Statistical Review divides the electricity generation of non-fossil sources by an efficiency factor (which is roughly between 0.3 and 0.5).

Therefore, currently, our share of electricity in primary energy is underestimated. We claim in the subtitle that we use the substitution method, but we only do this in the denominator, not in the numerator.

This PR does the calculation of the share of electricity in primary energy properly:
100 * (((electricity generated by non-fossil sources) / efficiency factor) + (electricity generated by fossil fuels) ) / (primary energy consumption)

An alternative would be to estimate the direct primary energy consumption (not using the substitution method), and then simply divide total generation by direct primary energy consumption. This is also possible, but since we use the substitution method in most charts showing primary energy, it makes sense to use it here too.

To clarify, the affected chart (also included in the energy explorer) will barely be affected for countries that rely mostly on fossil fuels. But for countries that have a big share of renewables and nuclear, the change can be significant. One of the most significant examples is Norway. Here's the comparison of the old (currently in production) and new (this PR) indicator:
newplot
And the missing points in the new curve happen because we don't have electricity generation disaggregated by source for all countries and years (for which we do have total electricity generation and primary energy consumption).

@pabloarosado pabloarosado self-assigned this Jan 18, 2024
@pabloarosado pabloarosado requested a review from spoonerf January 18, 2024 15:00
@pabloarosado pabloarosado marked this pull request as ready for review January 18, 2024 15:00
Copy link
Contributor

@spoonerf spoonerf left a comment

Choose a reason for hiding this comment

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

Looks good!

I'm curious what motivated the change? The before and after maps do look quite different and I'm wondering if we will get some questions from users regarding the rather large and sudden (not part of a data update) change?

Screenshot 2024-01-19 at 09 12 18

@HannahRitchie
Copy link

Thanks a lot for this @pabloarosado.

I agree: the share here should be calculated as electricity's share of direct primary energy (not adjusted for input equivalents).

The alternative way of correcting for this – that you've used – makes sense.

I'm wondering if the mention of the substitution method in the subtitle is confusing. Again, people might wonder whether both or just one variable has been adjusted.

Maybe just Measured as a percentage of total primary energy from all sources. works better?

Either way, I'm happy for this to go through. As Fiona mentions, we should be ready to answer any queries that we might get in about why some values have changed so much.

@pabloarosado pabloarosado merged commit 7bb3d67 into master Jan 22, 2024
4 checks passed
@pabloarosado pabloarosado deleted the improve-share-of-electricity-in-energy branch January 22, 2024 08:51
@pabloarosado pabloarosado restored the improve-share-of-electricity-in-energy branch January 22, 2024 09:40
@pabloarosado pabloarosado deleted the improve-share-of-electricity-in-energy branch June 14, 2024 09:16
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