Skip to content

Commit 30b32e4

Browse files
Fixing bathymetry sampling
1 parent 5af08cf commit 30b32e4

File tree

1 file changed

+3
-3
lines changed
  • src/virtualship/instruments

1 file changed

+3
-3
lines changed

src/virtualship/instruments/ctd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ def simulate_ctd(
100100
max(
101101
ctd.max_depth,
102102
fieldset.bathymetry.eval(
103-
z=np.array(0, dtype=np.float32),
104-
y=np.array(ctd.spacetime.location.lat, dtype=np.float32),
105-
x=np.array(ctd.spacetime.location.lon, dtype=np.float32),
103+
z=np.array([0], dtype=np.float32),
104+
y=np.array([ctd.spacetime.location.lat], dtype=np.float32),
105+
x=np.array([ctd.spacetime.location.lon], dtype=np.float32),
106106
time=fieldset.time_interval.left,
107107
),
108108
)

0 commit comments

Comments
 (0)