From 200ab3e45999358c2bfebc64ac3c615bebf9f4b5 Mon Sep 17 00:00:00 2001 From: David Hassell Date: Tue, 11 Jun 2024 13:59:12 +0100 Subject: [PATCH] coorect finding coordrefs in cf.aggregate --- cf/aggregate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf/aggregate.py b/cf/aggregate.py index 2d53d58d69..c5207e5427 100644 --- a/cf/aggregate.py +++ b/cf/aggregate.py @@ -511,7 +511,7 @@ def __init__( "cf_role": None, "hasdata": dim_coord.has_data(), "hasbounds": hasbounds, - "coordrefs": self.find_coordrefs(axis), + "coordrefs": self.find_coordrefs(dim_coord_key), "cellsize": cellsize, "spacing": spacing, }