Commit 9fd641d
fix: encode time vars with float64 and clean epoch for xarray >= 2025 compat
xarray 2025.9.0 switched to a numpy-based time decoder that fails in two ways:
- rejects reference times with non-zero seconds (e.g. 'seconds since 2022-11-12 00:00:37')
- overflows when decoding NaT (int64.min) stored as integer seconds
Fix by explicitly encoding time and time_waves_imu with
'seconds since 1970-01-01' and dtype=float64 so NaT round-trips as NaN.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 41e6be2 commit 9fd641d
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
491 | 502 | | |
0 commit comments