Coerce a time coordinate so that it always flows forward. If coercion is necessary, the input ds will be directly modified.
a dataset for which the time coordinate needs to be corrected
name of the time coordinate to be corrected
length of the local window before the reversed timestamp within which the median pinging interval is used to infer the next ping time
This is to correct for problems sometimes observed in EK60/80 data
where a time coordinate (ping_time
or time1
) would suddenly
go backward for one ping, but then the rest of the pinging interval
would remain undisturbed.