( # type: ignore
self,
filename_or_obj: str,
drop_variables: tuple[str] | None = None,
group: str | None = None,
storage_options: dict[str, Any] | None = None,
override_product_files: str | None = None,
fs: fsspec.AbstractFileSystem | None = None,
check_files_exist: bool = False,
parse_geospatial_attrs: bool = True,
rasterio_chunks: dict[str, int] | None = None,
)
| 9 | |
| 10 | class Sentinel1Backend(xr.backends.common.BackendEntrypoint): |
| 11 | def open_dataset( # type: ignore |
| 12 | self, |
| 13 | filename_or_obj: str, |
| 14 | drop_variables: tuple[str] | None = None, |
| 15 | group: str | None = None, |
| 16 | storage_options: dict[str, Any] | None = None, |
| 17 | override_product_files: str | None = None, |
| 18 | fs: fsspec.AbstractFileSystem | None = None, |
| 19 | check_files_exist: bool = False, |
| 20 | parse_geospatial_attrs: bool = True, |
| 21 | rasterio_chunks: dict[str, int] | None = None, |
| 22 | ) -> xr.Dataset: |
| 23 | ds = sentinel1.open_sentinel1_dataset( |
| 24 | filename_or_obj, |
| 25 | drop_variables=drop_variables, |
| 26 | group=group, |
| 27 | storage_options=storage_options, |
| 28 | override_product_files=override_product_files, |
| 29 | fs=fs, |
| 30 | check_files_exist=check_files_exist, |
| 31 | parse_geospatial_attrs=parse_geospatial_attrs, |
| 32 | rasterio_chunks=rasterio_chunks, |
| 33 | ) |
| 34 | return ds |
| 35 | |
| 36 | def guess_can_open(self, filename_or_obj: Any) -> bool: |
| 37 | try: |
no outgoing calls