Skip to content

best way to write a zarr store with a single chunk #6697

Discussion options

You must be logged in to vote

@raybellwaves, does the following accomplish what you are looking for?

In [22]: chunks = dict.fromkeys(ds.dims, -1)

In [23]: chunks
Out[23]: {'lat': -1, 'time': -1, 'lon': -1}

In [25]: ds.chunk(chunks).to_zarr("/tmp/test2.zarr", consolidated=True)

In [31]: !tree /tmp/test2.zarr
/tmp/test2.zarr
├── air
│   └── 0.0.0
├── lat
│   └── 0
├── lon
│   └── 0
└── time
    └── 0

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@shoyer
Comment options

@raybellwaves
Comment options

Answer selected by andersy005
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants