xarr_to_zarr

HSTB.kluster.xarray_helpers.xarr_to_zarr(xarr, outputpth, attrs=None)

Takes in an xarray Dataset and pushes it to zarr store.

Must be run once to generate new store. Successive runs append, see mode flag

Parameters
  • xarr (Dataset) – xarray Dataset to write to zarr

  • outputpth (str) – path to the zarr rootgroup folder to write

  • attrs (Optional[dict]) – optional attribution to write to zarr

Returns

path to the zarr group

Return type

str