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

Slow creation with dynamic STAC catalogs #140

Open
TomAugspurger opened this issue Jul 5, 2022 · 0 comments
Open

Slow creation with dynamic STAC catalogs #140

TomAugspurger opened this issue Jul 5, 2022 · 0 comments

Comments

@TomAugspurger
Copy link
Collaborator

TomAugspurger commented Jul 5, 2022

In

for subcatalog in self._stac_obj.get_children():
, intake-stac will recurse into child objects. This will end up making many HTTP requests for large, dynamic STAC catalogs served over a STAC API like https://planetarycomputer.microsoft.com/api/stac/v1.

I believe that all the necessary information is provided at the https://planetarycomputer.microsoft.com/api/stac/v1/collections endpoint. https://github.com/stac-utils/pystac-client handles all the logic for interacting with STAC APIs efficiently (it has subclasses for pystac.Collection, etc.). Something like

pystac_client.Client.open("https://planetarycomputer.microsoft.com/api/stac/v1/").get_collections()

should efficiently get the child collections for APIs that implement the /collections endpoint (I'm unsure about child catalogs; we don't use them).

Might have some overlap with #66.

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