From feb0f4d152496153db9d795ba90743fd4638204e Mon Sep 17 00:00:00 2001 From: konstntokas Date: Tue, 26 Nov 2024 09:16:19 +0100 Subject: [PATCH] debug --- xcube_stac/helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xcube_stac/helper.py b/xcube_stac/helper.py index 356b883..486f0bb 100644 --- a/xcube_stac/helper.py +++ b/xcube_stac/helper.py @@ -416,10 +416,10 @@ def get_data_access_params(self, item: pystac.Item, **open_params) -> dict: for asset_name in asset_names: protocol = "file" href_components = item.assets[asset_name].href.split("/") - root = href_components[0] - instrument = href_components[1] + root = href_components[1] + instrument = href_components[2] format_id = MAP_CDSE_COLLECTION_FORMAT[instrument] - fs_path = "/".join(href_components[1:]) + fs_path = "/".join(href_components[2:]) storage_options = {} data_access_params[asset_name] = dict( name=asset_name,