Repository: electricitymaps/electricitymaps-contrib

Issue:
AR Plant mappings missing
![image](https://user-images.githubusercontent.com/1655848/38175890-aa4ea12a-35e4-11e8-8bca-0efd7431a7e4.png)



Discussion:
As usual, I could find the missing ones on http://portalweb.cammesa.com/memnet1/revistas/estacional/base_gen.html
and would map them to their types by the first column.

Maybe we should think about a general improvement here. There will be a lot of new renewable power in the future according to [this article](https://renewablesnow.com/news/argentina-signs-first-renovar-round-2-contracts-for-1122-mw-606952/), and from what we experienced in the past, some new gas PPs were / are connected to the grid and metered and reported.

_ _ _ _

1. There is a clear pattern behind the power plant IDs: In general, everything that ends with "TG" before the numeric part is a gas turbine and should be running on natural gas as main fuel (e.g. ABCD**TG**01)
Actually, the plant mapping in the [AR.py](https://github.com/tmrowco/electricitymap/blob/master/parsers/AR.py) could be entirely dismissed, when only the the fourth and fifth letter of the plant IDs will be considered.

2. In line with 1.), the mapping could be refined and updated by using the first column on
http://portalweb.cammesa.com/memnet1/revistas/estacional/base_gen.html for all of the existing power plants.

- Here is the mapping of that first column to the fuel types (from what I could relate to the power plant IDs):
* TG is gas (turbina de gas)
* CC is gas (combined cycle)
* AG is gas (no idea what the A means, but the web leads me to CCGT plants)
* TV is mostly gas in the recent mapping - maybe this category needs a seperate review:
  * In the recent mapping, 5 of the steam turbines TV (turbina de vapor) are running on coal (~170 MW), which seems easy enough to consider, the rest of TV should be using gas, too.
* DI is oil (diesel)
* EO is wind (eolico)
* HI is hydro (hidro)
* FV is solar (fotovoltaica)
* BG is biomass (biogeneradora)
* BM is biomass (biomassa)
* NU is nuclear
* BRS and MH have a very tiny amount of MWs, I suggest mapping them to "unknown" together with any other abbreviation they might come up with in the future.
_ _ _ _

These two options would eliminate/limit this issue that pops up every once in a while when a new unit (or previously unused unit) suddenly enters operation.

I went through the mapping in the parser and found some errors as well, like "EO" wind power plants and "FV" solar power plants recently being mapped to "hydro". Probably because they are included in the [page with hydro generation data](http://portalweb.cammesa.com/memnet1/Pages/Informes%20por%20Categor%C3%ADa/Operativos/VisorReportesSinCom_minimal.aspx?hora=0&titulo=Despacho%20Generacion%20Hidraulica&reportPath=http://lauzet:5000/MemNet1/ReportingServices/DespachoGeneracionHidraulica.rdl--0--Despacho+Generaci%C3%B3n+Zona+Hidr%C3%A1ulica), which needs a fix anyway.

Are you guys able to revise wind and solar easily for the past from the data? Would be nice to see the behaviour to prove this assumption. Else I could download some recent data from the hydro section.

Resolving patch:
diff --git a/parsers/AR.py b/parsers/AR.py
--- a/parsers/AR.py
+++ b/parsers/AR.py
@@ -93,6 +93,10 @@
     'BRAGTG06': 'gas',
     'BRC1DI01': 'oil',
     'BRCHTG01': 'gas',
+    'BRKETG01': 'gas',
+    'BRKETG02': 'gas',
+    'BRKETG03': 'gas',
+    'BRKETG04': 'gas',    
     'BROWTG01': 'gas',
     'BROWTG02': 'gas',
     'BSASTG01': 'gas',
@@ -200,6 +204,7 @@
     'INDETG01': 'gas',
     'INDETG02': 'gas',
     'INDETG03': 'gas',
+    'INDETG04': 'gas',
     'INTADI01': 'oil',
     'ISBATV01': 'gas',
     'ISVEDI01': 'oil',
@@ -320,6 +325,9 @@
     'PATATG02': 'gas',
     'PATATV01': 'gas',
     'PBANHI': 'hydro',
+    'PEDRTG01': 'gas',
+    'PEDRTG02': 'gas',
+    'PEDRTG03': 'gas',
     'PEHUDI01': 'oil',
     'PERZDI01': 'oil',
     'PERZDI02': 'oil',
@@ -473,7 +481,11 @@
     'ZAPATG01': 'gas',
     'ZAPATG02': 'gas',
     'ZAPATG03': 'gas',
-    'ZAPATG04': 'gas'
+    'ZAPATG04': 'gas',
+    'ZARATG01': 'gas',
+    'ZARATG02': 'gas',
+    'ZARATG03': 'gas',
+    'ZARATG04': 'gas'
 }
 
 # URL's for thermal and hydro pages and data sources respectively.


Test patch: