From e5996351de25a00d1f57d53eb98ce2cce27dd2bf Mon Sep 17 00:00:00 2001 From: Sharon Fitzpatrick Date: Fri, 13 Oct 2023 15:07:02 -0700 Subject: [PATCH] remove duplicated code in retrieve_images --- src/coastsat/SDS_download.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/coastsat/SDS_download.py b/src/coastsat/SDS_download.py index d9d4749..74d009e 100644 --- a/src/coastsat/SDS_download.py +++ b/src/coastsat/SDS_download.py @@ -273,17 +273,6 @@ def retrieve_images( # merge the two image collections tiers into a single dictionary im_dict_T1 = merge_image_tiers(inputs, im_dict_T1, im_dict_T2) - # Merge tier 2 imagery into dictionary - for key in inputs["sat_list"]: - if key == "S2": - continue - else: - # Check if key exists in both dictionaries - if key in im_dict_T1 and key in im_dict_T2: - im_dict_T1[key] += im_dict_T2[key] - elif key in im_dict_T2: # If key only exists in im_dict_T2 - im_dict_T1[key] = im_dict_T2[key] # Add it to im_dict_T1 - # remove UTM duplicates in S2 collections (they provide several projections for same images) if "S2" in inputs["sat_list"] and len(im_dict_T1["S2"]) > 0: im_dict_T1["S2"] = filter_S2_collection(im_dict_T1["S2"])