Global horizontal irradiance forecasting code and data

Published: 13 February 2020| Version 3 | DOI: 10.17632/dcj3yvzybr.3
Contributors:
,
,

Description

This dataset contains the code, data and results obtained by forecasting the GHI using a deep neural network. There are four main folders in the project: code, data, models and logdir. Data This folder contains all the data used from the two studied locations: UJI (latitude=39.99º, longitude=-0.06º) and La Celle (latitude=40.4º, longitude=6.0º). Sorted by year, month and day, each location has three kinds of data: • The files named as just a number are 151x151 irradiance estimates matrices centered in the same location obtained from http://msgcpp.knmi.nl.The spatial resolution is 0.03º for both latitude and longitude. • The files named Real_ are the irradiance measurements at the location • The files named CopernicusClear_ are the clear sky estimates from the CAMS McClear model Each file contains the 96 15-minute samples for the same day in Matlab format and UTC time. Code All the python scripts used to train the neural networks and perform the forecasts. The main files are: • tf1.yml: List of the modules and versions used. A clean Anaconda environment created from this file can run all the code in the project. • learnRadiation.py: The script to train a new model. Changing the variables “paper_model_name” and “location”. The first variable selects the kind of model to fit and the second one the training location. • predictOnly.py: Loads a trained model and performs the forecast. Notice that the model and location must match the ones used to train the model stored in the “training_path” folder Models This folder contains all the trained models and their forecasting results. There is also a training folder to contain the last trained model. Logdir This folder stores Tensorboard files during training How to train and test a model A new model can be trained using “learnRadiation.py”. This script has two parameters • location: Selects the location where the model will be trained (UJI or LaCelle) • paper_model_name: This sets the inputs to match the ones used in the models from the article. After selecting both variables and running the script, the new model can be found at models/training. Then the “predictOnly.py” script allows performing the forecasts. It is important to set the same location and paper_model_name as in the “learnRadiation.py” script and the training_path must be '../models/training/'. This program will generate the predictions and save them in the model folder. It also plots some days, which can be modified at the bottom of the script.

Files

Categories

Forecasting, Solar Irradiance, Deep Neural Network

Licence