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

Files are downloaded corrupted using download_list #16

Open
DavidOSilva opened this issue Jan 14, 2024 · 1 comment
Open

Files are downloaded corrupted using download_list #16

DavidOSilva opened this issue Jan 14, 2024 · 1 comment

Comments

@DavidOSilva
Copy link

I did some tests with the download_list function, I noticed that sometimes the download does not start properly for some or even all uids, that is, the execution goes straight through. In this sense, the files end up being downloaded corrupted. Is there something I don't quite understand and am overlooking?

_ = download.download_list(uids, outdir='files', threads=min(32, os.cpu_count() + 4), show_progress=False, **CREDENTIALS)

Captura de tela 2024-01-14 154506

The image highlights the corrupted file. As I mentioned sometimes all files get corrupted. There is always the option of downloading them individually, but this would take much longer. Suggestions?

@mcihadarslanoglu
Copy link

mcihadarslanoglu commented May 6, 2024

Probably it is about concurrency limit by copernicus data space. I also encountered this problem. After reducing, thread number, it seems work.

creodias_finder.download.download_list(ids, threads=2, # <-- change here. username=username, password=password, outdir=TMP_FOLDER)

https://documentation.dataspace.copernicus.eu/Quotas.html

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

2 participants