MCPcopy Index your code
hub / github.com/pydata/xarray / to_zarr

Method to_zarr

xarray/core/dataarray.py:4260–4280  ·  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

4258 # compute=True (default) returns ZarrStore
4259 @overload
4260 def to_zarr(
4261 self,
4262 store: ZarrStoreLike | None = None,
4263 chunk_store: MutableMapping | str | PathLike | None = None,
4264 mode: ZarrWriteModes | None = None,
4265 synchronizer=None,
4266 group: str | None = None,
4267 *,
4268 encoding: Mapping | None = None,
4269 compute: Literal[True] = True,
4270 consolidated: bool | None = None,
4271 append_dim: Hashable | None = None,
4272 region: Mapping[str, slice | Literal["auto"]] | Literal["auto"] | None = None,
4273 safe_chunks: bool = True,
4274 align_chunks: bool = False,
4275 storage_options: dict[str, str] | None = None,
4276 zarr_version: int | None = None,
4277 zarr_format: int | None = None,
4278 write_empty_chunks: bool | None = None,
4279 chunkmanager_store_kwargs: dict[str, Any] | None = None,
4280 ) -> ZarrStore: ...
4281
4282 # compute=False returns dask.Delayed
4283 @overload

Calls 2

to_datasetMethod · 0.95
to_zarrFunction · 0.90