You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When resampling Himawari full disk data with the native resampler while using a user-defined chunk size the resampling operation fails. Thisis because the aggregation factor of the native resampler is not being a factor of the chunk size.
Expected behavior
The scene is resampled onto the B13 area.
Actual results
An error:
File "/home/users/srproud/Software/satpy/satpy/scene.py", line 955, in resample
self._resampled_scene(new_scn, destination, resampler=resampler,
File "/home/users/srproud/Software/satpy/satpy/scene.py", line 871, in _resampled_scene
res = resample_dataset(dataset, destination_area, **kwargs)
File "/home/users/srproud/Software/satpy/satpy/resample.py", line 1418, in resample_dataset
new_data = resample(source_area, dataset, destination_area, fill_value=fill_value, **kwargs)
File "/home/users/srproud/Software/satpy/satpy/resample.py", line 1381, in resample
res = resampler_instance.resample(data, **kwargs)
File "/home/users/srproud/Software/satpy/satpy/resample.py", line 981, in resample
return super(NativeResampler, self).resample(data,
File "/home/users/srproud/Software/satpy/satpy/resample.py", line 439, in resample
return self.compute(data, cache_id=cache_id, **kwargs)
File "/home/users/srproud/Software/satpy/satpy/resample.py", line 1084, in compute
d_arr = self._expand_reduce(data.data, repeats)
File "/home/users/srproud/Software/satpy/satpy/resample.py", line 1051, in _expand_reduce
return cls._aggregate(d_arr, y_size, x_size)
File "/home/users/srproud/Software/satpy/satpy/resample.py", line 999, in _aggregate
raise ValueError("Aggregation requires arrays with "
ValueError: Aggregation requires arrays with shapes and chunks divisible by the factor
This is because the aggregation factor for the B03 channel (4) is not a factor of the chunk size (550). The problem can be resolved by the user if they change the chunk size, but ideally satpy should be able to sort this out for itself.
The text was updated successfully, but these errors were encountered:
Describe the bug
When resampling Himawari full disk data with the
native
resampler while using a user-defined chunk size the resampling operation fails. Thisis because the aggregation factor of the native resampler is not being a factor of the chunk size.To Reproduce
Expected behavior
The scene is resampled onto the B13 area.
Actual results
An error:
This is because the aggregation factor for the B03 channel (4) is not a factor of the chunk size (550). The problem can be resolved by the user if they change the chunk size, but ideally satpy should be able to sort this out for itself.
The text was updated successfully, but these errors were encountered: