windpowerlib.data.store_turbine_data_from_oedb

windpowerlib.data.store_turbine_data_from_oedb(schema='supply', table='wind_turbine_library', threshold=0.2)[source]

Loads turbine library from the OpenEnergy database (oedb).

Turbine data is saved to csv files (‘oedb_power_curves.csv’, ‘oedb_power_coefficient_curves.csv’ and ‘oedb_nominal_power’) for offline usage of the windpowerlib. If the files already exist they are overwritten. In case the turbine library on the oedb contains too many faulty turbines, the already existing files are not overwritten. The accepted percentage of faulty turbines can be set through the parameter threshold.

Parameters:
  • schema (str) – Database schema of the turbine library.

  • table (str) – Table name of the turbine library.

  • threshold (float) – In case there are turbines in the turbine library with faulty data (e.g. duplicate wind speed entries in the power (coefficient) curve data), the threshold defines the share of accepted faulty turbine ata up to which the existing turbine data is overwritten by the newly downloaded data. For example, a threshold of 0.1 means that more than 10% of the turbines would need to have invalid data in order to discard the downloaded data. This is to make sure that in the rare case the oedb data is too buggy, the turbine data that is by default provided with the windpowerlib is not overwritten by poor data.

Returns:

Turbine data of different turbines such as ‘manufacturer’, ‘turbine_type’, ‘nominal_power’.

Return type:

pandas.DataFrame