flasc.data_processing.dataframe_manipulations.set_pow_ref_by_turbines

flasc.data_processing.dataframe_manipulations.set_pow_ref_by_turbines#

flasc.data_processing.dataframe_manipulations.set_pow_ref_by_turbines(df, turbine_numbers)[source]#

Add power reference column by list of turbines.

Add a column called 'pow_ref' in your dataframe with value equal to the averaged turbulence intensity measurements of all the turbines listed in turbine_numbers.

Parameters:
  • df (pd.Dataframe) -- Dataframe with measurements. This dataframe typically consists of wd_%03d, ws_%03d, ti_%03d, pow_%03d, and potentially additional measurements.

  • turbine_numbers ([list, array]) -- List of turbine numbers that should be used to calculate the column average.

Returns:

Dataframe which equals the inserted dataframe

plus the additional column called 'ti'.

Return type:

pd.Dataframe