Skip to content

Commit

Permalink
Fix bug in sorting products with same time stamp, but different cente…
Browse files Browse the repository at this point in the history
…r lat
  • Loading branch information
Simran S Sangha committed May 9, 2024
1 parent 77b82ed commit c0d853d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ARIAtools/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,8 +1195,8 @@ def __run__(self):
# Sort by pair, start time, and latitude
self.products = list(sorted(
[i for i in self.products if i != []], key=lambda i: (
i[0]['pair_name'], i[0]['azimuthZeroDopplerMidTime'],
i[0]['centerLatitude'])))
i[0]['pair_name'], i[0]['centerLatitude'],
i[0]['azimuthZeroDopplerMidTime'])))

# determine if there is a mix of different sensors
s1_prods = all(i[0]['missionID'] ==
Expand Down

0 comments on commit c0d853d

Please sign in to comment.