This repository contains data and analysis comparing actual solar photovoltaic (PV) generation with projections from the International Energy Agency's (IEA) World Energy Outlook (WEO) reports.
solar.csv- Historical solar PV generation data and WEO projectionscode/plot_actual_solar.py- Python script to generate the comparison graphgraphs/solar_generation_with_projections.png- Generated visualization showing the data
The solar.csv file contains:
- Actual solar generation (TWh) from 2009-2025
- WEO projections from various years (2009-2022) for 2020, 2025, 2030, 2035, and 2040
- Policy scenarios including "cur" (current policy) and other policy variants. There is more ambitious policies in the data.
The analysis reveals an interesting crossover pattern in the WEO projections:
- 2020 WEO projections (starting from 824 TWh in 2020) predict 2,764 TWh for 2030
- 2021 WEO projections (starting from 1,023 TWh in 2021) predict 3,492 TWh for 2030
- 2022 WEO projections (starting from 1,293 TWh in 2022) predict 4,011 TWh for 2030
This creates a counterintuitive situation where earlier predictions from lower starting points are more optimistic than later predictions from higher starting points for the same future years.
pip install pandas matplotlibpython code/plot_actual_solar.pyThe script will:
- Load the solar generation data
- Create a visualization comparing actual vs. projected values
- Save the graph as
graphs/solar_generation_with_projections.png
- Black line: Actual solar generation observations
- Gold lines: WEO projections from different years
- X-axis: Years 2009-2035 (with abbreviated labels for most years, full "2030" and "2035"). 2040 is in the newer predictions and should be included in future. At the moment they swamp the 2024,2025 actual data
- Y-axis: Solar generation in TWh (0-6000). This will increase in the future.
- Legend: Positioned at top left inside the graph
- Attribution: "by @iamredave" at bottom right
- Historical data: Actual solar PV generation from various sources
- Projections: IEA World Energy Outlook reports (2009-2022)
- Policy scenarios: Current policy ("cur") projections
- IEA WEO Reports: https://www.oecd.org/en/publications/world-energy-outlook_20725302.html
- Ember Energy Monthly Data: https://storage.googleapis.com/emb-prod-bkt-publicdata/public-downloads/monthly_full_release_long_format.csv - Provides 2024 and 2025 solar generation figures. These match the 2023,2022, 2021 IEA figures which makes their use seem reasonable.
2025 projections are based on the next few months having the same increase from 2024 as the first 7 months had.
├── README.md
├── solar.csv
├── code/
│ └── plot_actual_solar.py
└── graphs/
└── solar_generation_with_projections.png
Feel free to submit issues, suggestions, or pull requests to improve the analysis or visualization.
This project is open source and available under the MIT License.
Created by @iamredave

