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 running tutorial notebook stac-load-e84-aws.ipynb #74

Open
itcarroll opened this issue Aug 15, 2023 · 0 comments
Open

Error when running tutorial notebook stac-load-e84-aws.ipynb #74

itcarroll opened this issue Aug 15, 2023 · 0 comments

Comments

@itcarroll
Copy link

Executing the tutorial notebook stac-load-e84-aws.ipynb gives me the following error:

DoesNotConformTo                          Traceback (most recent call last)
Cell In[2], line 8
      4 bbox = (x - r, y - r, x + r, y + r)
      6 catalog = Client.open("https://earth-search.aws.element84.com/v0")
----> 8 query = catalog.search(
      9     collections=["sentinel-s2-l2a-cogs"], datetime="2021-09-16", limit=100, bbox=bbox
     10 )
     12 items = list(query.get_items())
     13 print(f"Found: {len(items):d} datasets")

File ~/Library/Caches/pypoetry/virtualenvs/dotfiles-S-yQfRXO-py3.10/lib/python3.10/site-packages/pystac_client/client.py:588, in Client.search(self, method, max_items, limit, ids, collections, bbox, intersects, datetime, query, filter, filter_lang, sortby, fields)
    486 """Query the ``/search`` endpoint using the given parameters.
    487 
    488 This method returns an :class:`~pystac_client.ItemSearch` instance. See that
   (...)
    584         a ``"rel"`` type of ``"search"``.
    585 """
    587 if not self.conforms_to(ConformanceClasses.ITEM_SEARCH):
--> 588     raise DoesNotConformTo(
    589         "ITEM_SEARCH", "There is not fallback option available for search."
    590     )
    592 return ItemSearch(
    593     url=self._search_href(),
    594     method=method,
   (...)
    608     modifier=self.modifier,
    609 )

DoesNotConformTo: Server does not conform to ITEM_SEARCH, There is not fallback option available for search.

I think updating to server "https://earth-search.aws.element84.com/v1" and collection "sentinel-2-l2a" may be necessary.

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