brightwind.analyse.analyse.TI.by_sector

static TI.by_sector(wspd, wspd_std, wdir, min_speed=0, sectors=12, direction_bin_array=None, direction_bin_labels=None, return_data=False)

Accepts a wind speed series, its standard deviation and a direction series, calculates turbulence intensity (TI) and returns the distribution by of TI by sector

Parameters
  • wspd (pandas.Series) – Wind speed data series

  • wspd_std (pandas.Series) – Wind speed standard deviation data series

  • wdir (pandas.Series) – Wind direction series

  • min_speed (float) – Set the minimum wind speed.

  • sectors (int) – Set the number of direction sectors. Usually 12, 16, 24, 36 or 72.

  • direction_bin_array – (Optional) Array of wind speeds where adjacent elements of array form a bin

  • direction_bin_array – (Optional) To change default behaviour of first sector centered at 0 assign an array of bins to this

  • direction_bin_labels – (Optional) you can specify an array of labels to be used for the bins. uses string labels of the format ‘30-90’ by default

  • return_data (bool) – Set to True if you want the data returned.

Returns

TI distribution with columns names as:

  • Mean_TI (average TI for a speed bin),

  • TI_Count ( number of data points in the bin)

Return type

pandas.DataFrame