python_codes.meteo_analysis.compute_circadian_annual_cycle#

compute_circadian_annual_cycle(theta, U, time)[source]#

Average the wind data into bins of ‘time of day’ and ‘day of year’.

Parameters
  • theta (array_like) – wind orientation in degrees.

  • U (array_like) – wind velocity, same shape as theta.

  • time (array_like) – numpy array of datetime.datetime objects, same shape as theta.

Returns

  • np.array, shape (366, 24) – the wind orientation averaged into bins of ‘time of day’ and ‘day of year’.

  • np.array, shape (366, 24) – the wind velocity averaged into bins of ‘time of day’ and ‘day of year’.

  • np.array, shape (366,) – the days corresponding to the first dimension of the averaged two dimensional arrays.

  • np.array, shape (24,) – the hours corresponding to the first dimension of the averaged two dimensional arrays.