Skip to content

Got "dimensionality of chunks doesn't match the dataspace" when compressing 4D TwoPhotonSeries data #93

Closed Answered by yzhaoinuw
yzhaoinuw asked this question in Q&A
Discussion options

You must be logged in to vote

Setting the chunkSize to [1, width, height, 1] works. Using a concrete example, suppose the dimension of my TwoPhotonSeries data is [1, 512, 512, 131]. Then, the chunkSize can be [1, 512, 512, 1]. Credits to ChatGPT, who further explains that

This means that the chunks span the entire second and third dimensions of your data, and a single element along the first and fourth dimensions. You can adjust the chunkSize values depending on your specific needs and the desired compression performance.

It worked and passed the NWBInspector. The resulting compressed size is smaller than what it would be without setting the chunkSize

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@yzhaoinuw
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yzhaoinuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants