nsrdb.utilities.interpolation.temporal_lin
- temporal_lin(array, ti_native, ti_new)[source]
Linearly 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