From 21b97f97a367e46baad0b4bfe210ca0f34737cb4 Mon Sep 17 00:00:00 2001 From: konstntokas Date: Tue, 26 Nov 2024 09:10:49 +0100 Subject: [PATCH] debug --- xcube_stac/helper.py | 4 +--- xcube_stac/store_mode.py | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/xcube_stac/helper.py b/xcube_stac/helper.py index 5b858b4..356b883 100644 --- a/xcube_stac/helper.py +++ b/xcube_stac/helper.py @@ -345,14 +345,12 @@ def __init__(self): self.file_accessor = Sentinel2DataAccessor def parse_item(self, item: pystac.Item, **open_params) -> pystac.Item: - import pdb - - pdb.set_trace() processing_level = open_params.pop("processing_level", "L2A") open_params["asset_names"] = open_params.get( "asset_names", CDSE_SENITNEL_2_BANDS[processing_level] ) href_base = item.assets["PRODUCT"].extra_fields["alternate"]["s3"]["href"][1:] + href_base = href_base.replace("eodata", "~/eo") res_want = open_params.get("spatial_res", CDSE_SENTINEL_2_MIN_RESOLUTIONS) if "crs" in open_params: target_crs = normalize_crs(open_params["crs"]) diff --git a/xcube_stac/store_mode.py b/xcube_stac/store_mode.py index f83296c..00616f8 100644 --- a/xcube_stac/store_mode.py +++ b/xcube_stac/store_mode.py @@ -497,9 +497,6 @@ def open_data( items = sorted(items, key=lambda item: item.properties.get("datetime")) # group items by date - import pdb - - pdb.set_trace() grouped_items = groupby_solar_day(items) if opener_id is None: