-
-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Way to ask if chunk exists? #2507
Comments
Is the In [20]: arr = zarr.create(path="a", shape=(3, 4, 5), chunks=(2, 2, 2))
In [21]: arr.metadata.encode_chunk_key((0, 0, 0))
Out[21]: 'c/0/0/0'
In [22]: arr.metadata.encode_chunk_key((1, 2, 3))
Out[22]: 'c/1/2/3' |
It's a chunk indexer. We have a store, and want to calculate the byte offsets and ranges for every chunk in the store. Assuming no sharding the offset is always 0, we get the length of each chunk using the new It does sound like |
see also |
Is there a way to ask zarr if a key is backed by a chunk (as opposed to defaulting to the fill_value)?
The motivation is trying to create virtual references for an existing zarr store, but not knowing which chunks of the chunk grid actually exist - see zarr-developers/VirtualiZarr#271 (comment)
cc @norlandrhagen
The text was updated successfully, but these errors were encountered: