diff --git a/ocf_datapipes/utils/geospatial.py b/ocf_datapipes/utils/geospatial.py index d7ac2062c..93b5b746f 100644 --- a/ocf_datapipes/utils/geospatial.py +++ b/ocf_datapipes/utils/geospatial.py @@ -250,7 +250,7 @@ def spatial_coord_type(ds: xr.Dataset): y_coord: Name of the y-coordinate """ if isinstance(xr.Dataset, ds): - dimension_coords = set([v for k in d.keys() for v in list(ds[k].xindexes)]) + dimension_coords = set([v for k in ds.keys() for v in list(ds[k].xindexes)]) elif isinstance(xr.DataArray, ds): dimension_coords = set(ds.xindexes) else: