From 807ec0e2617378a1b6c07aca35a74a61ee7280c2 Mon Sep 17 00:00:00 2001 From: Thomas Bassler Date: Tue, 3 Sep 2024 09:44:45 +0200 Subject: [PATCH] AIP Client: Ignore sensing stop time when comparing with local products 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). --- .../de/dlr/proseo/api/aipclient/rest/DownloadManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/aip-client/src/main/java/de/dlr/proseo/api/aipclient/rest/DownloadManager.java b/api/aip-client/src/main/java/de/dlr/proseo/api/aipclient/rest/DownloadManager.java index 5f30e2d96..d8c4b1857 100644 --- a/api/aip-client/src/main/java/de/dlr/proseo/api/aipclient/rest/DownloadManager.java +++ b/api/aip-client/src/main/java/de/dlr/proseo/api/aipclient/rest/DownloadManager.java @@ -408,13 +408,13 @@ private RestProduct findLocalProductAtFacility(List 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