Comments (3)
Hi,
yes, it happens from time to time (not only to you ;) ), and seems to be caused by the ESA server.
I have just tried to trap the error (because at the beginning, the file was ignored, but was missing when one tried to use the tile).
Another solution could be to try again the file download. But how many times...
Olivier
from sentinel-download.
After downloading 64 tiles, I did not encounter a problem when using:
while os.path.getsize( [path to downloaded file] )==0 :
os.system(commande_wget)
I just added this after every os.system(commande_wget)
. Every time I have had 502 Bad Gateway
the first retry succeeded. It would probably a good idea to use something like this:
max_tries = 3
for i in range(max_tries):
os.system(commande_wget)
if os.path.getsize( [path to downloaded file] ) > 0:
# download succeeded
break
This way I can be more confident about the script will succeed.
from sentinel-download.
Good idea, i have generalized adding
while os.path.getsize( [path to downloaded file] )==0 :
os.system(commande_wget)
from sentinel-download.
Related Issues (20)
- CUID#7 - Download aborted. HOT 1
- Sorry it was not and issue. HOT 1
- NOT AN ISSUE, But a doubt HOT 4
- cannot verify scihub.copernicus.eu's certificate HOT 2
- Sentinel 2B not downloading HOT 4
- Bug found (minor) HOT 1
- windows... 'empty' query_results.xml? HOT 4
- windows 10 : No such file or directory: 'query_results.xml' and 'aria2c' is not recognized as an internal or external command
- cannot access data for some dates HOT 2
- Only the first file is downloaded to the specified folder
- Product L2A (S2MSI2Ap) is no longer available
- Bug found argument -o
- How to use in win10?
- I am new to Sentinel-downlowd, wget is not recogniced as internal command? I run this python script though anaconda with jupyter notebook and python 2.7 on win machine. HOT 1
- S1 bug? HOT 3
- 'os' is not defined - windows machine HOT 2
- Extension to cover bulk downloads of Sentinel 3 HOT 2
- Download Sentinel 2 TCI images from SciHub
- no matches found: S1A*SLC
- No files are getting downloaded HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentinel-download.