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

exclude_plaforms arg of LandsatPystacSearcher doesn't work with usgs landsatlook #77

Open
jessjaco opened this issue Dec 17, 2024 · 1 comment

Comments

@jessjaco
Copy link
Collaborator

The platform string is formatted differently than coded here:

if self._exclude_platforms is not None:
landsat_platforms = ["landsat-5", "landsat-7", "landsat-8", "landsat-9"]
query["platform"] = {
"in": [p for p in landsat_platforms if p not in self._exclude_platforms]

It looks like it's LANDSAT_8, etc. See e.g https://landsatlook.usgs.gov/stac-server/collections/landsat-c2l2-sr/items/LC08_L2SR_076068_20201231_20210308_02_T2_SR

@jessjaco
Copy link
Collaborator Author

I supposed valid platforms could be read from the collection itself. See https://landsatlook.usgs.gov/stac-server/collections/landsat-c2l2-sr/ versus https://earth-search.aws.element84.com/v1/collections/landsat-c2-l2

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