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

Method to_zarr

xarray/core/dataset.py:2151–2171  ·  view source on GitHub ↗
(
        self,
        store: ZarrStoreLike | None = None,
        chunk_store: MutableMapping | str | PathLike | None = None,
        mode: ZarrWriteModes | None = None,
        synchronizer=None,
        group: str | None = None,
        encoding: Mapping | None = None,
        *,
        compute: Literal[True] = True,
        consolidated: bool | None = None,
        append_dim: Hashable | None = None,
        region: Mapping[str, slice | Literal["auto"]] | Literal["auto"] | None = None,
        safe_chunks: bool = True,
        align_chunks: bool = False,
        storage_options: dict[str, str] | None = None,
        zarr_version: int | None = None,
        zarr_format: int | None = None,
        write_empty_chunks: bool | None = None,
        chunkmanager_store_kwargs: dict[str, Any] | None = None,
    )

Source from the content-addressed store, hash-verified

2149 # compute=True (default) returns ZarrStore
2150 @overload
2151 def to_zarr(
2152 self,
2153 store: ZarrStoreLike | None = None,
2154 chunk_store: MutableMapping | str | PathLike | None = None,
2155 mode: ZarrWriteModes | None = None,
2156 synchronizer=None,
2157 group: str | None = None,
2158 encoding: Mapping | None = None,
2159 *,
2160 compute: Literal[True] = True,
2161 consolidated: bool | None = None,
2162 append_dim: Hashable | None = None,
2163 region: Mapping[str, slice | Literal["auto"]] | Literal["auto"] | None = None,
2164 safe_chunks: bool = True,
2165 align_chunks: bool = False,
2166 storage_options: dict[str, str] | None = None,
2167 zarr_version: int | None = None,
2168 zarr_format: int | None = None,
2169 write_empty_chunks: bool | None = None,
2170 chunkmanager_store_kwargs: dict[str, Any] | None = None,
2171 ) -> ZarrStore: ...
2172
2173 # compute=False returns dask.Delayed
2174 @overload

Calls 1

to_zarrFunction · 0.90