Coder Social home page Coder Social logo

pvitaly's Introduction

PVItaly

All Contributors

Forecast for PV energy systems

Data downloading

Create a .env file with your UCAR login details:

UCAR_EMAIL='[email protected]'
UCAR_PASS='your-password'

Then:

sudo apt-get install libeccodes-dev libeccodes-tools
pip install -r requirements.txt -r requirements-dev.txt
pre-commit install

Then this will output individual zarrs for each timestamp and time-step into the provided output dir:

python scripts/download.py 2021-01-01 2021-02-01 zarrs/

These zarrs can then be merged:

python scripts/merge.py zarrs/ merged/

Running inference

Install requirements:

pip install -r requirements-ml.txt

Check the help on the infer script:

python infer.py --help

It will output a wide- and a long- DF to the specified output_dir.

Contributors โœจ

Thanks goes to these wonderful people (emoji key):

Peter Dudfield
Peter Dudfield

๐Ÿ’ป
Chris Arderne
Chris Arderne

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

pvitaly's People

Contributors

allcontributors[bot] avatar carderne avatar peterdudfield avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

pvitaly's Issues

Train model

Detailed Description

Using ocf data pipes, train model to use

  • PV
  • NWP
  • Sun features

Start with a simple model of 4 fully connection layers with ~ 256 nodes.
see for good example - https://github.com/openclimatefix/PV-Challenge

Context

  • Pilot model needs to work and have enough things to add t in the future. Like more satellite + NWP

Download PVoutput.org data from Italy

Detailed Description

Download data from Italien sites from pvoutput.org.
Good to start with data from 2020 to now.

Context

  • Useful for training our model
  • Metadata has already been downloaded by @jacobbieker (could you add where this has been downloaded)

Possible Implementation

Find out more information from @JackKelly how data has been previously downloaded

Run Inference

Detailed Description

Given a trained model run inference with the follow objectives

  • Produce csv ready to hand over to client.
  • run metrics on test set, understand the MAE

Context

Useufl to run on test set, so we are not running on training set

Possible Implementation

CSV shouwl ahve the following columns

  • ocf_id
  • target_time_utc, with timezone to be clear. The time the forecast is for.
  • creation_time_utc, the time at which the forecast was made
  • solar_generation_forecast_kw, the forecast value.
  • solar_generation_actual_kw, the actual value.

Format Client data

Detailed Description

Reformat the client data into the following strucutre

pandas dataframe with the following structure

  • datetime_utc: should include timezone
  • id: make id of site. Might be good to make googlesheet / csv of all our PV sites with and ocf_id
  • solar_generation_kw

and save as parquet file.

Context

  • Good to have data in standard format
  • good to have a format where other sites can easily be added

[meta] Italy Pilot

  • Format Client data
  • Download PVoutput.org Italy data
  • Get NWP global data
  • Train model
  • Run inference

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.