MCPcopy
hub / github.com/pydata/xarray / open_dataset

Method open_dataset

xarray/backends/scipy_.py:426–460  ·  view source on GitHub ↗
(
        self,
        filename_or_obj: T_PathFileOrDataStore,
        *,
        mask_and_scale: bool = True,
        decode_times: bool = True,
        concat_characters: bool = True,
        decode_coords: bool = True,
        drop_variables: str | Iterable[str] | None = None,
        use_cftime: bool | None = None,
        decode_timedelta: bool | None = None,
        mode: Literal["r", "w", "a"] = "r",
        format: str | None = None,
        group: str | None = None,
        mmap: bool | None = None,
        lock: Lock | Literal[False] | None = None,
    )

Source from the content-addressed store, hash-verified

424 return False
425
426 def open_dataset(
427 self,
428 filename_or_obj: T_PathFileOrDataStore,
429 *,
430 mask_and_scale: bool = True,
431 decode_times: bool = True,
432 concat_characters: bool = True,
433 decode_coords: bool = True,
434 drop_variables: str | Iterable[str] | None = None,
435 use_cftime: bool | None = None,
436 decode_timedelta: bool | None = None,
437 mode: Literal["r", "w", "a"] = "r",
438 format: str | None = None,
439 group: str | None = None,
440 mmap: bool | None = None,
441 lock: Lock | Literal[False] | None = None,
442 ) -> Dataset:
443 filename_or_obj = _normalize_filename_or_obj(filename_or_obj)
444 store = ScipyDataStore(
445 filename_or_obj, mode=mode, format=format, group=group, mmap=mmap, lock=lock
446 )
447
448 store_entrypoint = StoreBackendEntrypoint()
449 with close_on_error(store):
450 ds = store_entrypoint.open_dataset(
451 store,
452 mask_and_scale=mask_and_scale,
453 decode_times=decode_times,
454 concat_characters=concat_characters,
455 decode_coords=decode_coords,
456 drop_variables=drop_variables,
457 use_cftime=use_cftime,
458 decode_timedelta=decode_timedelta,
459 )
460 return ds
461
462
463BACKEND_ENTRYPOINTS["scipy"] = ("scipy", ScipyBackendEntrypoint)

Callers

nothing calls this directly

Calls 5

open_datasetMethod · 0.95
close_on_errorFunction · 0.90
ScipyDataStoreClass · 0.85

Tested by

no test coverage detected