Giter VIP home page Giter VIP logo

solarprediction's Introduction

SolarPrediction

Introduction

Use netural network to prediction the solar irradiance

Dependency

Platform

Ubuntu 14.04

###Library

  • Python2.7: Anaconda4.2.0
  • Tensorflow-0.11: Use Anaconda Installation
  • numpy, matplotlib, PIL, xlrd, urllib, urllib2:
    • conda install:conda install numpy, matplotlib, PIL, xlrd
    • pip install: pip install numpy, matplotlib, PIL, xlrd

How To Run

Before run this project, make sure that you have installed all dependency and you should use the python script to download the dataset by yourself since the dataset is too large that I have not upload it into the Github.

Download the dataset (this may cost severals hours to get the data and please wait patiently):

  • Download the nrel irradiance and meteorological data from the SSRL_BMS
    # python dataset/NREL_SSRL_BMS_IRANDMETE/ssrl_bms_historical_data_spider.py
  • Download the ssrl sky image from the skycam.
    # python dataset/NREL_SSRL_BMS_SKY_CAM/ssrl_sky_image_spider_multi_thread.py

Data preprocess

  • NREL solar and temperature data pre-process
    # python dataset/NREL_SSRL_BMS_IRANDMETE/ir_mete_preprocess.py

Seperate the data

  • Generate the irradiance and meteorological train, test and validation data
    # python dataset/NREL_SSRL_BMS_IRANDMETE/input_data/generate.py

Run the model

  • Train the model and Do prediction
    # python src/solar_prediction.py

Dataset

This project focuses on the solar irradiance prediction according to the irradiance data, meteorological data and sky camera data from the NREL Solar Radiation Research Laboratory. The dataset consists of three parts:

  • Irradiance Data and Meteorological Data
    The dataset can be download from the SSRL_BMS Historical Monthly Data. The field of the dataset are different since the system added some equipments in some year. You can check the field id of each year from the data field definition. I save the field into csv files by year in the dataset/NREL_SSRL_BMS_IRANDMETE/field and write a python script to generate the common irradiance data and meteorological data since it is very troublesome to handle this field. You can easily ignore the field and just focus the common id since 2006.
    Note: The dataset that downloaded from the website may exist some problems such as 2008, 200908, 201007 and so on. The problems is the column is not same in the file and it will be a problem when I use the genfromtxt function in the numpy to read the csv file. The solution to this is that I open the txt file in the excel and resave it as csv file and replace it.
  • Sky Cam Image

Contact

This project is maintained by WANG Kejie and if you have some problems or find some bugs in the procedure, please send me the email.

solarprediction's People

Contributors

kejie-wang avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.