Within the kenmerkendewaarden project, some extremes timeseries raised "Exception: tidal wave numbering: HW numbers not always increasing". This was often due to invalid additional extremes reported in https://github.com/Rijkswaterstaat/wm-ws-dl/issues/43. However, at least for IJMBTHVN, there is a valid but strongly asymmetric extreme that causes this error.
It is only an issue after shifting the timezone (which is what happens in kw.calc_gemiddeldgetij()), but it comes from hatyan.calc_HWLWnumbering() already. So even if for kenmerkendewaarden we move to another way of matching culminations and extremes, we will probably want to solve this in hatyan.
If we shift the timeseries with 1 hour (which is done in kw.calc_havengetallen()) it raises "Exception: tidal wave numbering: HW numbers not always increasing" because HW 12737 is interpreted as HW 12738:
if df_ext.index.tz is not None:
df_ext = df_ext.tz_localize(None)
df_num = hatyan.calc_HWLWnumbering(df_ext)
Note: in https://github.com/Deltares/hatyan/issues/311, it was also noted that hatyan.calc_HWLWnumbering() fails for "long 1870-2024 timeseries for HOEKVHLD, even not when providing station argument".
Within the kenmerkendewaarden project, some extremes timeseries raised
"Exception: tidal wave numbering: HW numbers not always increasing"
. This was often due to invalid additional extremes reported in https://github.com/Rijkswaterstaat/wm-ws-dl/issues/43. However, at least for IJMBTHVN, there is a valid but strongly asymmetric extreme that causes this error.It is only an issue after shifting the timezone (which is what happens in
kw.calc_gemiddeldgetij()
), but it comes fromhatyan.calc_HWLWnumbering()
already. So even if for kenmerkendewaarden we move to another way of matching culminations and extremes, we will probably want to solve this in hatyan.Gives:
If we shift the timeseries with 1 hour (which is done in kw.calc_havengetallen()) it raises
"Exception: tidal wave numbering: HW numbers not always increasing"
because HW 12737 is interpreted as HW 12738:Note: in https://github.com/Deltares/hatyan/issues/311, it was also noted that
hatyan.calc_HWLWnumbering()
fails for "long 1870-2024 timeseries for HOEKVHLD, even not when providing station argument".