google / google/neuroglancer

What are correct metadata attributes when adding a zarr array

Open
#333 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
389
Avg merge
3d 21h
Merged PRs (30d)
3

Description

I have an image layer with prechunked data loaded with x,y,z dimension at 4,4,40nm voxel resolution. I want to add a zarr volume which is stored in z,y,x orientation with 40,8,8nm voxel resolution. I get the following source info after adding:

![Screenshot from 2021-07-22 16-20-39](https://user-images.githubusercontent.com/136799/126655075-f122a76c-340e-44b9-87ec-63ec237bca53.png)

where the zarr array has the following `.zattrs`
```
{
"_ARRAY_DIMENSIONS": ["z", "y", "x"],
"offset": [
0,
0,
0
],
"resolution": [
40,
8,
8
],
"scale": 255
}
```

`.zarray` info
```
{
"chunks": [
15,
304,
304
],
"compressor": {
"id": "gzip",
"level": 5
},
"dtype": "|u1",
"fill_value": 0,
"filters": null,
"order": "C",
"shape": [
7063,
67072,
124416
],
"zarr_format": 2
}
```
What is the correct way to do this? Perhaps I can add the resolution and bounds information directly to the metadata files.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.