Very minor point- swap the `sizeT =` and `sizeZ =` lines around, to be consistent with the following `fprintf` lines which uses `X-Y-Z-C-T`?