From b78cca8ec5e7874f939b0549cf8f3e4de79664f1 Mon Sep 17 00:00:00 2001 From: konstntokas Date: Mon, 23 Dec 2024 08:28:54 +0100 Subject: [PATCH] test failures resolved --- xcube/core/resampling/rectify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xcube/core/resampling/rectify.py b/xcube/core/resampling/rectify.py index df58fe555..43db7692d 100644 --- a/xcube/core/resampling/rectify.py +++ b/xcube/core/resampling/rectify.py @@ -669,8 +669,8 @@ def _compute_var_image_xarray_dask_block( src_bbox = [ int(np.nanmin(dst_src_ij_images[0])), int(np.nanmin(dst_src_ij_images[1])), - min(int(np.nanmax(dst_src_ij_images[0])) + 1, src_var_image.shape[-1]), - min(int(np.nanmax(dst_src_ij_images[1])) + 1, src_var_image.shape[-2]), + min(int(np.nanmax(dst_src_ij_images[0])) + 2, src_var_image.shape[-1]), + min(int(np.nanmax(dst_src_ij_images[1])) + 2, src_var_image.shape[-2]), ] src_var_image = src_var_image[ ..., src_bbox[1] : src_bbox[3], src_bbox[0] : src_bbox[2]