Skip to content

Commit 634bece

Browse files
Using nanoseconds as time_origin
1 parent 26b133f commit 634bece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parcels/tools/converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, time_origin: float | np.datetime64 | np.timedelta64 | cftime.
6060
self.time_origin = time_origin
6161
self.calendar = "np_datetime64"
6262
elif isinstance(time_origin, np.timedelta64):
63-
self.time_origin = time_origin.astype("timedelta64[s]")
63+
self.time_origin = time_origin.astype("timedelta64[ns]")
6464
self.calendar = "np_timedelta64"
6565
elif isinstance(time_origin, cftime.datetime):
6666
self.time_origin = time_origin

0 commit comments

Comments
 (0)