Skip to content

Commit

Permalink
fetch_dem: added check if file exist already 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticSnow committed Mar 18, 2024
1 parent 2bb8308 commit e98813d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TopoPyScale/fetch_dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def _download_single_tile(url, tar_file):
if not os.path.isfile(tar_file):
tar_list.append(tar_file)
url_list.append(row.url)
else:
print(f'-> File {tar_file} already exists')

# Parallelize download of tiles
fun_param = zip(url_list, tar_list)
Expand Down

0 comments on commit e98813d

Please sign in to comment.