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

stac2ds does not preserve accessories #168

Open
jmettes opened this issue Sep 2, 2024 · 0 comments
Open

stac2ds does not preserve accessories #168

jmettes opened this issue Sep 2, 2024 · 0 comments

Comments

@jmettes
Copy link

jmettes commented Sep 2, 2024

Accessories, for example the thumbnail, get lost when converting to eo3.

>>> from odc.stac.eo3 import stac2ds
>>> from pystac import Item

>>> item = Item.from_file("https://earth-search.aws.element84.com/v1/collections/sentinel-2-c1-l2a/items/S2A_T01KAA_20240825T221936_L2A")
>>> 'preview' in item.assets
True
>>> dataset = next(stac2ds([item]))
>>> 'accessories' in dataset.metadata_doc
False
>>> 'thumbnail' in dataset.metadata_doc['measurements']
False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant