xcube-dev / xcube

xcube is a Python package for generating and exploiting data cubes powered by xarray, dask, and zarr.
https://xcube.readthedocs.io/
MIT License
201 stars 20 forks source link

The class `DataDescriptor` may support `datetime.datetime` objects in the `time_range` #1031

Closed konstntokas closed 4 months ago

konstntokas commented 4 months ago

Is your feature request related to a problem? Please describe. The class xcube.core.store.DataDescriptor supports only datetime.date objects in the filed time_range. This may be not sufficient when describing data_ids which refer to data resources with time stamps being only seconds or minutes apart from each other, e.g. multiple items in a STAC referring to consecutive image tiles.

Describe the solution you'd like The class xcube.core.store.DataDescriptor may also support datetime.datetime objects in the field time_range.