You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -82,8 +85,14 @@ You can also look at the examples in the `Examples section <http://windpowerlib.
82
85
Wind turbine data
83
86
==================
84
87
88
+
The windpowerlib provides data of many wind turbines but it is also possible to
89
+
use your own turbine data.
90
+
91
+
Use internal data
92
+
~~~~~~~~~~~~~~~~~
93
+
85
94
The windpowerlib provides `wind turbine data <https://github.com/wind-python/windpowerlib/tree/master/windpowerlib/oedb>`_
86
-
(power curves, hub heights, etc.) for a large set of wind turbines. Have a look at the `example <http://windpowerlib.readthedocs.io/en/stable/modelchain_example_notebook.html#Initialize-wind-turbine>`_ on how
95
+
(power curves, hub heights, etc.) for a large set of wind turbines. See `Initialize wind turbine` in :ref:`examples_section_label` on how
87
96
to use this data in your simulations.
88
97
89
98
The dataset is hosted and maintained on the `OpenEnergy database <https://openenergy-platform.org/dataedit/>`_ (oedb).
@@ -94,9 +103,61 @@ To update your local files with the latest version of the `oedb turbine library
94
103
from windpowerlib.wind_turbine import load_turbine_data_from_oedb
95
104
load_turbine_data_from_oedb()
96
105
106
+
If you find your turbine in the database it is very easy to use it in the
107
+
windpowerlib
108
+
109
+
.. code:: python
110
+
111
+
from windpowerlib import WindTurbine
112
+
enercon_e126 = {
113
+
"turbine_type": "E-126/4200", # turbine type as in register
114
+
"hub_height": 135, # in m
115
+
}
116
+
e126 = WindTurbine(**enercon_e126)
117
+
97
118
We would like to encourage anyone to contribute to the turbine library by adding turbine data or reporting errors in the data.
98
119
See `here <https://github.com/OpenEnergyPlatform/data-preprocessing/issues/28>`_ for more information on how to contribute.
99
120
121
+
Use your own turbine data
122
+
~~~~~~~~~~~~~~~~~~~~~~~~~
123
+
124
+
It is possible to use your own power curve. However, the most sustainable way
125
+
is to send us the data to be included in the windpowerlib and to be available
126
+
for all users. This may not be possible in all cases.
127
+
128
+
Assuming the data files looks like this:
129
+
130
+
.. code::
131
+
132
+
wind,power
133
+
0.0,0.0
134
+
3.0,39000.0
135
+
5.0,270000.0
136
+
10.0,2250000.0
137
+
15.0,4500000.0
138
+
25.0,4500000.0
139
+
140
+
You can use pandas to read the file and pass it to the turbine dictionary. I
141
+
you have basic knowledge of pandas it is easy to use any kind of data file.
142
+
143
+
.. code:: python
144
+
145
+
import pandas as pd
146
+
from windpowerlib import WindTurbine, create_power_curve
0 commit comments