I have working codes that support something like this, but I am not sure if I should make a PR.
using DimensionalData, Dates
times = DateTime(2020, 1, 1):Day(1):DateTime(2020, 1, 10)
da = DimArray(1:10, Ti(times))
# Reindex to new times
new_times = DateTime(2020, 1, 1, 12):Day(1):DateTime(2020, 1, 10, 12)
reindex(da, Ti(new_times); method=:bfill)
I am wondering if we would like something like what
xarray.reindexdoes https://docs.xarray.dev/en/stable/generated/xarray.DataArray.reindex.html.I have working codes that support something like this, but I am not sure if I should make a PR.
The interface is something like this below
One thing is that
Basehasreindexmethod for handling subarray.