windpowerlib.data.get_turbine_types¶
- windpowerlib.data.get_turbine_types(turbine_library='local', print_out=True, filter_=True)[source]¶
Get all provided wind turbine types provided.
Choose by turbine_library whether to get wind turbine types provided by the OpenEnergy Database (‘oedb’) or wind turbine types provided in your local file(s) (‘local’). By default only turbine types for which a power coefficient curve or power curve is provided are returned. Set filter_=False to see all turbine types for which any data (e.g. hub height, rotor diameter, …) is provided.
- Parameters:
turbine_library (str) – Specifies if the oedb turbine library (‘oedb’) or your local turbine data file (‘local’) is evaluated. Default: ‘local’.
print_out (bool) – Directly prints a tabular containing the turbine types in column ‘turbine_type’, the manufacturer in column ‘manufacturer’ and information about whether a power (coefficient) curve exists (True) or not (False) in columns ‘has_power_curve’ and ‘has_cp_curve’. Default: True.
filter (bool) – If True only turbine types for which a power coefficient curve or power curve is provided in the oedb turbine library are returned. Default: True.
- Returns:
Contains turbine types in column ‘turbine_type’, the manufacturer in column ‘manufacturer’ and information about whether a power (coefficient) curve exists (True) or not (False) in columns ‘has_power_curve’ and ‘has_cp_curve’.
- Return type:
Notes
If the power (coefficient) curve of the desired turbine type (or the turbine type itself) is missing you can contact us via github or windpowerlib@rl-institut.de. You can help us by providing data in the format as shown in the data base.
Examples
>>> from windpowerlib import get_turbine_types >>> df=get_turbine_types(print_out=False) >>> print(df[df["turbine_type"].str.contains("E-126")].iloc[0]) manufacturer Enercon turbine_type E-126/4200 has_power_curve True has_cp_curve True Name: 5, dtype: object >>> print(df[df["manufacturer"].str.contains("Enercon")].iloc[0]) manufacturer Enercon turbine_type E-101/3050 has_power_curve True has_cp_curve True Name: 1, dtype: object