Skip to content

Commit

Permalink
Add missing ekd method to xarrayfield (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult authored Dec 19, 2024
1 parent ddcee7d commit 9f2a883
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/anemoi/datasets/create/functions/sources/xarray/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f2a883

Please sign in to comment.