electricitymaps / electricitymaps-contrib

The open source repository for Electricity Maps App and data parsers that enables a real-time visualisation of the CO2 emissions of electricity consumption
https://app.electricitymaps.com
GNU Affero General Public License v3.0
3.61k stars 947 forks source link

Argentina 🇦🇷 split by region #565

Open jarek opened 7 years ago

jarek commented 7 years ago

If my Google-Translate Spanish is correct, there is hourly generation data on http://portalweb.cammesa.com/Memnet1/default.aspx: open "operativos" on the left, then follow "Despacho Real de Generación Térmica" and "Despacho Real de Generación Hidráulica". Make sure to page through the results. Thermal plants will have to be mapped to type, but from other sources, they are mostly/vastly gas, with 6% diesel/oil and no coal. Note that thermal also includes a nuclear plan "ATUCNUCL". There is some delay, so data for 15:00 local time might not be uploaded until 15:30 or later...

Additional resources:

corradio commented 7 years ago

@jarek want to take a crack at this one?

jarek commented 7 years ago

Hey, sorry, realistically I won't have time to work on this within next 7 days. If anyone else is interested, feel free.

systemcatch commented 7 years ago

I'm working on this at the moment. Took me a while to figure out what was happening on the real time generation page but I now basically understand and should be able to finish the parser.

corradio commented 7 years ago

Awesome @systemcatch!

corradio commented 7 years ago

Here's an overview of what we still need to accomplish:

systemcatch commented 7 years ago

@corradio I've got the price for electricity in $(Peso)/MWh all ready to go, one question when fetch_price returns a dict (like in the example) should the 'currency' key have a string value (e.g. 'ARS')?

jarek commented 7 years ago

@systemcatch All the other parsers return currency code as string. The examples missing quotes around the EUR is probably a typo.

E.g. from AU.py

data = {
    'countryCode': country_code,
    'currency': 'AUD',
    'price': obj['PRICE'],
    'source': 'aemo.com.au',
    'datetime': arrow.get(arrow.get(obj['SETTLEMENTDATE']).datetime, 'Australia/NSW').replace(minutes=-5).datetime
}
corradio commented 7 years ago

yes indeed!

On Mon, Jul 24, 2017 at 6:27 PM, systemcatch notifications@github.com wrote:

@corradio https://github.com/corradio I've got the price for electricity in $(Peso)/MWh all ready to go, one question when fetch_price returns a dict (like in the example) should the 'currency' key have a string value (e.g. 'ARS')?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tmrowco/electricitymap/issues/565#issuecomment-317477573, or mute the thread https://github.com/notifications/unsubscribe-auth/ABlEKPpmkFZTmthFesFLhHBIh-pFegGoks5sRMX-gaJpZM4NouGk .

corradio commented 7 years ago

@systemcatch any progress here?

systemcatch commented 7 years ago

@corradio I've not been able to find anything that would be usable by us. There is interconnection data here http://portalweb.cammesa.com/MEMNet1/Pages/Informes%20por%20Categor%C3%ADa%20Publico/Operativos/CubrimientoPico.aspx but it is for the past day and not by hour. Maybe we can get interconnection data from the other countries #655 #695 #598 ?

alixunderplatz commented 6 years ago

@systemcatch @jarek I accidentaly came across this on the webportal of cammesa: On the right side you'll find this: image

There is a map with all the relevant power flows in the AR grid: http://www.cammesa.com/uflujpot.nsf/FlujoW?OpenAgent&Flujo%20Geografico&19/03/2018%2021:00

For those tech nerds who like it more abstract (and to check endpoints of interconnectors): http://www.cammesa.com/uflujpot.nsf/FlujoW?OpenAgent&Tensiones%20y%20Flujos%20de%20Potencia&19/03/2018%2021:00

You can manipulate the time and date in the URL to get the other hourly values of power flows, including interconnections to Paraguay, Brazil and Uruguay. Looks like live data is available :)

It is the 11th hour in Buenos Aires now, and this URL for the previous hour already works: http://www.cammesa.com/uflujpot.nsf/FlujoW?OpenAgent&Flujo%20Geografico&26/03/2018%2010:00

image

Since the generation is assigned to the types via the plant mapping anyway, Argentina could even be split by regions:

https://aplic.cammesa.com/geosadi/

image

alixunderplatz commented 6 years ago

That tiny box on the right reveals even more data for smaller geographical regions. For a split by zones, 220kV and 110 kV on local level would have to be considered, making this a real pain, but not impossible.

On the technical map, it's very easy to figure out the interconnectors:

Direction of flow can be determined using the direction of the correlating arrow (the arrow's angle is indicated in the .gif name of the image as 0, 90, 180, 270)

alixunderplatz commented 6 years ago

Looks like there is an interconnector with Chile as well in the northern left corner of AR (pink due to other voltage level).

image

In the GIS-data map, it says "COBOS - LIMITE CHI-ARG 345 1", so starting point in Argentina is Cobos substation, and LIMITE probably means "border".

I found a seperate map view of the "NOA" zone in the northern left area of AR. http://www.cammesa.com/uflujpot.nsf/FlujoW?OpenAgent&Unifilar%20de%20NOA&26/03/2018%2012:00

I highlighted the values for the exchange with Chile (it's the "0" right of "a Chile", to avoid confusion.)

image

The other side is ending in Chile-SING according to this: https://es.wikipedia.org/wiki/Interconexi%C3%B3n_el%C3%A9ctrica_de_Chile#Interconexi%C3%B3n_SING_-_Argentina

maxbellec commented 6 years ago

I've just seen your latest comments @alixunderplatz, this is awesome. A split Argentina would look great! And showing the true color of Uruguay is also important. @systemcatch do you still want to work on the AR parser?

systemcatch commented 6 years ago

Yes I will work on getting the exchanges working.

alixunderplatz commented 6 years ago

@systemcatch I updated my comment from above to point out the right values for AR <-> UY exchanges

systemcatch commented 6 years ago

Exchanges are all implemented now, functions could be improved to fetch the past day but due to the site design it would require a request for every hour which is a fairly intensive thing to do.

alixunderplatz commented 5 years ago

Related to the latest improvements in PR #1718 on the parser for Argentina:

There is a dashboard for renewable generation per type, including real-time-data for wind, solar, biomass and small hydro (<50MW)!!! Live-data available as text, graph and .csv https://despachorenovables.cammesa.com/renovables/

image

Installed renewable capacity (incl. small hydro <50MW!): https://despachorenovables.cammesa.com/potencia-instalada/ There even is a breakdown per region :) image

Wind power forecast for Argentina: https://despachorenovables.cammesa.com/pronostico-generacion-eolica/

And just as a reference for those interested: There was a significant growth in monthly renewable shares in 2018! Especially wind and solar are developing fast! https://despachorenovables.cammesa.com/historico-energias-mensuales/

image

arielmirra commented 4 years ago

Hi! I'm an argentinian software engineer and came across this issue, is this still relevant? I'm looking into open projects to contribute in my spare time.

robertahunt commented 4 years ago

Hi @arielmirra , this is definitely still relevant and it would be great if you want to / have time to contribute to it! :) Reach out if anything from the readme/instructions is unclear on what to do or if you need any help.