Problem loading timestamps correct #8908
-
Hi, I've tried multiple different options an combinations. My impression is that the following should be enough? But the output is If I open the dataset in gdal I get the times correct. Any pointers appreciated I'm fairly new to xarray. I'm using xarray=2024.2.0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
@simjoh, can you share here the output of import xarray as xr
xr.show_versions() ?
since it sounds like you want decoded time values, i'm curious as to why you have |
Beta Was this translation helpful? Give feedback.
-
@spencerkclark you got it! Indeed the timeintervals are stored in that variable insted of StdTime as I assumed. Sorry for the troubles. I think I will manage to convert timestamps. |
Beta Was this translation helpful? Give feedback.
Thanks for the further information. Sorry I'm not familiar with GDAL—based on the shape I take it this corresponds with the output of the raw data stored in the
StdTime_bounds
variable? Does xarray decode that variable properly as a 2D array of times?