reVX.hybrid_stats.temporal_agg.get_time_index

get_time_index(h5_path, year=None)[source]

Extract time_index from .h5 file. If ‘year’ is provided extact time_index for given year.

Parameters:
  • h5_path (str) – Path to .h5 file to extract meta and time_index

  • year (str | int, optional) – Year to extract time-index for if running on a multi-year file, by default None

Returns:

time_index (pandas.DatatimeIndex) – Datetime Index