sgkit.save_dataset

sgkit.save_dataset(ds, store, storage_options=None, **kwargs)

Save a dataset to Zarr storage.

This function is a thin wrapper around xarray.Dataset.to_zarr() that uses sensible defaults and makes it easier to use in a pipeline.

Parameters
ds : DatasetDataset

Dataset to save.

store : str | Path | MutableMapping[str, bytes]Union[str, Path, MutableMapping[str, bytes]]

Zarr store or path to directory in file system to save to.

storage_options : {str: str} | NoneOptional[Dict[str, str]] (default: None)

Any additional parameters for the storage backend (see fsspec.open).

kwargs : AnyAny

Additional arguments to pass to xarray.Dataset.to_zarr().

Return type

NoneNone