Skip to content

Commit

Permalink
Fix ASF incomplete TiFF file removing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed Jul 14, 2024
1 parent a9f31fc commit 62d7260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmtsar/pygmtsar/ASF.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def download_burst(result, basedir, session):
os.remove(tif_file)
# check if we can open the downloaded file without errors
tmp_file = os.path.join(scene_dir, os.path.basename(tif_file))
if os.path.exists(tif_file):
if os.path.exists(tmp_file):
os.remove(tmp_file)
# download burst tif file and save using the burst and scene names
#result.download(os.path.dirname(tif_file), filename=os.path.basename(tif_file))
Expand Down

0 comments on commit 62d7260

Please sign in to comment.