Skip to content

Commit

Permalink
update SDS_download to coastsat latest
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Nov 8, 2023
1 parent 3aaa2da commit 52ac8b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coastsat/SDS_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,8 @@ def filter_S2_collection(im_list):
if len(np.unique(utm_zones)) == 1:
return im_list
else:
utm_zone_selected = np.max(np.unique(utm_zones))
idx_max = np.argmax([np.sum(utm_zones == _) for _ in np.unique(utm_zones)])
utm_zone_selected = np.unique(utm_zones)[idx_max]
# find the images that were acquired at the same time but have different utm zones
idx_all = np.arange(0, len(im_list), 1)
idx_covered = np.ones(len(im_list)).astype(bool)
Expand Down

0 comments on commit 52ac8b7

Please sign in to comment.