88import parcels .tutorial
99from parcels import (
1010 FieldSet ,
11+ convert ,
1112)
1213from parcels ._datasets .unstructured .generic import datasets as datasets_unstructured
13- from parcels .convert import fesom_to_ugrid , icon_to_ugrid
1414from parcels .interpolators import (
1515 UxConstantFaceConstantZC ,
1616 UxLinearNodeLinearZF ,
@@ -30,7 +30,7 @@ def ds_fesom_channel() -> ux.UxDataset:
3030 str (_fesom_dir / "w.fesom_channel.nc" ),
3131 ]
3232 ds = ux .open_mfdataset (grid_path , data_path ).rename_vars ({"u" : "U" , "v" : "V" , "w" : "W" })
33- ds = fesom_to_ugrid (ds )
33+ ds = convert . fesom_to_ugrid (ds )
3434 return ds
3535
3636
@@ -53,7 +53,7 @@ def test_fesom2_square_delaunay_uniform_z_coordinate_eval():
5353 Since the underlying data is constant, we can check that the values are as expected.
5454 """
5555 ds = datasets_unstructured ["fesom2_square_delaunay_uniform_z_coordinate" ]
56- ds = fesom_to_ugrid (ds )
56+ ds = convert . fesom_to_ugrid (ds )
5757 fieldset = FieldSet .from_ugrid_conventions (ds )
5858
5959 assert isinstance (fieldset .U .interp_method , UxConstantFaceConstantZC )
@@ -97,7 +97,7 @@ def test_fesom2_square_delaunay_antimeridian_eval():
9797 Since the underlying data is constant, we can check that the values are as expected.
9898 """
9999 ds = datasets_unstructured ["fesom2_square_delaunay_antimeridian" ]
100- ds = fesom_to_ugrid (ds )
100+ ds = convert . fesom_to_ugrid (ds )
101101 fieldset = FieldSet .from_ugrid_conventions (ds )
102102 fieldset .p .interp_method = UxLinearNodeLinearZF ()
103103
@@ -109,7 +109,7 @@ def test_fesom2_square_delaunay_antimeridian_eval():
109109
110110def test_icon_evals ():
111111 ds = datasets_unstructured ["icon_square_delaunay_uniform_z_coordinate" ].copy (deep = True )
112- ds = icon_to_ugrid (ds )
112+ ds = convert . icon_to_ugrid (ds )
113113 fieldset = FieldSet .from_ugrid_conventions (ds , mesh = "flat" )
114114
115115 # Query points, are chosen to be just a fraction off from the center of a cell for testing
0 commit comments