pyGRETA icon indicating copy to clipboard operation
pyGRETA copied to clipboard

Missing IRENA Data source in documentation

Open simnh opened this issue 4 years ago • 3 comments

Hey I get the error when running the windcorrection:

FileNotFoundError: [Errno 2] File b'/home/admin/01 Raw inputs/Renewable energy/IRENA/IRENA_RE_electricity_statistics_allcountries_alltech_2011.csv' does not exist: b'/home/admin/01 Raw inputs/Renewable energy/IRENA/IRENA_RE_electricity_statistics_allcountries_alltech_2011.csv'

However, without wind correction, I will get the error of a missing wind correction raster. So I assume I need the IRENA statistics. From the comments in the code I saw that the query tool is used. But I am not sure if its about installed capacity or energy (I guess energy?).

I will then need the irena data for the selected weather year, is that correct?

Thanks again!

simnh avatar Jun 16 '20 08:06 simnh

Hi,

The wind correction is not necessary. Check onshore_wind_parameters in config.py:

* *resource* is a dictionary including the parameters related to the resource potential:
    
      * *res_correction* is either 1 (perform a redistribution of wind speed when increasing the resolution) or 0 (repeat the same value from the low resolution data). It is relevant for :mod:`correction_functions.generate_wind_correction`.
      * *topo_correction* is either 1 (perform a correction of wind speed based on the altitude and the Global Wind Atlas) or 0 (no correction based on altitude).
      * *topo_weight* is only relevant if *topo_correction* = 1. It defines how to weight the correction factors of each country. There are three options: ``'none'`` (all countries have the same weight), ``'size'`` (larger countries have a higher weight), or ``'capacity'`` (countries with a higher installed capacity according to IRENA have a higher weight).

So if you set topo_correction to zero, you will not need the Global Wind Atlas data.

kais-siala avatar Jun 16 '20 08:06 kais-siala

For IRENA, I have just noticed that the documentation is missing that data source. I will complete it in the next days. I used the query tool from here: https://www.irena.org/Statistics/Download-Data I selected all countries and technologies (but not continents or groups of technologies), and the year I needed (in your case 2011). I reported the results in Country/Technology/Indicator format, and saved it in a CSV file. IRENA_RE_electricity_statistics_allcountries_alltech_2011.txt (I could not upload the file as CSV here, so I changed the type to TXT)

kais-siala avatar Jun 16 '20 09:06 kais-siala

Hey, thanks it lot. The code for wind and pv works now! Great!

simnh avatar Jun 17 '20 08:06 simnh