Skip to content

Commit 268f336

Browse files
committed
Add eopf extension and fix the validation
1 parent b8abef7 commit 268f336

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray_sentinel/sentinel1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ def make_sentinel1_stac_item(
12761276
"https://stac-extensions.github.io/sat/v1.0.0/schema.json",
12771277
"https://stac-extensions.github.io/view/v1.0.0/schema.json",
12781278
"https://stac-extensions.github.io/sar/v1.2.0/schema.json",
1279-
# "https://stac-extensions.github.io/eopf/v1.0.0/schema.json",
1279+
"https://cs-si.github.io/eopf-stac-extension/v1.2.0/schema.json",
12801280
],
12811281
"id": item_id,
12821282
"properties": {
@@ -1328,8 +1328,8 @@ def make_sentinel1_stac_item(
13281328
"sar:beam_ids": esa_safe.findall(
13291329
manifest, ".//s1sarl1:instrumentMode/s1sarl1:swath"
13301330
),
1331-
"eopf:datatake_id": int(
1332-
esa_safe.findtext(manifest, ".//s1sarl1:missionDataTakeID")
1331+
"eopf:datatake_id": esa_safe.findtext(
1332+
manifest, ".//s1sarl1:missionDataTakeID"
13331333
),
13341334
},
13351335
"geometry": {"type": "Polygon", "coordinates": [coordinates]},

0 commit comments

Comments
 (0)