sat-utils / sat-search

A python client for sat-api
MIT License
188 stars 43 forks source link

SatSearchError for landsat-8-l1 collection #118

Open cloudisnoise opened 3 years ago

cloudisnoise commented 3 years ago

Unable to use sat-search search for landsat-8-l1 collection.

from satsearch import Search
search = Search(bbox=[-110, 39.5, -105, 40.5],
               datetime='2021-04-26/2021-05-05',
               collections=['landsat-8-l1'],
               url = 'https://m2m.cr.usgs.gov/api/api/json/stable/')

print('%s items' % search.found())

This raises the following error.

SatSearchError: {"requestId": 280080498, "version": "stable", "data": null, "errorCode": "NOT_FOUND", "errorMessage": "Invalid Endpoint"}

I am not sure if sat-search is able to reach out to the latest Landsat API. It would be very useful if sat-search can search the landsat dataset. I may have missed the required documentation on how to use sat-search for this, if so, could someone help me with the piece of code to search for the latest landsat product for given bbox and datetime. Thanks,