nsrdb.utilities.interpolation.temporal_step
- temporal_step(array, ti_native, ti_new)[source]
Stepwise interpolate an array at a native timeindex to the new timeindex
- Parameters:
array (np.ndarray) – Data (time X space) at native temporal resolution.
ti_native (pd.DatetimeIndex) – Pandas datetime index for the array native (old) resolution.
ti_new (pd.DatetimeIndex) – Pandas datetime index for the array desired (new) resolution.
- Returns:
array (np.ndarray) – Data at new temporal resolution