brightwind.analyse.analyse.dist_of_wind_speed

brightwind.analyse.analyse.dist_of_wind_speed(wspd, max_speed=30, max_y_value=None, return_data=False)

Accepts a wind speed time series and computes it’s frequency distribution. That is, how often does the wind blow within each wind speed bin.

Parameters
  • wspd (pd.Series) – Time series of the wind speed variable whose distribution we need to find.

  • max_speed (int) – Max wind speed to consider, default is 30 m/s.

  • max_y_value (float, int) – Max value for the y-axis of the plot to be set. Default will be relative to max calculated data value.

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

Example usage

import brightwind as bw
data = bw.load_csv(bw.datasets.demo_data)

freq_dist_plot, freq_dist = bw.dist_of_wind_speed(data.Spd80mN, return_data=True)