Skip to main content

A package for comparing measured with simulated renewable power data and study error propagation

Project description

Measured-vs-simulated-PV

This package has been created based on the work presented in this article: https://doi.org/10.1016/j.rser.2024.115044 . The data used for the article are in the publication data folder. The aim of this package is to facilate the data sharing of measured PV profiles, compare measured and simulated PV power production data, and analyse the influence of using measured or simulated PV power data for e-fuel techno-economic assessments.

The data used to run this package are:

  • Measured data from real photovoltaic (PV) plants (src/simeasren/data/measured_PV)
  • Hydrogen based e-fuel techno-economic parameters (src/simeasren/data/techno_economic_assessment)

This package contains:

  • Functions for extracting PV power production data from PVGIS and Renewables.ninja
  • Data analysis tools and graphs to compare measured and simulated data
  • A simple e-fuel techno-economic assessment to study the error propagation

Sharing PV measured data

We would like to expand the analysis to other sites, so if you are allowed to publicly share high resolution PV power measurement data, that would help us a lot!

We do not need all the data points but the normalized hourly aggregated values. Higher resolution data can be shared but only two days are enough (one cloudy day and one sunny day).

To share PV power data, please contact us at giulia.montanari@polito.it or njbca@dtu.dk.

Installation guide

1- Download and install the code editor VSCode. Make sure to select the "Add to PATH" option when installing

2- Download and install Python.

3- Add the Python extension in the code editor (in "Extensions marketplace" on the left sidebar)

4- Open the terminal inside VS Code by clicking Terminal > New Terminal. Run the following command to create an environment .venv:

python -m venv .venv

7- Activate the environment writting in the terminal

.venv\Scripts\Activate.ps1

Note (from here)

On Microsoft Windows, it may be required to enable the Activate.ps1 script by setting the execution policy for the user. You can do this by issuing the following PowerShell command:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

8- Install the package:

pip install simeasren

Run example scripts

In VS code, create a new python script and copy on of the file in the example folder.

The Full_analysis.py example shows a simplified version of the analysis made in this publication https://doi.org/10.1016/j.rser.2024.115044

To personalize the analysis:

1- Fill up the "User defined" informations:

  • Location: the name should match with one of the location in the src/simeasren/data/measured_PV folder
  • Year: Specific year to run the simulation (the year must exist in the measured data)
  • H2_end_user_min_load: for the H2 techno-economic assessment, define the flexibility of the hydrogen end-user choosing its minimal load between 0 and 1
  • Solver: selected solver for the H2 techno-economic assessment. cbc is the default free solver. To use Gurobi, it has to be installed on your machine with a valid license. To use others solvers, check the PulP documentation
  • Renewablesninja_token: follow step 2

2- To generate profiles with Renewables.ninja, you have to set up a Renewable Ninja API token:

  • Visit Renewables.ninja's registration page and create an account
  • Once logged in go to your profile page to generate your API token
  • Copy your API token
  • In the code, paste your token in front of the rn_token variable: rn_token = 'your-token-here'

3- Run the Full_analysis.py file clicking on the small arrow on the top right of the VS Code window (make sure that you are running with the correct environment set-up in the installation step). A result folder will be created on your local machine.

More advanced e-fuel techno-economic assessments can also be performed using the "OptiPlant" tool

APIs Used and documentation

This project integrates with two APIs to gather solar production data:

PVGIS API: The Photovoltaic Geographical Information System (PVGIS) API provides solar irradiation and solar production data for various geographical locations. API Documentation: https://re.jrc.ec.europa.eu/pvg_tools/en/tools.html#PVP

Renewable Ninja API: Renewable Ninja provides simulation data for solar and wind energy production at any location worldwide. API Documentation: https://www.renewables.ninja/api

If using this script or related data, please remember to credit Renewables.ninja, PVGIS and cite https://doi.org/10.1016/j.rser.2024.115044 appropriately in your work :)

Support

If you have questions or would like to discuss about PV power data sharing do not hesitate to send an e-mail at giulia.montanari@polito.it or njbca@dtu.dk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simeasren-0.0.1.tar.gz (16.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simeasren-0.0.1-py3-none-any.whl (4.3 MB view details)

Uploaded Python 3

File details

Details for the file simeasren-0.0.1.tar.gz.

File metadata

  • Download URL: simeasren-0.0.1.tar.gz
  • Upload date:
  • Size: 16.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for simeasren-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ea5193a7c26280834a131c8e1ff51055454d5ddf4dc49e66b68eb66cd5864537
MD5 ba0759ac0ffdbb8461fe0219c860e824
BLAKE2b-256 a44b51a878aa2a8e76a6978e88ae32284d9b475f46999e43e0fed51c82790ac5

See more details on using hashes here.

File details

Details for the file simeasren-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: simeasren-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for simeasren-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3e0583f08ccb05514b468caa5f6bfd5a36a1064905d6cfa3311730d804ed27c
MD5 cbeacbc0507a787ee81723b5c93c7a67
BLAKE2b-256 ec8525f1e64d99e903ed0e1ca62b0f0f6d9540bc1056034f940f9b47b702d895

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page