electricitymaps / electricitymaps-contrib

A real-time visualisation of the CO2 emissions of electricity consumption
https://app.electricitymaps.com
GNU Affero General Public License v3.0
3.57k stars 944 forks source link

Split Sweden to bidding zones #1397

Closed tmslaine closed 2 years ago

tmslaine commented 6 years ago

This is not exactly compliant with the 'keep calculations to minimum' policy, but it might be possible to show a generation mix for Swedish bidding zones.

Moreover, based on statistics by Svenska kraftnät at https://www.svk.se/aktorsportalen/elmarknad/statistik/ we can deduce:

Then to calculating hydro and thermal generation for each zone:

The remaining problem is to solve the hydro-to-unknown ratios for SE3 and SE4:

maxbellec commented 6 years ago

This is awesome, thanks a lot for this. We really want to push regional consumptions as much as possible, even if it means a bit more calculations.

I'll submit a PR soon. ENTSOE publishes onshore wind per zone, but do you know if SE has any offshore wind that might not be published?

Notes for me:

tmslaine commented 6 years ago

Some comparison from last year between what ENTSO-E reports as onshore and what the local TSO Svenska kraftnät has as total wind production for the bidding zones, seems to be pretty much one-to-one: se1 se2 se3 se4

maxbellec commented 6 years ago

great, thanks for checking this. I hope to publish the PR tomorrow or early next week

maxbellec commented 6 years ago

After looking a bit more in details and almost implementing it, I think we can split all zones. There's not a lot of thermal anyway, so we won't be far from the truth by putting some of the remaining unkown from SE3 + SE4 in both of them. It'd be nice to still have a reasonable rule. If we could know the capacities or annual production of thermal plants in SE3 and SE4 we'd get a good ratio.

brunolajoie commented 6 years ago

This interactive map of power plant might help you check where are the power plants in each bidding zones

maxbellec commented 6 years ago

Looking at this power plant database : http://datasets.wri.org/dataset/globalpowerplantdatabase there's only 12 non hydro, wind, nuclear power plants in Sweden. Let's just take as a proportion the estimated generation in SE3 vs estimated generation in SE4. I'll look tomorrow which power plants correspond to which zones

screenshot at 2018-05-10 23-23-42

maxbellec commented 6 years ago

(BTW, @alixunderplatz I'm sure you're going to like this thread)

maxbellec commented 6 years ago

All but one power plant (that's in SE-SE4) have a 57.7 < latitude < 59.9, so are in SE-SE3. The power plant in SE-SE4 has a very high capacity of 400MW but an annual estimated generation of 135GWh, which corresponds to an average load factor of 3%. This annual estimate generation is around 1% of SE's "unknown" generation, so if these numbers are True, we'd put 1% of unknown in SE-SE4 and the 99% remaining in SE-SE3. But I have some doubt about these numbers, the load factor of 3% seems quite low. What's your opinion @brunolajoie? screenshot at 2018-05-11 09-05-44

maxbellec commented 6 years ago

actually, it seems very unlikely that Nya Öresundsverket in SE-SE4 has a low generation, as it's relatively new (2009). And Wikipedia says there's another large power plant in SE-SE4, Karlshamn, that has a capacity of 665 MW and burns oil, but this one's quite old. https://de.wikipedia.org/wiki/Liste_von_Kraftwerken_in_Schweden

Another source is the ENTSOE generation per unit. Most of SE-SE3 is reported (but not everything), and none of SE-SE4 is reported (and Karlshamm is missing).

screenshot at 2018-05-11 10-14-26 screenshot at 2018-05-11 10-14-08

maxbellec commented 6 years ago

I couldn't find any source of the annual production of any of Karlshamn and Nya Öresundsverket. They could both have a large impact on SE-SE4 carbon intensity, so it'd be great to get some numbers. If anyone can help, that would be great

alixunderplatz commented 6 years ago

"When the Öresund plant was projected, Eon calculated that the municipality of Lund would take its district heating from the plant. This has not happened and Öresundsverket has an overcapacity that Eon uses to produce electricity, which the critics claim increases the emissions. And any change does not seem to be going on."

https://sverigesradio.se/sida/artikel.aspx?programid=96&artikel=5470383

maxbellec commented 6 years ago

interesting. They still mention everywhere that it does cogeneration

alixunderplatz commented 6 years ago

@maxbellec the link I gave is from 2013, maybe the info is incomplete regarding district heating.

Here are some figures for uniper's assets in Sweden. They report a capacity for gas of 949 MW. The additional 500 MW come from gas turbines that are distributed over the country (I have not looked into the zones)

https://www.uniper.energy/sverige/reservkraft/gasturbiner

The gas turbines are located in Malmö, Barsebäck, Karlshamn and Halmstad and have a combined power of approximately 500 MW."

Total capacity factor for the gas assets in Sweden was around 6% in 2014 and 8.5% in 2015, so your 3% for Öresundsverket seem valid. I guess that it also depends on water levels in the reservoirs and nuclear availability. Note that the URL structure on uniper's website lists it under "reservkraft", as well as Karlshamn.^^ https://www.uniper.energy/sverige/reservkraft/oresundsverket

This PDF has some info on production: https://ir.uniper.energy/download/companies/uniperag/VeranstaltungenDownloads/uniper_equity_story_appendix_generation_assets.pdf

image

Karlshamn is only used as reserve/backup power, so no worries about that one. One unit was closed after 2014, output was 0 TWh between 2013-2015. https://www.uniper.energy/sverige/reservkraft/karlshamnsverket

image

maxbellec commented 6 years ago

The 3% was the load factor of Öresundsverket, by that I meant the total annual generation is 3% of what it would be if it was generating 400MW the whole time, which I don't believe can be true (0.13Twh during the whole year for half the country's capacity).

