Skip to content

Commit

Permalink
Update xarray backend to accept new arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Jul 24, 2022
1 parent 18282f3 commit 08b33bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xarray_sentinel/xarray_backends.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from typing import Any, Dict, Optional, Tuple

import fsspec
import xarray as xr

from . import sentinel1
Expand All @@ -14,13 +15,19 @@ def open_dataset( # type: ignore
group: Optional[str] = None,
storage_options: Optional[Dict[str, Any]] = None,
override_product_files: Optional[str] = None,
fs: Optional[fsspec.AbstractFileSystem] = None,
check_files_exist: bool = False,
parse_geospatial_attrs: bool = True,
) -> xr.Dataset:
ds = sentinel1.open_sentinel1_dataset(
filename_or_obj,
drop_variables=drop_variables,
group=group,
storage_options=storage_options,
override_product_files=override_product_files,
fs=fs,
check_files_exist=check_files_exist,
parse_geospatial_attrs=parse_geospatial_attrs,
)
return ds

Expand Down

0 comments on commit 08b33bc

Please sign in to comment.