Skip to content

Commit 07163d5

Browse files
committed
angle fields have allow_time_extrapolation=True
(shouldn't be necessary but for double check)
1 parent f6c5381 commit 07163d5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

parcels/field.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ def __init__(self, name, data, lon=None, lat=None, depth=None, time=None, grid=N
201201
raise ValueError("Unsupported mesh type. Choose either: 'spherical' or 'flat'")
202202
self.interp_method = interp_method
203203
self.fieldset = None
204-
if allow_time_extrapolation is None:
204+
if self.name in ['cosU', 'sinU', 'cosV', 'sinV']:
205+
self.allow_time_extrapolation = True
206+
elif allow_time_extrapolation is None:
205207
self.allow_time_extrapolation = True if len(self.grid.time) == 1 else False
206208
else:
207209
self.allow_time_extrapolation = allow_time_extrapolation

0 commit comments

Comments
 (0)