Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing IRENA Data source in documentation #166

Open
simnh opened this issue Jun 16, 2020 · 3 comments
Open

Missing IRENA Data source in documentation #166

simnh opened this issue Jun 16, 2020 · 3 comments

Comments

@simnh
Copy link

simnh commented Jun 16, 2020

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!

@kais-siala
Copy link
Contributor

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
Copy link
Contributor

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)

@simnh
Copy link
Author

simnh commented Jun 17, 2020

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

@simnh simnh closed this as completed Jun 17, 2020
@kais-siala kais-siala reopened this Jun 17, 2020
@kais-siala kais-siala changed the title Error in wind correction: Missing IRENA Data Missing IRENA Data source in documentation Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants