pangeo-data / pangeo-tutorial

Interactive jupyter notebooks for pangeo tutorial events
Creative Commons Attribution 4.0 International
91 stars 38 forks source link

Landsat notebook - SatSearchError: {"message":"Forbidden"} #25

Open jesswalker opened 4 years ago

jesswalker commented 4 years ago

As described in an open satsearch issue (https://github.com/sat-utils/sat-search/issues/95) the Landsat notebook gives an error when trying to search for images. This cell:

properties =  ["landsat:tier=T1"] 
bbox = (gfa.bounds.minx[0], gfa.bounds.miny[0], gfa.bounds.maxx[0], gfa.bounds.maxy[0]) #(west, south, east, north) 
results = satsearch.Search.search(collection='landsat-8-l1', 
                        bbox=bbox, 
                        sort=['<datetime'], #earliest scene first
                        property=properties)

print('%s items' % results.found())
items = results.items()
items.save('set.geojson')

results in

SatSearchError: {"message":"Forbidden"}

The suggested fix to set the url explicitly or to add an environment variable does not work in this case.

rsignell-usgs commented 4 years ago

Thanks for posting this @jesswalker! @matthewhanson is on the trail of a fix!

matthewhanson commented 4 years ago

I've published a new version of sat-stac 0.2.3 which changes the default URL to the new domain: https://earth-search-legacy.aws.element84.com

There's a new 0.3 sat-search coming, but it will be changing to the new earth-search (earth-search.aws.element84.com/v0) which does not currently have Landsat in it. When Landsat gets added this notebook should be updated to use the new sat-search and new earth-search.

But in the meantime, update sat-search from 0.2.2 -> 0.2.3

scottyhq commented 4 years ago

@jesswalker @rsignell-usgs for a functioning landsat example, check out http://gallery.pangeo.io/repos/pangeo-data/landsat-8-tutorial-gallery/

In addition to the sat-search pinning, we're trying to consolidate examples in that gallery, which use the latest pangeo binderhub infrastructure.