From 7d5db57726416cb47414439d11d51e3d22322829 Mon Sep 17 00:00:00 2001 From: Sylvain Gaudan Date: Mon, 18 Nov 2024 13:12:20 +0100 Subject: [PATCH] fix comments from PR --- conf/download_drivers.yaml | 1 - extensions/aproc/proc/download/drivers/impl/zarr_download.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/download_drivers.yaml b/conf/download_drivers.yaml index a459c3c..f07eedb 100644 --- a/conf/download_drivers.yaml +++ b/conf/download_drivers.yaml @@ -73,5 +73,4 @@ drivers: private_key_id: $APROC_INPUT_STORAGE_API_KEY_PRIVATE_KEY_ID private_key: $APROC_INPUT_STORAGE_API_KEY_PRIVATE_KEY headers: - # TODO: be able to configure them priority: 1 \ No newline at end of file diff --git a/extensions/aproc/proc/download/drivers/impl/zarr_download.py b/extensions/aproc/proc/download/drivers/impl/zarr_download.py index 4d43e88..a1cdc08 100644 --- a/extensions/aproc/proc/download/drivers/impl/zarr_download.py +++ b/extensions/aproc/proc/download/drivers/impl/zarr_download.py @@ -29,7 +29,9 @@ def init(configuration: dict): # Implements drivers method def supports(item: Item) -> bool: data = item.assets.get(Role.data.value) - return item.properties.constellation.lower() == "Sentinel-2".lower() \ + return item.properties.constellation \ + and item.properties.processing__level \ + and item.properties.constellation.lower() == "Sentinel-2".lower() \ and item.properties.processing__level.lower() == "L1C".lower() \ and data is not None and data.href is not None and ( # data.href.startswith("s3://")