xbitinfo.save_compressed.get_compress_encoding_zarr#
- xbitinfo.save_compressed.get_compress_encoding_zarr(ds, compressor=Blosc(cname='zstd', clevel=5, shuffle=BITSHUFFLE, blocksize=0))[source]#
Generate encoding for
xarray.Dataset.to_zarr()
.Example
>>> ds = xr.tutorial.load_dataset("rasm") >>> get_compress_encoding_zarr(ds) {'Tair': {'chunks': None, 'compressor': Blosc(cname='zstd', clevel=5, shuffle=BITSHUFFLE, blocksize=0)}}
See also