Solar dataset for Machine Learning Analysis
This dataset contains meteorological inputs, photovoltaic (PV) simulation outputs, and machine learning features used to predict monthly optimal tilt angles for fixed PV systems across 17 globally distributed cities representing four Köppen-Geiger climate zones (tropical, subtropical, temp
This dataset contains meteorological inputs, photovoltaic (PV) simulation outputs, and machine learning features used to predict monthly optimal tilt angles for fixed PV systems across 17 globally distributed cities representing four Köppen-Geiger climate zones (tropical, subtropical, temperate, and cold/subpolar).The optimal tilt angles were determined using PVLib-based simulations of energy output for tilt angles from 0° to 70°, in 1° increments. The angle that produced the highest monthly energy yield was recorded as the optimal tilt. These simulation-derived values were then used to train supervised machine learning models (Random Forest, XGBoost, Linear Regression) that predict monthly tilt angles based on weather features and geographical characteristics.
The dataset enables:
- Monthly optimal tilt estimation
- Solar PV performance analysis across climate zones
- Machine learning model training and benchmarking
- Climate-adaptive PV system design research------------------------------------------------------------
2. File Information
------------------------------------------------------------
Filename: all_cities_ml_ready_onehot.csv
Format: Comma-separated values (CSV)
Rows: ~67,000 samples
Columns: 40+ variables (meteorological, geographic, encoded climate categories, energy outputs)Each row represents a month-location instance with environmental inputs and simulation-based outputs.
------------------------------------------------------------
3. Variable Descriptions
------------------------------------------------------------
Key meteorological features:
- ghi: Global Horizontal Irradiance (W/m²)
- dni: Direct Normal Irradiance (W/m²)
- dhi: Diffuse Horizontal Irradiance (W/m²)
- temp_air: Air temperature (°C)
- wind_speed: Wind speed (m/s)
- pressure: Atmospheric pressure (hPa)
- relative_humidity (%)Geographical and temporal features:
- latitude (degrees)
- longitude (degrees)
- month (1–12)
- climate_Tropical, climate_Subtropical, climate_Temperate, climate_Cold (one-hot encoded Köppen zones)Simulation-based PV Energy Output:
- energy_0deg, energy_1deg, ..., energy_70deg (monthly summed PVLib output in kWh/month)Ground Truth Label:
- best_tilt (°): Tilt with highest monthly PV energy output
- best_energy (kWh): Energy output at best tilt------------------------------------------------------------
4. Cities Included (17 total)
------------------------------------------------------------
Bangkok, Jakarta, Nairobi, Dubai, Cape Town, Sydney, Santiago,
Las Vegas, Madrid, New York, Tokyo, Beijing, Berlin, Ostrava,
Helsinki, Reykjavík, UshuaiaThese cities were selected to represent climate diversity across hemispheres.
------------------------------------------------------------
5. Data Sources
------------------------------------------------------------
- Typical Meteorological Year (TMY) data retrieved from PVGIS (EU Joint Research Centre)
- PV energy simulat📤 Share this page
Found this useful? Share it with your network.
Files are hosted on the source repository. Click download to access the full dataset.