Skip to content

Commit

Permalink
Fix earthkit.geo import
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorkertesz committed Jun 3, 2024
1 parent 2a9c1f7 commit 1a1c6f4
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/anemoi/datasets/create/functions/filters/rotate_winds.py
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
from collections import defaultdict

from earthkit.data.indexing.fieldlist import FieldArray
from earthkit.geo.wind import rotate_wind
from earthkit.geo.rotate import rotate_wind


class NewDataField:
@@ -70,7 +70,11 @@ def execute(
lons,
x.to_numpy(flatten=True),
y.to_numpy(flatten=True),
(source_projection if source_projection is not None else CRS.from_cf(x.grid_mapping)),
(
source_projection
if source_projection is not None
else CRS.from_cf(x.grid_mapping)
),
target_projection,
)

Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@

# import numpy as np
from earthkit.data.indexing.fieldlist import FieldArray
from earthkit.geo.wind import unrotate_wind
from earthkit.geo.rotate import unrotate_wind


class NewDataField:

0 comments on commit 1a1c6f4

Please sign in to comment.