ec-jrc / pyPoseidon

Framework for Hydrodynamic simulations
https://pyposeidon.readthedocs.io/
European Union Public License 1.2
20 stars 7 forks source link

The index of stations output overflows several thousand datapoints #174

Closed pmav99 closed 3 months ago

pmav99 commented 6 months ago

The index of stations.nc looks like this:

array(['2023-08-24T17:07:30.000000000', '2023-08-24T17:10:00.000000000',
       '2023-08-24T17:12:30.000000000', '2023-08-24T17:15:00.000000000',
       '2023-08-24T17:17:30.000000000', '2023-08-24T17:20:00.000000000',
       '2023-08-24T17:22:30.000000000', '2023-08-24T17:25:00.000000000',
       '2023-08-24T17:27:30.000000000', '2023-08-24T17:30:00.000000000',
       '2023-08-24T17:32:30.000000000', '2023-08-24T17:35:00.000000000',
       '2023-08-24T17:37:30.000000000', '2023-08-24T17:40:00.000000000',
       '2023-08-24T17:42:30.000000000', '2023-08-24T17:45:00.000000000',
       '2023-08-24T17:46:40.000000000', '2023-08-24T17:50:00.000000000',    # <- It starts here
       '2023-08-24T17:53:20.000000000', '2023-08-24T17:55:00.000000000',
       '2023-08-24T17:56:40.000000000', '2023-08-24T18:00:00.000000000',
       '2023-08-24T18:03:20.000000000', '2023-08-24T18:05:00.000000000',
       '2023-08-24T18:06:40.000000000', '2023-08-24T18:10:00.000000000',
       '2023-08-24T18:13:20.000000000', '2023-08-24T18:15:00.000000000',
       '2023-08-24T18:16:40.000000000', '2023-08-24T18:20:00.000000000',
       '2023-08-24T18:23:20.000000000', '2023-08-24T18:25:00.000000000',

The problem is that the index is an integer value that overflows. This is a known Schism issue that has been fixed on master: https://github.com/schism-dev/schism/issues/119

Nevertheless, it should be rather easy to fix the overflow on pyposeidon, too.