How to use the zarr.create function in zarr

To help you get started, we’ve selected a few zarr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github benbovy / xarray-simlab / xsimlab / stores.py View on Github external
def get_auto_chunks(shape, dtype):
    # A hack to get chunks guessed by zarr
    arr = zarr.create(shape, dtype=dtype)
    return arr.chunks