Closed evacougnon closed 2 years ago
The issue was that the timestamps were being written to the hourly product in random order (the averaged velocity values were otherwise fine).
Fixed in #158!
Thanks for all your work on this @evacougnon ! The notebook was helpful for doing a final check too.
Just for the record, the root of the issue was that before Python 3.6 (I think...) dictionary-like objects were generally not ordered, and the original code used such a structure to set the timestamps for the hourly product. And we didn't have unittests for that code until now...
This issue was first raised by the Ocean Observer group.
After some investigation I reproduced the same inconsistency and therefore the
velocity_hourly_timeseries.py
needs to be checked. The issue may come from the way the ragged array is set.Here is the script (using jupyter notebook) I used to reproduce the error: hourlytimeseries_vs_deployment.zip
Below is an email describing the issue: