MCPcopy Create free account
hub / github.com/bopen/xarray-sentinel / open_dataset

Method open_dataset

xarray_sentinel/xarray_backends.py:11–34  ·  view source on GitHub ↗
(  # 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,
    )

Source from the content-addressed store, hash-verified

9
10class 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:

Callers 15

to_group_zarrFunction · 0.80
to_group_netcdfFunction · 0.80
test_cfcheck_grdFunction · 0.80
test_open_dataset_rootFunction · 0.80
test_open_dataset_orbitFunction · 0.80
test_open_dataset_gcpFunction · 0.80
test_open_pol_datasetFunction · 0.80
test_burst_id_attributeFunction · 0.80

Calls

no outgoing calls