Skip to content

Requesting a cube with same start and end date leads to error #33

@AliceBalfanz

Description

@AliceBalfanz

When requesting a cube with same end and start date, a Value Error is returned: ValueError: Could not determine any valid time stamps

To reproduce:

from xcube.core.store import find_data_store_extensions
from xcube.core.store import new_data_store


store = new_data_store('sentinelhub')
store

cube = store.open_data(data_id='S2L2A',
                       variable_names=['B04','B03', 'B02'],
                       spatial_res = 0.001,
                       bbox=[8, 40, 9, 41],
                       time_range=['2016-12-05', '2016-12-05'])

image

When increasing the end date by one day, it shows that there is a time stamp available for 2016-12-05. I would expect the same outcome when defining the same start and end date as shown above.

cube = store.open_data(data_id='S2L2A',
                       variable_names=['B04','B03', 'B02'],
                       spatial_res = 0.001,
                       bbox=[8, 40, 9, 41],
                       time_range=['2016-12-05', '2016-12-06'])

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions