diff --git a/CHANGES.md b/CHANGES.md index ff3f408ef..65d1f3ce8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -## Version 2.0.0.dev25 (in development) +## Version 2.0.0.dev26 (in development) + +* Fixed a display problem where spatial subsets of datasets appeared shifted on the 3D globe view + [#817](https://github.com/CCI-Tools/cate/issues/817) + +## Version 2.0.0.dev25 * Increased default time-out for data downloads from 10 to 90 seconds. Addresses (but not fixes) [#835](https://github.com/CCI-Tools/cate/issues/835) diff --git a/cate/util/im/image.py b/cate/util/im/image.py index 79c5e7c33..6fcf8cba7 100644 --- a/cate/util/im/image.py +++ b/cate/util/im/image.py @@ -625,9 +625,10 @@ def __init__(self, tile_cache: Cache = None): step_size = 1 << step_exp source_width, source_height = array.shape[-1], array.shape[-2] - size = source_width // step_size, source_height // step_size - num_tiles = size[0] // tile_size[0], size[1] // tile_size[1] - super().__init__(size, + width, height = source_width // step_size, source_height // step_size + tile_width, tile_height = tile_size + num_tiles = (width + tile_width - 1) // tile_width, (height + tile_height - 1) // tile_height + super().__init__((width, height), tile_size=tile_size, num_tiles=num_tiles, mode=str(array.dtype), diff --git a/cate/version.py b/cate/version.py index 22c387860..f25edb561 100644 --- a/cate/version.py +++ b/cate/version.py @@ -21,7 +21,7 @@ # SOFTWARE. # Cate version string (PEP440-compatible), e.g. "0.8.0", "0.8.0.dev1", "0.8.0rc1", "0.8.0rc1.dev1" -__version__ = '2.0.0.dev25' +__version__ = '2.0.0.dev26' # Other package metainfo __title__ = 'cate'