pyrad.util.time_series_statistics#

pyrad.util.time_series_statistics(t_in_vec, val_in_vec, avg_time=3600, base_time=1800, method='mean', dropnan=False)[source]#

Computes statistics over a time-averaged series. Only if package pandas is available otherwise returns None

Parameters:
  • t_in_vec (datetime array) – the input date and time array

  • val_in_vec (float array) – the input values array

  • avg_time (int) – averaging time [s]

  • base_time (int) – base time [s]

  • method (str) – statistical method

  • dropnan (boolean) – if True remove NaN from the time series

Returns:

  • t_out_vec (datetime array) – the output date and time array

  • val_out_vec (float array) – the output values array