Skip to content

Commit d6f13ad

Browse files
Scaling down velocities to avoid outofbounds errors
1 parent 922015e commit d6f13ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_interpolation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def create_interpolation_data_with_land():
5454
tdim, zdim, ydim, xdim = 20, 5, 10, 10
5555
ds = xr.Dataset(
5656
{
57-
"U": (("time", "depth", "lat", "lon"), np.random.random((tdim, zdim, ydim, xdim))),
58-
"V": (("time", "depth", "lat", "lon"), np.random.random((tdim, zdim, ydim, xdim))),
59-
"W": (("time", "depth", "lat", "lon"), np.random.random((tdim, zdim, ydim, xdim))),
57+
"U": (("time", "depth", "lat", "lon"), np.random.random((tdim, zdim, ydim, xdim)) / 1e3),
58+
"V": (("time", "depth", "lat", "lon"), np.random.random((tdim, zdim, ydim, xdim)) / 1e3),
59+
"W": (("time", "depth", "lat", "lon"), np.random.random((tdim, zdim, ydim, xdim)) / 1e3),
6060
},
6161
coords={
6262
"time": np.linspace(0, tdim - 1, tdim),

0 commit comments

Comments
 (0)