Skip to content

Handle all Sentinel-1 timeliness categories in build_stac_discovery - #210

Merged
alexamici merged 1 commit into
bopen:mainfrom
chenyangsu:fix/product-timeliness-categories
Dec 1, 2026
Merged

alexamici merged 1 commit into
bopen:mainfrom
chenyangsu:fix/product-timeliness-categories

Conversation

@chenyangsu

Copy link
Copy Markdown
Contributor

build_stac_discovery() raises KeyError on manifests with productTimelinessCategory set to NRT-10m, NRT-1h, Off-line, or Reprocessing because PRODUCT_TIMELINESS only maps Fast-24h and NRT-3h. All six values are defined in s1-object-types.xsd.

Could we add NRT-10m (PT10M) and NRT-1h (PT1H) to PRODUCT_TIMELINESS and omit the two timeliness properties when a category has no fixed ISO 8601 duration, keeping the STAC Product extension valid? Happy to map Off-line or Reprocessing to an explicit duration instead if you prefer.

Testing: pytest tests/test_15_eopf_metadata.py tests/test_30_eopf_product.py tests/test_50_main.py -> 51 passed (4 new cases fail on main), mypy . and deptry . clean.

@alexamici
alexamici merged commit 6df3891 into bopen:main Dec 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants