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 zarroutputpth (
str) – path to the zarr rootgroup folder to writeattrs (
Optional[dict]) – optional attribution to write to zarr
- Returns
path to the zarr group
- Return type
str