diff --git a/trajan/traj/orthogonal.py b/trajan/traj/orthogonal.py index 7b9215a..fec7775 100644 --- a/trajan/traj/orthogonal.py +++ b/trajan/traj/orthogonal.py @@ -330,7 +330,7 @@ def gridtime(self, times, time_varname=None, round=True): # {time_varname: np.where(~pd.isna(ds[time_varname].values))[0]}) if ds.sizes[time_varname] > 0: - ds = ds.interp({time_varname: times}) + ds = ds.interp({time_varname: times} kwargs={'fill_value': 'extrapolate'}) else: logger.warning(f"time variable ({time_varname}) has zero size")