sup3r.utilities.utilities.uniform_box_sampler
- uniform_box_sampler(data, shape)[source]
Extracts a sample cut from data.
- Parameters:
data (np.ndarray) – Data array with dimensions (spatial_1, spatial_2, temporal, features)
shape (tuple) – (rows, cols) Size of grid to sample from data
- Returns:
slices (list) – List of slices corresponding to row and col extent of arr sample