rex.utilities.utilities.roll_timeseries

roll_timeseries(arr, timezones)[source]

Roll timeseries from UTC to local time. Automatically compute time-shift from UTC offset (timezone) and time-series length.

Parameters
  • arr (ndarray) – Input timeseries array of form (time, sites)

  • timezones (ndarray | list) – Vector of timezone shifts from UTC to local time

Returns

local_arr (ndarray) – Array shifted to local time