From 80cdf5dc8f1374f3aed2bb6bd72e075d241d8801 Mon Sep 17 00:00:00 2001 From: Manuel Schlund Date: Fri, 2 Dec 2022 09:52:54 +0100 Subject: [PATCH] Fixed irregular regridding --- esmvalcore/preprocessor/_regrid_esmpy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esmvalcore/preprocessor/_regrid_esmpy.py b/esmvalcore/preprocessor/_regrid_esmpy.py index 47b672bcaa..f4fb307992 100755 --- a/esmvalcore/preprocessor/_regrid_esmpy.py +++ b/esmvalcore/preprocessor/_regrid_esmpy.py @@ -296,7 +296,7 @@ def get_grid_representants(src, dst): aux_coords_and_dims.append((coord, dims)) # Add scalar dimensions of source cube to target - for scalar_coord in src_rep.coords(dimensions=()): + for scalar_coord in src.coords(dimensions=()): aux_coords_and_dims.append((scalar_coord, ())) dst_rep = iris.cube.Cube(