Skip to content

Commit a177006

Browse files
Merge branch 'v4-dev' into removing_particle_ti
2 parents c9714f7 + a3d2b1c commit a177006

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

parcels/field.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -910,27 +910,6 @@ def _interpolator3D(self, time, z, y, x, ti, particle=None):
910910
raise RuntimeError(self.interp_method + " is not implemented for 3D grids")
911911
return f(ctx)
912912

913-
def temporal_interpolate_fullfield(self, ti, time):
914-
"""Calculate the data of a field between two snapshots using linear interpolation.
915-
916-
Parameters
917-
----------
918-
ti :
919-
Index in time array associated with time (via :func:`time_index`)
920-
time :
921-
Time to interpolate to
922-
"""
923-
t0 = self.grid.time[ti]
924-
if time == t0:
925-
return self.data[ti, :]
926-
elif ti + 1 >= len(self.grid.time):
927-
raise TimeExtrapolationError(time, field=self)
928-
else:
929-
t1 = self.grid.time[ti + 1]
930-
f0 = self.data[ti, :]
931-
f1 = self.data[ti + 1, :]
932-
return f0 + (f1 - f0) * ((time - t0) / (t1 - t0))
933-
934913
def _spatial_interpolation(self, time, z, y, x, ti, particle=None):
935914
"""Interpolate spatial field values."""
936915
try:

0 commit comments

Comments
 (0)