Skip to content

Commit

Permalink
AIP Client: Ignore sensing stop time when comparing with local products
Browse files Browse the repository at this point in the history
Justification: LTAs tend to set arbitrary sensing stop times, esp. on
AUX products. Therefore comparing the stop times may lead to duplicate
products not being detected (if "we" corrected the stop time according
to the needs of prosEO).
  • Loading branch information
tangobravo62 committed Sep 3, 2024
1 parent da8534f commit 807ec0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,13 @@ private RestProduct findLocalProductAtFacility(List<Product> modelProducts, Rest

// Get sensing start and stop times and generation time to check against
Instant sensingStartTime = OrbitTimeFormatter.parseDateTime(restProduct.getSensingStartTime());
Instant sensingStopTime = OrbitTimeFormatter.parseDateTime(restProduct.getSensingStopTime());
// Instant sensingStopTime = OrbitTimeFormatter.parseDateTime(restProduct.getSensingStopTime());
Instant generationTime = OrbitTimeFormatter.parseDateTime(restProduct.getGenerationTime());

// Travel through the list of products
for (Product modelProduct: modelProducts) {
if (sensingStartTime.equals(modelProduct.getSensingStartTime())
&& sensingStopTime.equals(modelProduct.getSensingStopTime())
// && sensingStopTime.equals(modelProduct.getSensingStopTime())
&& generationTime.equals(modelProduct.getGenerationTime())) {

// Candidate product found, check product files
Expand Down

0 comments on commit 807ec0e

Please sign in to comment.