windpowerlib
The windpowerlib is a library to model the output of wind turbines and farms.
Science Score: 33.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
2 of 16 committers (12.5%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.8%) to scientific vocabulary
Keywords
energy
model
modelling
power
wind
Keywords from Contributors
energy-system
energy-system-model
modelling-framework
heating
energy-data
Last synced: 6 months ago
·
JSON representation
Repository
The windpowerlib is a library to model the output of wind turbines and farms.
Basic Info
- Host: GitHub
- Owner: wind-python
- License: mit
- Language: Python
- Default Branch: dev
- Homepage: https://oemof.org/
- Size: 2.7 MB
Statistics
- Stars: 358
- Watchers: 27
- Forks: 108
- Open Issues: 21
- Releases: 12
Topics
energy
model
modelling
power
wind
Created over 9 years ago
· Last pushed almost 2 years ago
Metadata Files
Readme
License
README.rst
.. image:: https://travis-ci.org/wind-python/windpowerlib.svg?branch=dev
:target: https://travis-ci.org/wind-python/windpowerlib
.. image:: https://coveralls.io/repos/github/wind-python/windpowerlib/badge.svg?branch=dev
:target: https://coveralls.io/github/wind-python/windpowerlib?branch=dev
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.824267.svg
:target: https://doi.org/10.5281/zenodo.824267
.. image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/wind-python/windpowerlib/dev?filepath=example
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
.. image:: https://img.shields.io/lgtm/grade/python/g/wind-python/windpowerlib.svg?logo=lgtm&logoWidth=18
:target: https://lgtm.com/projects/g/wind-python/windpowerlib/context:python
Introduction
=============
The windpowerlib is a library that provides a set of functions and classes to calculate the power output of wind turbines. It was originally part of the
`feedinlib `_ (windpower and photovoltaic) but was taken out to build up a community concentrating on wind power models.
For a quick start see the `Examples and basic usage `_ section.
Documentation
==============
Full documentation can be found at `readthedocs `_.
Use the `project site `_ of readthedocs to choose the version of the documentation.
Go to the `download page `_ to download different versions and formats (pdf, html, epub) of the documentation.
Installation
============
If you have a working Python 3 environment, use pypi to install the latest windpowerlib version:
::
pip install windpowerlib
The windpowerlib is designed for Python 3 and tested on Python >= 3.10. We highly recommend to use virtual environments.
Please see the `installation page `_ of the oemof documentation for complete instructions on how to install python and a virtual environment on your operating system.
Optional Packages
~~~~~~~~~~~~~~~~~
To see the plots of the windpowerlib example in the `Examples and basic usage `_ section you should `install the matplotlib package `_.
Matplotlib can be installed using pip:
::
pip install matplotlib
.. _examplereference-label:
Examples and basic usage
=========================
The simplest way to run the example notebooks without installing windpowerlib is to click `here `_ and open them with Binder.
The basic usage of the windpowerlib is shown in the `ModelChain example `_ that is available as jupyter notebook and python script:
* `ModelChain example (Python script) `_
* `ModelChain example (Jupyter notebook) `_
To run the example you need example weather that is downloaded automatically and can also be downloaded here:
* `Example weather data file `_
To run the examples locally you have to install the windpowerlib. To run the notebook you also need to install `notebook` using pip3. To launch jupyter notebook type ``jupyter notebook`` in the terminal.
This will open a browser window. Navigate to the directory containing the notebook to open it. See the jupyter notebook quick start guide for more information on `how to install `_ and
`how to run `_ jupyter notebooks. In order to reproduce the figures in a notebook you need to install `matplotlib`.
Further functionalities, like the modelling of wind farms and wind turbine clusters, are shown in the `TurbineClusterModelChain example `_. As the ModelChain example it is available as jupyter notebook and as python script. The weather used in this example is the same as in the ModelChain example.
* `TurbineClusterModelChain example (Python script) `_
* `TurbineClusterModelChain example (Jupyter notebook) `_
You can also look at the examples in the `Examples section `_.
Wind turbine data
==================
The windpowerlib provides data of many wind turbines but it is also possible to
use your own turbine data.
Use internal data
~~~~~~~~~~~~~~~~~
The windpowerlib provides `wind turbine data `_
(power curves, hub heights, etc.) for a large set of wind turbines. See `Initialize wind turbine` in `Examples section `_ on how
to use this data in your simulations.
The dataset is hosted and maintained on the `OpenEnergy database `_ (oedb).
To update your local files with the latest version of the `oedb turbine library `_ you can execute the following in your python console:
.. code:: python
from windpowerlib.data import store_turbine_data_from_oedb
store_turbine_data_from_oedb()
If you find your turbine in the database it is very easy to use it in the
windpowerlib
.. code:: python
from windpowerlib import WindTurbine
enercon_e126 = {
"turbine_type": "E-126/4200", # turbine type as in register
"hub_height": 135, # in m
}
e126 = WindTurbine(**enercon_e126)
We would like to encourage anyone to contribute to the turbine library by adding turbine data or reporting errors in the data.
See `the OEP `_ for more information on how to contribute.
Use your own turbine data
~~~~~~~~~~~~~~~~~~~~~~~~~
It is possible to use your own power curve. However, the most sustainable way
is to send us the data to be included in the windpowerlib and to be available
for all users. This may not be possible in all cases.
Assuming the data files looks like this:
.. code::
wind,power
0.0,0.0
3.0,39000.0
5.0,270000.0
10.0,2250000.0
15.0,4500000.0
25.0,4500000.0
You can use pandas to read the file and pass it to the turbine dictionary. I
you have basic knowledge of pandas it is easy to use any kind of data file.
.. code:: python
import pandas as pd
from windpowerlib import WindTurbine, create_power_curve
my_data = pd.read_csv("path/to/my/data/file.csv")
my_turbine_data = {
"nominal_power": 6e6, # in W
"hub_height": 115, # in m
"power_curve": create_power_curve(
wind_speed=my_data["wind"], power=my_data["power"]
),
}
my_turbine = WindTurbine(**my_turbine_data)
See the `modelchain_example` for more information.
Contributing
==============
We are warmly welcoming all who want to contribute to the windpowerlib. If you are interested in wind models and want to help improving the existing model do not hesitate to contact us via github or email (windpowerlib@rl-institut.de).
Clone: https://github.com/wind-python/windpowerlib and install the cloned repository using pip:
.. code:: bash
pip install -e /path/to/the/repository
As the windpowerlib started with contributors from the `oemof developer group `_ we use the same
`developer rules `_.
**How to create a pull request:**
* `Fork `_ the windpowerlib repository to your own github account.
* Change, add or remove code.
* Commit your changes.
* Create a `pull request `_ and describe what you will do and why.
* Wait for approval.
**Generally the following steps are required when changing, adding or removing code:**
* Add new tests if you have written new functions/classes.
* Add/change the documentation (new feature, API changes ...).
* Add a whatsnew entry and your name to Contributors.
* Check if all tests still work by simply executing pytest in your windpowerlib directory:
.. role:: bash(code)
:language: bash
.. code:: bash
pytest
Citing the windpowerlib
========================
We use the zenodo project to get a DOI for each version. `Search zenodo for the right citation of your windpowerlib version `_.
License
============
Copyright (c) 2019 oemof developer group
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
GitHub Events
Total
- Issues event: 2
- Watch event: 34
- Issue comment event: 1
- Member event: 1
- Fork event: 2
Last Year
- Issues event: 2
- Watch event: 34
- Issue comment event: 1
- Member event: 1
- Fork event: 2
Committers
Last synced: 6 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| SabineHaas | s****s@r****e | 751 |
| uvchik | u****t@p****u | 233 |
| birgits | b****r@r****e | 233 |
| Birgit Schachler | R****r@s****k | 115 |
| stickler-ci | s****t@s****m | 21 |
| kyri-petrou | k****u@e****m | 6 |
| Velibor Zeli | v****r@m****e | 6 |
| Markus Kösler | m****r@a****e | 3 |
| Sabine Haas | R****s@s****k | 2 |
| Kumar Shivam | 4****5 | 2 |
| Florian Maurer | m****r@f****e | 1 |
| maurerle | f****r@o****e | 1 |
| Stephen Bosch | s****h@g****m | 1 |
| Seth | 7****h | 1 |
| Sasan Jacob Rasti | s****i@i****m | 1 |
| Francesco Witte | g****b@w****h | 1 |
Committer Domains (Top 20 + Academic)
rl-institut.de: 2
witte.sh: 1
outlook.de: 1
fh-aachen.de: 1
athion.de: 1
mech.kth.se: 1
enea-consulting.com: 1
stickler-ci.com: 1
posteo.eu: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 79
- Total pull requests: 65
- Average time to close issues: 4 months
- Average time to close pull requests: about 2 months
- Total issue authors: 29
- Total pull request authors: 15
- Average comments per issue: 2.56
- Average comments per pull request: 1.85
- Merged pull requests: 52
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 3
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 2
- Pull request authors: 0
- Average comments per issue: 0.33
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- uvchik (26)
- birgits (11)
- SabineHaas (8)
- maurerle (4)
- mkaut (3)
- arnonuem (2)
- vezeli (2)
- lxlsygc (2)
- kumar10725 (1)
- tulucay (1)
- PhilosopherZ (1)
- yinxiEquinor (1)
- TUM-Doepfert (1)
- GiorgioBalestrieri (1)
- sandeepbando (1)
Pull Request Authors
- uvchik (19)
- birgits (17)
- SabineHaas (11)
- DV-Bongingi (6)
- vezeli (4)
- maurerle (3)
- kyri-petrou (2)
- markuskoesler (2)
- fwitte (2)
- arnonuem (2)
- thesethtruth (1)
- sasanjac (1)
- kumar10725 (1)
- lgtm-com[bot] (1)
- pajot (1)
Top Labels
Issue Labels
enhancement (17)
bug (13)
question (10)
API (2)
wontfix (1)
help wanted (1)
nice-to-have (1)
Pull Request Labels
enhancement (18)
bug (7)
API (4)
help wanted (2)
nice-to-have (1)
wontfix (1)
Packages
- Total packages: 3
-
Total downloads:
- pypi 14,429 last-month
-
Total dependent packages: 3
(may contain duplicates) -
Total dependent repositories: 7
(may contain duplicates) - Total versions: 26
- Total maintainers: 5
pypi.org: windpowerlib
Creating time series of wind power plants.
- Homepage: http://github.com/wind-python/windpowerlib
- Documentation: https://windpowerlib.readthedocs.io/
- License: MIT
-
Latest release: 0.2.2
published almost 2 years ago
Rankings
Dependent packages count: 3.2%
Stargazers count: 3.9%
Average: 4.6%
Forks count: 4.7%
Downloads: 5.4%
Dependent repos count: 5.6%
Last synced:
6 months ago
proxy.golang.org: github.com/wind-python/windpowerlib
- Documentation: https://pkg.go.dev/github.com/wind-python/windpowerlib#section-documentation
- License: mit
-
Latest release: v0.2.2
published about 2 years ago
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced:
6 months ago
conda-forge.org: windpowerlib
- Homepage: http://github.com/wind-python/windpowerlib
- License: MIT
-
Latest release: 0.2.1
published almost 5 years ago
Rankings
Forks count: 18.4%
Stargazers count: 22.5%
Average: 31.5%
Dependent repos count: 34.0%
Dependent packages count: 51.2%
Last synced:
6 months ago
Dependencies
doc/requirements.txt
pypi
- ipykernel *
- nbsphinx *
- pandas *
- requests *
- sphinx >=1.4
setup.py
pypi
- pandas *
pyproject.toml
pypi