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

Not getting latest data of sat-search #133

Open
anilmohite22 opened this issue Jun 6, 2023 · 4 comments
Open

Not getting latest data of sat-search #133

anilmohite22 opened this issue Jun 6, 2023 · 4 comments

Comments

@anilmohite22
Copy link

anilmohite22 commented Jun 6, 2023

I'm trying to get latest sat-search data from 1 May 2023 to till date but it is showing empty
but old data I'm able to access.

I'm using this api url : https://earth-search.aws.element84.com/v0

sample code:

import satsearch
timeRange = '2023-05-01/2023-05-24'
bbox = [72.78151203878225, 19.46368082936482, 72.78289605863394, 19.464469853150305]
SentinelSearch = satsearch.Search.search( 
    url = "https://earth-search.aws.element84.com/v0",
    bbox = bbox,
    datetime = timeRange,
    collections =  ["sentinel-s2-l2a"] #['sentinel-s2-l2a-cogs']
)
Sentinel_items = SentinelSearch.items()
print('summary: ', Sentinel_items.summary())

Output like this:
summary: Items (0):
date id

@aimad1234
Copy link

I am facing a similar issue as I attempted to acquire satellite imagery after May, but it does not meet my requirements.

@anilmohite22
Copy link
Author

Anyone have any solution for this or any other similar way to get satellite data

@matthewhanson
Copy link
Member

Hello @anilmohite22 and @aimad1234 ,

We actually have a new version of the API (v1), and you can consider v0 being deprecated. You can read about the updates in the blog post here:
https://element84.com/blog/introducing-earth-search-v1-new-datasets-now-available

Also, sat-search is currently unmaintained and I'm not sure it will work with the new API. The replacement for sat-search is pystac-client: https://github.com/stac-utils/pystac-client

@aimad1234
Copy link

@matthewhanson Thank you, sir, for providing this answer. I am grateful for your assistance, and I am pleased to inform you that I was able to successfully implement the solution using the pystac_client.

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

3 participants