Giter VIP home page Giter VIP logo

Comments (5)

corradio avatar corradio commented on July 21, 2024 1

But how should we handle it when some of the scientific sources we use have higher precision?

Good point - I think this could be an exception.

from electricitymaps-contrib.

w-flo avatar w-flo commented on July 21, 2024 1

I don't think these need to be rounded in the config file if they're just intermediate results from some calculation like the ETS/ENTSO-E mapping. Otherwise, you could argue that before starting the emission factor calculation, total emissions and total electricity generation of each plant should be rounded as well, and then round those intermediate emission factors of power plants before combining them for the country factor. So IMHO, intermediate values should be stored in high precision. (Of course we don't really need 7 decimal places, but I wouldn't say that's something that needs fixing either.)

When emission factors are displayed in the app / website for public consumption though, they should always be rounded in some way of course, to avoid the misleading impression. I believe that's already implemented everywhere?

from electricitymaps-contrib.

VIKTORVAV99 avatar VIKTORVAV99 commented on July 21, 2024 1

I don't think these need to be rounded in the config file if they're just intermediate results from some calculation like the ETS/ENTSO-E mapping. Otherwise, you could argue that before starting the emission factor calculation, total emissions and total electricity generation of each plant should be rounded as well, and then round those intermediate emission factors of power plants before combining them for the country factor. So IMHO, intermediate values should be stored in high precision. (Of course we don't really need 7 decimal places, but I wouldn't say that's something that needs fixing either.)

When emission factors are displayed in the app / website for public consumption though, they should always be rounded in some way of course, to avoid the misleading impression. I believe that's already implemented everywhere?

Thanks for your view and insights, and yes they are already rounded in the frontend.

And I suppose an argument could be made that these values are actually highly accurate (not accounting for floating point errors) but are missing some source data (not all plants have emissions reported and vice versa) which makes the derived value "wrong" but accurate.

from electricitymaps-contrib.

VIKTORVAV99 avatar VIKTORVAV99 commented on July 21, 2024

I think rounding to the whole number makes the most sense, at least for our calculated numbers, otherwise things might be even weirder since nuclear currently is below 10g for most of Europe.

But how should we handle it when some of the scientific sources we use have higher precision?

from electricitymaps-contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.