Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
75 stars 25 forks source link

Update electricity impact factors #294

Open demeringo opened 5 months ago

demeringo commented 5 months ago

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:

Long term:

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

Linked issue is

https://github.com/Boavizta/boaviztapi/issues/117

jnioche commented 1 week ago

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 commented 1 week ago

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
   }
 }
}