Given there's 440MW in SE-SE4 (Nya Öresundsverket) and 996 in the whole country, does splitting the remaining unknown in half between SE-SE4 and SE-SE3 seem reasonable? @brunolajoie @tmslaine @alixunderplatz?

tmslaine commented 6 years ago

While Svenska Kraftnät have not published their annual figures for 2017 as of yet (they are aiming to do it this month) this is what I got from their 2010-2016 annual statistics, units are GWh/year. Source : Arkiverade dokument, Elområde 3 (SN3) - statistik per månad 2016 etc.

SE3 Nuclear Wind Hydro Solar GT & diesel Other thermal Unknown
2010 55777 1421 11838 - 43 7321 11
2011 58146 2726 10960 - 64 6169 11
2012 61621 3266 12928 1 55 5276 10
2013 63843 4024 8851 2 25 5163 10
2014 62284 4468 12511 8 29 4076 3
2015 54496 6121 12539 19 49 4172 0
2016 60676 5561 9260 33 15 4786 0
2017 - - - - - - -
SE4 Nuclear Wind Hydro Solar GT & diesel Other thermal Unknown
2010 - 1270 1762 - 120 3892 1
2011 - 1879 1940 - 80 2496 1
2012 - 2204 1853 - 33 1858 1
2013 - 2837 1202 1 14 1971 2
2014 - 3489 1508 4 5 1629 2
2015 - 4185 1375 8 5 1860 2
2016 - 3844 1044 15 4 1844 2
2017 - - - - - - -

Grouping Solar, GT & diesel, Other thermal and Unknown together we have

Unknown SE3 SE4 SE4 / (SE3+SE4)
2010 7375 4013 35.2%
2011 6244 2577 29.2%
2012 5342 1892 26.2%
2013 5200 1988 27.6%
2014 4116 1640 28.4%
2015 4240 1875 30.7%
2016 4834 1865 27.8%
2017 - - -

Thus, the remaining unknown generation seems to be roughly 70% SE3, 30% SE4.

brunolajoie commented 6 years ago

70/30 seems like a reasonable assumption then!

maxbellec commented 6 years ago

that more precise @tmslaine, thanks for the investigation. I'll submit in the next days

maxbellec commented 6 years ago

As a summary:

Data we have

Some stats

Exact (assuming input data is right) data we can get

What we could do and what the margin of error is

For SE3 and SE4, two solutions

