sup3r.preprocessing.utilities.get_time_index_freqs

sup3r.preprocessing.utilities.get_time_index_freqs#

get_time_index_freqs(time_index)[source]#

Get nominal frequency and all unique frequencies for given time index.

Note

The nominal frequency is determined by the minimum time delta in the time index. Not seeing an edge case where the nominal frequency would not be the minimum frequency but it’s possible we should use the most common frequency instead?

Parameters:

time_index (pd.DatetimeIndex) – Time index to get frequency for.

Returns:

  • nominal_freq (pd.DateOffset) – Nominal frequency for given time index.

  • unique_freqs (list) – List of unique frequencies in seconds for given time index.