Skip to content

Commit

Permalink
minor fix to merging overlapping S2 images
Browse files Browse the repository at this point in the history
  • Loading branch information
kvos committed Aug 10, 2020
1 parent a55d19b commit b00a258
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coastsat/SDS_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,10 @@ def merge_overlapping_images(metadata,inputs):
# rewrite the .txt file with a new metadata file
with open(fn_im[0][3], 'w') as f:
for key in metadict0.keys():
f.write('%s\t%s\n'%(key,metadict0[key]))
f.write('%s\t%s\n'%(key,metadict0[key]))

# update filenames list (in case there are triplicates)
filenames[pair[0]] = metadict0['filename']

print('%d out of %d Sentinel-2 images were merged (overlapping or duplicate)'%(len(pairs), len(filenames)))

Expand Down

0 comments on commit b00a258

Please sign in to comment.