From 8d75f01da2e68976f2d04056343fe22df15fd347 Mon Sep 17 00:00:00 2001 From: Simran S Sangha Date: Thu, 9 May 2024 12:56:51 -0700 Subject: [PATCH] Fix bug in concatenating products with same footprint, different dates --- tools/ARIAtools/product.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/ARIAtools/product.py b/tools/ARIAtools/product.py index 5868fe34..455f48fc 100644 --- a/tools/ARIAtools/product.py +++ b/tools/ARIAtools/product.py @@ -135,7 +135,7 @@ def remove_scenes(products): dict_item = None for item in sorted_products: scene_in_ifg = scene[1][ - 'productBoundingBox'] in item[1]['productBoundingBox'] + 'unwrappedPhase'] in item[1]['unwrappedPhase'] if scene_in_ifg: dict_item = item break @@ -162,7 +162,7 @@ def remove_scenes(products): track_existing_ifg = [] for item in sorted_products: scene_in_ifg = scene[1][ - 'productBoundingBox'] in item[1]['productBoundingBox'] + 'unwrappedPhase'] in item[1]['unwrappedPhase'] if scene_in_ifg: track_existing_ifg.append(item) if track_existing_ifg == []: @@ -175,7 +175,7 @@ def remove_scenes(products): track_existing_ifg = [] for item in sorted_products: scene_in_ifg = new_scene[1][ - 'productBoundingBox'] in item[1]['productBoundingBox'] + 'unwrappedPhase'] in item[1]['unwrappedPhase'] if scene_in_ifg: track_existing_ifg.append(item) if track_existing_ifg == []: @@ -1080,7 +1080,7 @@ def __continuous_time__(self): dict_item = None for item in sorted_products: scene_in_ifg = scene[1][ - 'productBoundingBox'] in item[1]['productBoundingBox'] + 'unwrappedPhase'] in item[1]['unwrappedPhase'] if scene_in_ifg: dict_item = item break @@ -1119,7 +1119,7 @@ def __continuous_time__(self): track_existing_ifg = [] for item in sorted_products: scene_in_ifg = scene[1][ - 'productBoundingBox'] in item[1]['productBoundingBox'] + 'unwrappedPhase'] in item[1]['unwrappedPhase'] if scene_in_ifg: track_existing_ifg.append(item) ref_not_rejected = scene[0][ @@ -1134,7 +1134,7 @@ def __continuous_time__(self): track_existing_ifg = [] for item in sorted_products: scene_in_ifg = new_scene[1][ - 'productBoundingBox'] in item[1]['productBoundingBox'] + 'unwrappedPhase'] in item[1]['unwrappedPhase'] if scene_in_ifg: track_existing_ifg.append(item) scene_not_rejected = new_scene[0][