-
Notifications
You must be signed in to change notification settings - Fork 13
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
Checksum value could not be computed due to I/O read error
for ~80% of downloaded images
#29
Comments
images with errors after finishing downloading
I'm using GDAL 3.9.1 |
After downloading all 168 images in |
if I re-download the same file a second time, it happens to not have the same error I have to wrap the for i, row in results_gdf.iterrows():
count_str = f"{i+1}/{len(results_gdf)}"
search_result = row["search_result"]
file_dir = CWD_PATH.parent / row["dataset"]
file_path = file_dir / row["location"].split('/')[-1]
if not file_dir.exists():
file_dir.mkdir(parents=True)
if not file_path.exists():
print(f"{count_str} {file_path.name} does not exist and will be downloaded")
search_result.download(download_dir=file_dir)
else:
attempts = 0
attempts_max = 3
while attempts < attempts_max:
if is_checksum_valid(file_path):
print(f"{count_str} {file_path.name} already exists: checksum is valid")
break
else:
print(f"{count_str} {file_path.name} already exists: checksum is invalid and file will be downloaded (attempt {attempts+1}/{attempts_max})")
file_path.unlink()
search_result.download(download_dir=file_dir)
attempts += 1 |
What happened?
for most of the images I'm downloading have invalid checksum according to
gdalinfo -checksum
One of the many errors
What are the steps to reproduce the bug?
downloading these tifs
After just 30 images:
Version
hda==2.17
Platform (OS and architecture)
Ubuntu 22.04
Relevant log output
No response
Accompanying data
No response
Organisation
No response
The text was updated successfully, but these errors were encountered: