diff --git a/src/anemoi/datasets/create/functions/sources/xarray/field.py b/src/anemoi/datasets/create/functions/sources/xarray/field.py index 3f4c2a5e..05cfed72 100644 --- a/src/anemoi/datasets/create/functions/sources/xarray/field.py +++ b/src/anemoi/datasets/create/functions/sources/xarray/field.py @@ -92,6 +92,10 @@ def _metadata(self): def grid_points(self): return self.owner.grid_points() + def to_latlon(self, flatten=True): + assert flatten + return dict(lat=self.latitudes, lon=self.longitudes) + @property def resolution(self): return None