Skip to content

Commit

Permalink
Fix bug in concatenating products with same footprint, different dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Simran S Sangha committed May 9, 2024
1 parent 8d4cd0b commit 8d75f01
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/ARIAtools/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 == []:
Expand All @@ -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 == []:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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][
Expand All @@ -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][
Expand Down

0 comments on commit 8d75f01

Please sign in to comment.