pyrad.util.time_avg_range#
- pyrad.util.time_avg_range(timeinfo, avg_starttime, avg_endtime, period)[source]#
finds the new start and end time of an averaging
- Parameters:
timeinfo (datetime) – the current volume time
avg_starttime (datetime) – the current average start time
avg_endtime (datetime) – the current average end time
period (float) – the averaging period
- Returns:
new_starttime (datetime) – the new average start time
new_endtime (datetime) – the new average end time