sup3r.preprocessing.batch_queues.utilities.spatial_simple_enhancing#
- spatial_simple_enhancing(data, s_enhance=2, obs_axis=True)[source]#
Simple enhancing according to s_enhance resolution
- Parameters:
data (Union[np.ndarray, da.core.Array]) – 5D | 4D | 3D array with dimensions: (n_obs, spatial_1, spatial_2, temporal, features) (obs_axis=True) (n_obs, spatial_1, spatial_2, features) (obs_axis=True) (spatial_1, spatial_2, temporal, features) (obs_axis=False) (spatial_1, spatial_2, temporal_or_features) (obs_axis=False)
s_enhance (int) – factor by which to enhance spatial dimensions
obs_axis (bool) – Flag for if axis=0 is the observation axis. If True (default) spatial axis=(1, 2) (zero-indexed), if False spatial axis=(0, 1)
- Returns:
enhanced_data (Union[np.ndarray, da.core.Array]) – 3D | 4D | 5D array with same dimensions as data with new enhanced resolution