xarray_beam.write_chunk_to_zarr

xarray_beam.write_chunk_to_zarr(key, chunk, store, template)[source]

Write a single Dataset chunk to Zarr.

Parameters:
  • key (Key) – the Key corresponding to the position of the chunk to write in the template.

  • chunk (Dataset) – the chunk to write.

  • store (str | Store | StorePath | FSMap | Path | dict[str, Buffer] | PathLike[str]) – a string corresponding to a Zarr path or an existing Zarr store.

  • template (Dataset) – a lazy xarray.Dataset already chunked using Dask (e.g., as created by xarray_beam.make_template). One or more variables are expected to be “chunked” with Dask, and will only have their metadata written to Zarr without array values.

Return type:

None