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

How do I download the visuals? #132

Open
dempsey-ryan opened this issue Jan 17, 2023 · 0 comments
Open

How do I download the visuals? #132

dempsey-ryan opened this issue Jan 17, 2023 · 0 comments

Comments

@dempsey-ryan
Copy link

WARNING:root:No such asset (visual)
This is the message I get when I try to download to visuals.

Here is the code that triggers this:

results = Search("https://earth-search.aws.element84.com/v0", intersects=squares.geometry.__geo_interface__['features'][0]['geometry'], datetime='2017-05-15/2018-05-30')

results.items().download(key='visual')

It is odd because when I list the assets as follows:

items = results.items()
keys = set([k for i in items for k in i.assets])
for key in keys:
    print(key)

'visual' is one of them.

In case it helps, this is what squares.geometry.__geo_interface__['features'][0]['geometry'] looks like. Just a random square in Canada.

{'type': 'Polygon',
 'coordinates': (((-75.6813214900881, 45.431580290200486),
   (-75.68132525416132, 45.43157183432915),
   (-75.68133726381207, 45.43157448457319),
   (-75.68133349974086, 45.431582940445146),
   (-75.6813214900881, 45.431580290200486)),)}

Another thing that's odd is when I download the thumbnail, it looks nothing like what I see when I go to these coordinates in Google Maps. Am I using the wrong EPSG (4326 - WGS84)? What EPSG does sat-search take as input?

Thanks

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