From 9f2a883c394fe049116ce76231e1ae081663b9ec Mon Sep 17 00:00:00 2001 From: b8raoult <53792887+b8raoult@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:44:13 +0000 Subject: [PATCH] Add missing ekd method to xarrayfield (#163) --- src/anemoi/datasets/create/functions/sources/xarray/field.py | 4 ++++ 1 file changed, 4 insertions(+) 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