Skip to content

Commit

Permalink
updated to only create kerchunk indices for wave-fc collection, other…
Browse files Browse the repository at this point in the history
…wise empty dict
  • Loading branch information
lawi119 committed Nov 1, 2023
1 parent 1865093 commit 40cc5a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stactools/ecmwf_forecast/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,10 @@ def _create_item_from_parts(parts: list[Parts], split_by_step=False) -> Item:
if p.format == "grib2":
media_type = GRIB2_MEDIA_TYPE
roles = ["data"]
kerchunk_indices = khf.get_kerchunk_indices(p)
if ((p.stream == "wave") & (p.type == "fc")):
kerchunk_indices = khf.get_kerchunk_indices(p)
else:
kerchunk_indices = {}
elif p.format == "index":
media_type = NDJSON_MEDIA_TYPE
roles = ["index"]
Expand Down

0 comments on commit 40cc5a7

Please sign in to comment.