maxbellec commented 6 years ago

from the summary, if we accept a few percents off, it's safe to split SE into SE1, SE2 and SE3-4. Splitting SE3-4 into SE3 and SE4 could lead to too big errors so we should probably avoid it. Unless we know that thermal production is very correlated in SE3 and SE4.

brunolajoie commented 6 years ago

Merging SE3-4 seems a reasonable choice then, until we have an idea of the correlation factor between SE3 and SE4 unknown output. Anyone else has a different opinion on that?

corradio commented 6 years ago

Thanks for the summary @maxbellec. I still think we are doing a lot of assumptions. I'd like to have this validated by some Swedish experts in order to know whether or not our reasoning holds. @brunolajoie do you remember who we can ask for help? Maybe @magol ?

Maggus71 commented 6 years ago

Just one comment regarding the issue of combining SE3 and SE4, I´m not sure if it´s relevant in this stage, but the big difference between these two bidding areas is that SE3 is more or less in balance when it comes to production and consumption of energy, but in SE4 there is not enough production to cover the consumption. So therefore SE4 needs to import energy on a daily basis to cover the difference. So if you combine the two, it will not really be possible to show the consumer what kind of electricity they are using. I would suggest that you keep them separated.

brunolajoie commented 6 years ago

Thanks for the tips @Maggus71.

It would be nice to split SE3 and SE4 indeed, but:

If we split them, we then have to assume that thermal power plants in SE3 and SE4 are always activated simultaneously.

Is that better or worse than grouping the two of them, to your opinion?

Maggus71 commented 6 years ago

There is no simple yes or no answer to that question. I spent a little more than a month crunching the production numbers for the four bidding areas last year. I have my material at home and can look into it late this afternoon. Ok?

H?mta Outlook f?r iOShttps://aka.ms/o0ukef

On Mon, May 14, 2018 at 10:05 PM +0200, "Bruno Lajoie" notifications@github.com<mailto:notifications@github.com> wrote:

Thanks for the tips @Maggus71https://github.com/Maggus71.

It would be nice to split SE3 and SE4 indeed, but:

If we split them, we then have to assume that thermal power plants in SE3 and SE4 are activated simultaneously.

Is that better or worse than grouping the two of them, to your opinion?

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/tmrowco/electricitymap/issues/1397#issuecomment-388943295, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AldEVLkp2z3POpzBlWAb7bXGd6xSnjg4ks5tyeJLgaJpZM4T52g0.

maxbellec commented 6 years ago

sounds great @Maggus71, we have no hurries here anyway. Better wait and only publish correct data .

Maggus71 commented 6 years ago

skarmklipp 2018-05-15 21 34 54 This is a translation of the installed effect in the four bidding areas. It is very important to understand that this is not the same thing as the production mix in the different areas. The reason is that some installed effect is only used for back up during peak hours (Thermal and gas turbines), the CHP district heating is mainly used during the cold winter season, aprox 15 November-15 Mars. So the production mix in december differs a lot from the production mix in July. The production mix is also effected by the industrys demand for and production of electricity. So for this reason you can not use an production average for the whole year, you need to set one winter average and one summer average. The installed production mix will change during this year since more wind will be installed, one nuclear reaction will be closed and some of the thermal and gas production will also close.

So now to the question: Can SE3 and SE4 be combined. I would say yes you can, but you do not have to. One of the reasons they could be combined is that SE4 can only import from SE3 and no other bidding area (In Sweden). The other reason is that all big cities and most of the district heating production is in these two areas. But if I can give you a very specific figure on all the production in each bidding area you will not have to. Would that solve your problem?

brunolajoie commented 6 years ago

Thanks for the update! I'm not sure that I was clear enough in my email, but what we'ree trying to do here is finding a way to derive real-time (hourly) production mix per fuel of each Sweden bidding zone, not annual or seasonal averages.

It seems that we can compute the real time mix for SE1, SE2, and SE3+4 together. Splitting SE3 and SE4 in two will require an assumption over how the "theermal" part of the mix in SE3 and SE4 is split. If thermal power production in SE3 and SE4 are not correlated at a hourly basis, I feel it's safer not to do the split, and keep SE3+4 grouped

