Skip to content

Commit 08b33bc

Browse files
committed
Update xarray backend to accept new arguments
1 parent 18282f3 commit 08b33bc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xarray_sentinel/xarray_backends.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
from typing import Any, Dict, Optional, Tuple
33

4+
import fsspec
45
import xarray as xr
56

67
from . import sentinel1
@@ -14,13 +15,19 @@ def open_dataset( # type: ignore
1415
group: Optional[str] = None,
1516
storage_options: Optional[Dict[str, Any]] = None,
1617
override_product_files: Optional[str] = None,
18+
fs: Optional[fsspec.AbstractFileSystem] = None,
19+
check_files_exist: bool = False,
20+
parse_geospatial_attrs: bool = True,
1721
) -> xr.Dataset:
1822
ds = sentinel1.open_sentinel1_dataset(
1923
filename_or_obj,
2024
drop_variables=drop_variables,
2125
group=group,
2226
storage_options=storage_options,
2327
override_product_files=override_product_files,
28+
fs=fs,
29+
check_files_exist=check_files_exist,
30+
parse_geospatial_attrs=parse_geospatial_attrs,
2431
)
2532
return ds
2633

0 commit comments

Comments
 (0)