Closed felixcremer closed 5 months ago
Weird. But I can't actually reproduce it:
julia> lookup(RasterStack(path), Ti)
Sampled{Dates.DateTime} ForwardOrdered Irregular DimensionalData.Dimensions.Lookups.Points
wrapping: 2920-element Vector{Dates.DateTime}:
2013-01-01T00:00:00
2013-01-01T06:00:00
2013-01-01T12:00:00
2013-01-01T18:00:00
2013-01-02T00:00:00
2013-01-02T06:00:00
2013-01-02T12:00:00
2013-01-02T18:00:00
2013-01-03T00:00:00
2013-01-03T06:00:00
2013-01-03T12:00:00
⋮
2014-12-29T06:00:00
2014-12-29T12:00:00
2014-12-29T18:00:00
2014-12-30T00:00:00
2014-12-30T06:00:00
2014-12-30T12:00:00
2014-12-30T18:00:00
2014-12-31T00:00:00
2014-12-31T06:00:00
2014-12-31T12:00:00
2014-12-31T18:00:00
Maybe try main?
It is fixed on main.
When I open the data from the xarray tutorial with Rasters I get very irregular time axis values. I would have expected to get clear hourly DateTime objects every six hours. The time axis is saved in the netcdf as an integer value hours since 1800-01-01.
It seems to me as if the data is converted to Float and then there is some strange float interaction.