Temporal Dimension Semantics in 2D + Time Image Series Written Out As 3D Image

Thank you, Dženan (@dzenanz), for the tip.

I’ve followed, and now the header comes out like this, where kinds appears as a field, and as a key/value pair, which doesn’t look right — something is rotten in the state of Denmark:

NRRD0004
# Complete NRRD file format specification at:
# http://teem.sourceforge.net/nrrd/format.html
type: unsigned char
dimension: 3
space: left-posterior-superior
sizes: 1024 1280 13
space directions: (1,0,0) (0,1,0) (0,0,1)
kinds: domain domain domain
encoding: raw
space origin: (0,0,0)
kinds:=time domain domain

I did a bit of reading/searching and there’s this (How to write a custom Tag to an image (NRRD or other) header - #6 by jonasteuwen):

But then, the NRRD format spec (Teem: nrrd: Definition of NRRD File Format) says kinds is a field, not just a key/value pair.

Any further tips how to get this right?

It would seem something of this sort (basic image IO) should be closer to the surface, no?