yannforget / landsatxplore

Search and download Landsat scenes from EarthExplorer.
MIT License
217 stars 95 forks source link

Error raised but scene was successfully downloaded for Landsat 8 #98

Open conorosully opened 1 year ago

conorosully commented 1 year ago

I get an error when running the code for Landsat 8 scenes. Yet, a file is successfully downloaded.

display_id = LC08_L2SP_206023_20221118_20221128_02_T1

I believe the code tries 3 ids:

This could be corrected by changing the error handling on lines 191 to 206 of earthexplorer.py. Perhaps you can stop the for loop when 1 of the IDs is successful?

Screenshot 2023-04-20 at 14 07 43

Digdgeo commented 1 month ago

Same for me. The way I "solved" was to put the download within a try/except block. That way I still have the "None of the archived ids succeeded! Update necessary!" message, but no the ugly error breaking the code and the scene it's also correctly downloaded