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

Error when indexing Sentinel S2 dataset: KeyError: 'sentinel:latitude_band' #17

Open
kpapap opened this issue Nov 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@kpapap
Copy link

kpapap commented Nov 3, 2023

I get a "KeyError: 'sentinel:latitude_band'" when trying to index Sentinel S2 L2A or L1C datasets, for example:

When I run:
docker-compose exec -T openeo_odc_driver bash -c "stac-to-dc --bbox='20,39,25,41' --catalog-href='https://earth-search.aws.element84.com/v1/' --collections='sentinel-2-l2a' --datetime='2023-01-01/2023-07-01'"

I get:
File "/usr/local/lib/python3.10/site-packages/odc/apps/dc_tools/_stac.py", line 96, in _stac_product_lookup
properties["sentinel:latitude_band"],
KeyError: 'sentinel:latitude_band'
Indexing from STAC API...
Added 0 Datasets, failed 1082 Datasets

When I run:
docker-compose exec -T openeo_odc_driver bash -c "stac-to-dc --bbox='20,39,25,41' --catalog-href='https://earth-search.aws.element84.com/v1/' --collections='sentinel-2-l1c' --datetime='2023-01-01/2023-07-01'"

I get the same error:
KeyError: 'sentinel:latitude_band'
Indexing from STAC API...
Added 0 Datasets, failed 1082 Datasets

Is there a suggestion? Thank you!

@pierocampa
Copy link
Member

Hi @kpapap,
thanks for tracking this.

Yes, this is a known issue, we raised the problem in the ODC GitHub:
opendatacube/cube-in-a-box#64

We'll keep you posted here too!

@clausmichele
Copy link
Member

This has been solved in the new branch where I'm using the implementation of the processes from openeo-processes-dask:
https://github.com/SARScripts/openeo_odc_driver/blob/dask_processes/Makefile

I will port it to the master branch.

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

3 participants