magol commented 6 years ago

Is anyone who has sent mail to "Svenska kraftnät" and asked them if they have the data we are missing? I suppose they have access to the data, even if it is not available online. If we are lucky, maybe they can help us.

maxbellec commented 6 years ago

it's a good point. I haven't contacted them. @brunolajoie, @tmslaine ?

brunolajoie commented 6 years ago

Sent an email to their "contact-me" form. Anyone has better direct contact?

Maggus71 commented 6 years ago

@brunolajoie I realize that you want to show the realtime production mix for the four bidding areas. My point is that you can not use a yearly average for this since the production mix varies during the year due to the CHP-production which is linked to the demand for district heating. So for example the thermal production in January 2018 lies somewhere in the range of 1250-1600 MWh per day and in July 2017 somewhere in the range of 300-400 MWh per day. So my suggestion is that you use a template for every month built on the historical production data for the last 5-6 years for the production that you do not have any live data of.

brunolajoie commented 6 years ago

That's a very interesting idea @Maggus71. It seems technically feasible. My suggestion would be to move on step by step. First, we keep split SE keeping SE3 and S44 together, so we make no assumption of the total level of thermal assumption. And then we open an issue to split SE3 and SE4 together by doing such analysis. What do you guys think?

BTW, I've got an answer from Svenska below

Dear Bruno! Thanks for your question and suggestion. Today we do not have the possibility too split production per bidding area. We have a lot of IT-solutions that we have to priority and your suggestion will we take into consideration along with other changes we will do in the future.

Maggus71 commented 6 years ago

Here is the installed effect per bidding area in Sweden. Using this you should be able to break down the "other" category and give the users a pretty good picture of what kind of electricity they get in their power outlet. skarmklipp 2018-08-13 17 29 06 skarmklipp 2018-08-13 17 28 53 skarmklipp 2018-08-13 17 28 36

skarmklipp 2018-08-13 17 28 14

brunolajoie commented 6 years ago

Super interesting. It will be difficult to implement an winter vs. summer change (eMap is ill equipped to deal with such thing). But your table is helping to make assumptions for the SE3 vs SE4 thermal generation breakdown that we needed. Would you have the same table in GWh instead of MW? That would be even more precise. Thank you!

Maggus71 commented 6 years ago

I´m sorry I do not have the same figures in GWh. To my knowledge nobody has that since no authority reports the production per bidding area. Since you have the production figures for the wind, hydro and nuclear production for the whole of Sweden already today it would be pretty easy to distribute the production in the four bidding areas according to the installed effect. Then you should be able to distribute the production that is not wind, hydro and nuclear according to the installed effect in four bidding areas. If you want to I can set the installed effect in % instead of MW.

corradio commented 3 years ago

Status here: It seems like there is delayed historical data for bidding zones. However, ENTSOE doesn't report live production data at a sufficiently precise level. We therefore can't split sweden right now.

jargonbaron commented 3 years ago

If I may contribute to the discussion here with one link and one proposal.

Production data for all four Swedish bidding zones is published on the Swedish TSO's "extranet" called Mimer. It is close to real-time, but not quite, usually lagging about 12-24 hours behind. So it's not suitable for use in the Electricitymap visualisations, but perhaps the source gets better eventually, and maybe it could help out for historical data? (.csv donwloads available!) (https://mimer.svk.se/ProductionConsumption/ProductionIndex, only in Swedish)

The comment from maxbellec (even though it's more than two years old ^^, https://github.com/tmrowco/electricitymap-contrib/issues/1397#issuecomment-388767452) is still a good representation of the current data situation. I understand the philosophy of doing a minimum of calculations and instead relying on accurate source data and not making too many assumptions.

As an alternative proposal, why don't we apply the method of grouping everything that we are not certain of under "unknown", and applying the carbon intensity based on the average generation mix in that bidding zone? Isn't this is the way that the "unknown" production type's emission contribution is currently calculated for Sweden as a whole? I believe a similar thing is done for Netherlands and Croatia for a lack of more accurate data.

Pros:

Cons:

Side note on the con no. 2 is that non-wind, non-nuclear part of generation is significant but not big in both SE3 and SE4, as they rely heavily on imports. So when we know Nuclear and Wind and any flows in/out of those two zones, the percentage share that remains unknown is quite small.

I leave this here as a food-for-thought, I know the call to split Sweden has been highly requested but is trickier than it might first seem, and frankly the developers might also be getting tired every time a new issue is opened with the "genius idea" to accurately represent the Swedish bidding zones :)

In any case, I'm prepared to help out if/when any decision is made, and I'm always glad to share my opinion ;-)

