TimeConverter.reltime
with time_origin = np.timedelta64
sensitive to precision
#1738
Labels
TimeConverter.reltime
with time_origin = np.timedelta64
sensitive to precision
#1738
Parcels version
master
Description
The internals of
TimeConverter
withnp.timedelta64
assumes that the precision is in seconds, when that might not actually be the case. Hencenp.timedelta64(1, "D") - 1
gives 0 when in reality it should be treated in seconds all the way.What would be a suitable precision for the object? I assume nanoseconds and then convert to float seconds for output?
Code sample
The text was updated successfully, but these errors were encountered: