Skip to content

Conversation

@favyen2
Copy link
Collaborator

@favyen2 favyen2 commented Dec 18, 2025

The data source is very similar to Planetary Computer for get_items implementation, so I created an abstract StacSource to handle cases where basically the get_items is just served from a STAC API. I also implemented a StacClient to replace our usage of pystac_client in cases where we are just calling the search endpoint only; the client only supports that one endpoint, but doesn't have the caching issues since the only thing it does beyond making a request is handle pagination in the response.

Also it seems the aws_open_data.Sentinel2 bucket is now free so I updated it to use anonymous access for that. That one has a STAC API so in theory we could greatly simplify get_items implementation by calling that API but I left it otherwise as is for now.

…lement 84.

The data source is very similar to Planetary Computer for get_items implementation,
so I created an abstract StacSource to handle cases where basically the get_items is
just served from a STAC API. I also implemented a StacClient to replace our usage of
pystac_client in cases where we are just calling the search endpoint only; the client
only supports that one endpoint, but doesn't have the caching issues since the only
thing it does beyond making a request is handle pagination in the response.
Copy link
Collaborator

@yawenzzzz yawenzzzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! just a few minor things to fix.

return SourceItem.deserialize(json.load(f))

# No cache or not in cache, so we need to make the STAC request.
logger.debug("Getting STAC item {name}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing f prefix

"nir": ["B08"],
"nir09": ["B09"],
"swir16": ["B11"],
"swin22": ["B12"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swir?

whether there is a raster in the store matching the source, item, and
bands.
"""
# Always ready since we wrap accesses to Planetary Computer.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove "Planetary Computer"

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.

3 participants