image

martincollignon commented 3 years ago

We have been in touch with SVK - I think there is a decent chance they will release the data through ENTSOE soonish :)

pierresegonne commented 3 years ago

@Manu1400 has found additional sources for SE in #3247 but mostly related to PRICE or aggregated for the whole country

consideRatio commented 2 years ago

@martincollignon do you have any update regarding SVK and them releasing their data through ENTSOE?

Thanks everyone for your effort and work in this amazing project :heart: :tada: :sunflower:!!

intermittentnrg commented 2 years ago

As of 15th december ENTSO-E now seems to include all generation in all electricity zones image

source

I believe ENTSOE.query_production() is already fetching all generation data (was previously wind only) and should be returning the new metrics and datapoints into your systems already...

We should stop using SE.fetch_production() and replace with data from ENTSOE.py..

So the data is already parsed and no parser update required I think? Does this mean we have all data and can complete this task?

intermittentnrg commented 2 years ago

I discussed this @corradio on Twitter and there is data issue with Hydro generation reported by ENTSO-E vs SvK (SE.py).

I created below graph comparing SE Hydro generation from ENTSOE and SvK.

image

While work can progress meanwhile, this is likely a blocker to delivering. Other than hydro all generation data looks like it matches and looks good!

Does anyone know who best to contact? I reported the issue to transparency@entsoe.eu

intermittentnrg commented 2 years ago

As a workaround we could use the ratios from ENTSO-E SE1/2/3/4 and adjust it to match total from current source in SE.py.

I.e. SE1/2/3/4= 9GW/6GW/0/0 = total 15GW total from current source=10GW= 1.5x too high adjusted values SE1/2/3/4= 6GW/4GW/0/0 = total 10GW

I've not received any acknowledgement of the hydro data issue. Hydro generation for Sweden in ENTSO-E continues to be overreported by up to ~50% at times exceeding the installed capacity for the country.

gwpicard commented 2 years ago

I just got a message from SVK yesterday -- according to them, the data has been updated on ENSTO-E going forward for onshore wind, waste, solar, other renewables, other, nuclear and hydro.

Would someone be able to run an investigation on this new data coming in to see if indeed the quality has improved? It would be so nice to finally have the Swedish subzones.

intermittentnrg commented 2 years ago

Here is updated graph I posted earlier. Hydro continues to be overreported in ENTSO-E data and is frequently over installed hydro capacity of 16GW

image

There is some minor difference in ENTSO-E datapoints for other production types but I think it's within margin of error.. It matches very closely.

image

consideRatio commented 2 years ago

@martian-maniac you have a very clear and distinct bug observed in the hydro data reported to ENTSO-E. I presume there is a mistake in the reporting from SVK to ENTSO-E. My guess is that there is some double-reporting of some of the hydro production.

Have you or someone else reported this to SVK already?

@gwpicard for reference so others can help out with issues like this in the future, how did you contact SVK? Did you email a certain email-address or use some web form etc?

gwpicard commented 2 years ago

Thanks for the analysis @martian-maniac. I think perhaps the data is being updated only recently in the last few days, I can confirm with them.

@consideRatio someone from SVK reached out to us directly about this. I'm reporting back with the analysis above

intermittentnrg commented 2 years ago

Still ongoing... image

gwpicard commented 2 years ago

@martian-maniac thanks for the ongoing analysis. I've sent it to the contact who reached out from SVK, and he's now investigating. He'll reach out to me with updates when he has them

intermittentnrg commented 2 years ago

One more week passed. Still ongoing... image