sup3r.utilities.utilities.temporal_coarsening#
- temporal_coarsening(data, t_enhance=4, method='subsample')[source]#
Coarsen data according to t_enhance resolution
- Parameters:
data (Union[np.ndarray, da.core.Array]) – 5D array with dimensions (observations, spatial_1, spatial_2, temporal, features)
t_enhance (int) – factor by which to coarsen temporal dimension
method (str) – accepted options: [subsample, average, total, min, max] Subsample will take every t_enhance-th time step, average will average over t_enhance time steps, total will sum over t_enhance time steps
- Returns:
coarse_data (Union[np.ndarray, da.core.Array]) – 5D array with same dimensions as data with new coarse resolution