Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AliceBalfanz opened this issue Jan 5, 2021 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@AliceBalfanz
Copy link
Contributor

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

@forman forman added the bug Something isn't working label Feb 3, 2021
@forman forman self-assigned this Feb 3, 2021
@forman
Copy link
Member

forman commented Apr 16, 2021

@AliceBalfanz this should be fixed already, can you pls confirm?

@AliceBalfanz
Copy link
Contributor Author

This is not fixed yet, same error still exists as above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants