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

Reduce the STAC calls made by PlanetaryComputer during ingestion/materialization #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

favyen2
Copy link
Collaborator

@favyen2 favyen2 commented Mar 3, 2025

Reduce the STAC calls made by PlanetaryComputer during ingestion/materialization.

During direct materialization in particular, we previously would make 3 STAC calls to get STAC item by ID: once in get_raster_bands, once in get_raster_bounds, and once in read_raster.

Now we expose a cache_dir option so we save the asset URLs during preparing, so we don't need any of these calls. Although the asset URLs are now saved with the item, the cache_dir is still needed because we don't currently have access to the item objects when materializing with a TileStore interface.

This speeds up direct materialization substantially since previously the STAC API calls were a bottleneck.

…rialization.

During direct materialization in particular, we previously would make 3 STAC calls
to get STAC item by ID: once in get_raster_bands, once in get_raster_bounds, and
once in read_raster.

Now we expose a cache_dir option so we save the asset URLs during preparing, so
we don't need any of these calls. Although the asset URLs are now saved with the
item, the cache_dir is still needed because we don't currently have access to the
item objects when materializing with a TileStore interface.

This speeds up direct materialization substantially since previously the STAC API
calls were a bottleneck.
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

Successfully merging this pull request may close these issues.

1 participant