windpowerlib.wind_turbine.WindTurbine.fetch_turbine_data

WindTurbine.fetch_turbine_data()[source]

Fetches data of the requested wind turbine.

Method fetches nominal power as well as power coefficient curve or power curve from a data file provided along with the windpowerlib. You can also use this function to import your own power (coefficient) curves. Therefore the wind speeds in m/s have to be in the first row and the corresponding power coefficient curve values or power curve values in W in a row where the first column contains the turbine name (See directory windpowerlib/data as reference).

Returns:
Return type:self

Examples

>>> from windpowerlib import wind_turbine
>>> enerconE126 = {
...    'hub_height': 135,
...    'rotor_diameter': 127,
...    'turbine_name': 'ENERCON E 126 7500',
...    'fetch_curve': 'power_coefficient_curve'}
>>> e126 = wind_turbine.WindTurbine(**enerconE126)
>>> print(e126.power_coefficient_curve['values'][5])
0.423
>>> print(e126.nominal_power)
7500000