electricitymaps / bloom-contrib

Making carbon footprint data available to everyone.
https://www.bloomclimate.com
MIT License
436 stars 104 forks source link

Improve flight model by adding fuel consumption curve by aircraft type #271

Open martincollignon opened 4 years ago

martincollignon commented 4 years ago

Data found here: https://www.eea.europa.eu/publications/emep-eea-guidebook-2019/part-b-sectoral-guidance-chapters/1-energy/1-a-combustion/1-a-3-a-aviation-1/view

alixunderplatz commented 4 years ago

Great dataset to cover most of the worlds commercial flights!!! :) It could be connected with highly detailled flight data from services like https://www.flightradar24.com/ (there are other data providers, too, afaik) for individual flights. Thinking in another direction, I can imagine this could become something real-time like "the electricityMap for flying" by showing the approximated CO2_eq emissions of each flight as a trail behind the airplanes ;)

andrewb39 commented 4 years ago

@martincollignon I'd love to help with this issue if possible

martincollignon commented 4 years ago

@andrewb39 go ahead! @ayakoaohara there is still #273 and #250 ;-)

martincollignon commented 4 years ago

Other source here: @andrewb39

https://www.icao.int/environmental-protection/CORSIA/CERTTool/ICAO%20CORSIA%20CERT%20version%202019%20-%20Design,%20Development%20and%20Validation.pdf

martincollignon commented 4 years ago

@andrewb39 are you on it? :)

pierresegonne commented 4 years ago

@martincollignon is there one data source that should be preferred over the other?

From what I see:

Source Pros Cons
EAA Excel File, so could automate Uses some macro and might prevent easy scripting
ICAO UN dependent, so might be more accurate? Pdf (-> there might be a database somewhere?)
martincollignon commented 4 years ago

definitely more EAA actually - there are a few models where we may need ICAO though. it'd be interesting to see if there is a massive difference.

On Wed, 11 Mar 2020 at 22:38, Pierre Segonne notifications@github.com wrote:

@martincollignon https://github.com/martincollignon is there one data source that should be preferred over the other?

From what I see: Source Pros Cons EAA Excel File, so could automate Uses some macro and might prevent easy scripting ICAO UN dependent, so might be more accurate? Pdf (-> there might be a database somewhere?)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tmrowco/northapp-contrib/issues/271#issuecomment-597890925, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT333QK6ZYY3JEDKRZ4VILRHAAFJANCNFSM4JYK476A .

NoamAv1 commented 4 years ago

I would like to help if still needed @martincollignon :) (First-timer)

martincollignon commented 4 years ago

Great to see so many people helping! When do you think you can work on it?

NoamAv1 commented 4 years ago

@martincollignon From tomorrow morning I can start

martincollignon commented 4 years ago

Sounds perfect! Go ahead!

On Tue, Mar 17, 2020, 21:48 NoamAv1 notifications@github.com wrote:

@martincollignon https://github.com/martincollignon From tomorrow morning I can start

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tmrowco/northapp-contrib/issues/271#issuecomment-600289625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT333SIT4FF5DQNW5P7TF3RH7O3JANCNFSM4JYK476A .

NoamAv1 commented 4 years ago

Hey, just made a json file for the fuel burn by the aircraft type, is it okay? Here

martincollignon commented 4 years ago

Hi @NoamAv1 ! Good first pass. What we would actually need is the function of fuel consumption by distance by plane model.

The fuel consumption is currently determined by this function: https://github.com/tmrowco/northapp-contrib/blob/master/co2eq/flights/index.js#L77 : ((a(isShortHaul) distance distance) + (b(isShortHaul) * distance) + c(isShortHaul))

This function needs to be changed so it accepts an optional plane model to take into account the actual plane model's fuel consumption depending on distance in kilometer.

The function ((a(isShortHaul) distance distance) + (b(isShortHaul) * distance) + c(isShortHaul)) will still be used as a fallback.

NoamAv1 commented 4 years ago

Hey @martincollignon , I started not long ago my semester so I could get to work on it but now I'm available to work again I couldn't really figure from where I can see what variables I need for the function and what is the calculation for this function I looked at both of those files and couldn't really figure it out by myself. We can continue the talk in private if you would like to :)

pierresegonne commented 4 years ago

Any update on this? Does the activity contain any information about the plane model? If no is there a plan to include it and what needs to be done for it to happen? @martincollignon

martincollignon commented 4 years ago

We would need to add a plane model variable within the activity model. I actually do not know whether there is this data coming from for example Tripit, Ryanair or others.