Closed dpabon closed 1 year ago
It works as expected. Just look at the first chunk:
4×3×2×200×2 DiskArrays.GridChunks{5}:
[:, :, 1, 1, 1] =
(1:29, 1:100, 1:50, 1:1, 1:1) (1:29, 101:200, 1:50, 1:1, 1:1) (1:29, 201:300, 1:50, 1:1, 1:1)
(30:58, 1:100, 1:50, 1:1, 1:1) (30:58, 101:200, 1:50, 1:1, 1:1) (30:58, 201:300, 1:50, 1:1, 1:1)
(59:87, 1:100, 1:50, 1:1, 1:1) (59:87, 101:200, 1:50, 1:1, 1:1) (59:87, 201:300, 1:50, 1:1, 1:1)
(88:116, 1:100, 1:50, 1:1, 1:1) (88:116, 101:200, 1:50, 1:1, 1:1) (88:116, 201:300, 1:50, 1:1, 1:1)
The first chunk is defined by the indices (1:29, 1:100, 1:50, 1:1, 1:1)
which is what you set. I know these GridChunk
objects can be a bit strange, if you want to extract a chunk size from them you can use
DiskArrays.approx_chunksize(YAXArrays.Cubes.eachchunk(ds_rechuncked_new))
My bad, I though, 4×3×2×200×2
is the size of each chunk. Thanks for the clarification, Fabian.
Hi, I have a problem when using setchunks and saving the cube. Below the MWE
report that the size of the chunks is:
If I rechunk the cube and save the result:
I got
Thanks in advance for your help.