Skip to content

Commit 0be367b

Browse files
committed
Add option override the location of the annotations (needed for GRD data from the Planetary Computer)
1 parent 496a59c commit 0be367b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

xarray_sentinel/esa_safe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,6 @@ def parse_manifest_sentinel1(
160160
except ValueError:
161161
continue
162162
file_type = file_tag.attrib["repID"]
163-
files[file_href] = (file_type, swath.upper(), polarization.upper(), start)
163+
files[file_href] = (file_type, swath, polarization, start)
164164

165165
return attributes, files

xarray_sentinel/xarray_backends.py

+2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ def open_dataset( # type: ignore
1313
drop_variables: T.Optional[T.Tuple[str]] = None,
1414
group: T.Optional[str] = None,
1515
storage_options: T.Optional[T.Dict[str, T.Any]] = None,
16+
override_product_files: T.Optional[str] = None,
1617
) -> xr.Dataset:
1718
ds = sentinel1.open_sentinel1_dataset(
1819
filename_or_obj,
1920
drop_variables=drop_variables,
2021
group=group,
2122
storage_options=storage_options,
23+
override_product_files=override_product_files,
2224
)
2325
return ds
2426

0 commit comments

Comments
 (0)