Skip to content

Commit ccde7e2

Browse files
Adding unit test for convert_swash
1 parent 8e31d4f commit ccde7e2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_convert.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ def test_convert_copernicusmarine_no_logs(ds, caplog):
174174
assert caplog.text == ""
175175

176176

177+
def test_convert_swash():
178+
data_file, coord_file = parcels.tutorial.open_dataset("SWASH_data/data", download_only=True)
179+
180+
ds_fset = convert.swash_to_sgrid(data_file=data_file, coord_file=coord_file, total_depth=8.0)
181+
FieldSet.from_sgrid_conventions(ds_fset)
182+
183+
177184
def test_convert_fesom_to_ugrid():
178185
grid_file = open_remote_dataset("Benchmarks_FESOM2-baroclinic-gyre/grid")
179186
data_files = open_remote_dataset("Benchmarks_FESOM2-baroclinic-gyre/data")

0 commit comments

Comments
 (0)