You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In xarray.io.get_variable, if the datetime argument is an ISO8601 datetime like 2025-02-25T15:33:38Z with a date and a time, the time part of the datetime is dropped. This causes a problem for assets whose temporal dimension is more frequent than daily, because get_variable will always snap to the nearest day.
I think the fix is to simply remove the split by T and keep datetime intact.
Problem description
In
xarray.io.get_variable
, if thedatetime
argument is an ISO8601 datetime like2025-02-25T15:33:38Z
with a date and a time, the time part of the datetime is dropped. This causes a problem for assets whose temporal dimension is more frequent than daily, becauseget_variable
will always snap to the nearest day.I think the fix is to simply remove the split by
T
and keepdatetime
intact.titiler/src/titiler/xarray/titiler/xarray/io.py
Lines 175 to 187 in 28d33a6
The text was updated successfully, but these errors were encountered: