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 1a1c6f4 commit 38c0adc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/anemoi/datasets/create/functions/filters/rotate_winds.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from collections import defaultdict

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


class NewDataField:
Expand Down Expand Up @@ -65,7 +65,7 @@ def execute(
assert x.grid_mapping == y.grid_mapping

lats, lons = x.grid_points()
x_new, y_new = rotate_wind(
x_new, y_new = rotate_vector(
lats,
lons,
x.to_numpy(flatten=True),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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


class NewDataField:
Expand Down Expand Up @@ -60,7 +60,7 @@ def execute(context, input, u, v):

assert x.rotation == y.rotation

u_new, v_new = unrotate_wind(
u_new, v_new = unrotate_vector(
lats,
lons,
x.to_numpy(flatten=True),
Expand Down

0 comments on commit 38c0adc

Please sign in to comment.