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

Update electricity impact factors #294

Open
demeringo opened this issue Jun 14, 2024 · 2 comments
Open

Update electricity impact factors #294

demeringo opened this issue Jun 14, 2024 · 2 comments
Labels

Comments

@demeringo
Copy link
Collaborator

demeringo commented Jun 14, 2024

Problem

The documentation states that for usage impacts, the PE factor comes from IRENA (2016).
API doc link https://doc.api.boavizta.org/Explanations/usage/elec_factors/

However the wikipedia article states that data is from 2021 (which I also remember from our past exchanges).
https://en.wikipedia.org/wiki/List_of_countries_by_renewable_electricity_production

We are likely serving slightly outdated factors.

Solution

Short term:

  • update factors with latest data avaialble (likely 2021)

Long term:

  • discuss a way we could ease it or automate it.

Alternatives

Workaround 1: use a custom version of API with updated factors

Workaround 2: pass directly custom factors when calling the API

Additional context or elements

  • Factors are defined in boaviztapi/boaviztapi/data/crowdsourcing/electrical_mix.csv

  • Adrien mentions that the data was likely extracted from the source DB using SQL query that mentions 2016.

Linked issue is

#117

@jnioche
Copy link

jnioche commented Nov 9, 2024

It would be good to both update the factors but also have an option for users to pass the factors they want to use to the API; this would give a lot of flexibility

@da-ekchajzer
Copy link
Collaborator

This feature exist but not well documented : https://doc.api.boavizta.org/Reference/format/usage

{
 "usage": {
   "usage_location": "FRA",
   "avg_power": 120,
   "elec_factors": {
     "gwp": 0.1
   }
 }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants