diff --git a/src/CSET/operators/read.py b/src/CSET/operators/read.py index c53b9edcd..a43fef8d5 100644 --- a/src/CSET/operators/read.py +++ b/src/CSET/operators/read.py @@ -145,6 +145,13 @@ def read_cubes( cubes = cubes.merge() cubes = cubes.concatenate() + # Ensure dimension coordinates are bounded. + for cube in cubes: + for dim_coord in cube.coords(dim_coords=True): + # Iris can't guess the bounds of a scalar coordinate. + if not dim_coord.has_bounds() and dim_coord.shape[0] > 1: + dim_coord.guess_bounds() + logging.debug("Loaded cubes: %s", cubes) if len(cubes) == 0: warnings.warn(