dlr-eoc / ukis-pysat

The ukis-pysat package provides generic classes and functions to query, access and process multi-spectral and SAR satellite images
Apache License 2.0
27 stars 8 forks source link

Replace EarthExplorer with SAT API #106

Closed fwfichtner closed 3 years ago

fwfichtner commented 3 years ago

Replace EarthExplorer with SAT API (https://landsatlook.usgs.gov/sat-api). First we need to check whether we can really find and get the same products there, this is not entirely clear to me on first sight.

This goes hand in hand with #103 and #104.

fwfichtner commented 3 years ago

In #120 we are changing to Machine-to-Machine (M2M) API. We still need to go through the Landsat Data Access Site to have a clear view on what is best for us to use here. At the beginning the change in #120 and https://github.com/dlr-eoc/ukis-pysat/issues/104#issuecomment-802913849 seem logical to me.

fwfichtner commented 3 years ago

Also pylandsat is quite a heavy library and we only use it for its string formatting. If SAT API is not our way forward we could consider reproducing this part only.

shiwakotisurendra commented 3 years ago

with sat-api we can get the STAC collections but cannot search the STAC items.

fwfichtner commented 3 years ago

Like discussed, let's stick with M2M then for now and try to remove the dependency to pylandsat (which we only use to create the GCS keys).

shiwakotisurendra commented 3 years ago

So, after some more checks , Endpoint(https://landsatlook.usgs.gov/sat-api/stac/) can be used for accessing STAC items from the sat-api.

shiwakotisurendra commented 3 years ago

we can access the collections and items of landsat image from this_endpoint , but i am getting error while trying to view using rasterio.

RasterioIOError: '/vsicurl/https://landsatlook.usgs.gov/data/collection02/level-1/standard/etm/2021/148/046/LE07_L1TP_148046_20210525_20210525_02_RT/LE07_L1TP_148046_20210525_20210525_02_RT_B2.TIF' not recognized as a supported file format.

Any suggestions here ? @MWieland @fwfichtner

shiwakotisurendra commented 3 years ago

I found something odd while querying items from sat-api . Please check this notebook. @MWieland @fwfichtner

MWieland commented 3 years ago

Hi Surendra. Many thanks for looking into this. Could you just provide me access to the referenced notebook for cross-checking?

MWieland commented 3 years ago

My first guess would be that this relates to an authentication problem.