Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Nov 26, 2024
1 parent cfec1e8 commit 21b97f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions xcube_stac/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
3 changes: 0 additions & 3 deletions xcube_stac/store_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 21b97f9

Please sign in to comment.