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

**URL:** <https://discourse.itk.org/t/temporal-dimension-semantics-in-2d-time-image-series-written-out-as-3d-image/6708>\
**Category:** Beginner Questions\
**Created:** [June 19, 2024, 2:29am UTC](https://discourse.itk.org/t/temporal-dimension-semantics-in-2d-time-image-series-written-out-as-3d-image/6708 "2024-06-19T02:29:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![constantine](https://discourse.itk.org/user_avatar/discourse.itk.org/constantine/32/3915_2.png) [@constantine](https://discourse.itk.org/u/constantine)\
**Post date:** [June 24, 2024, 4:19am UTC](https://discourse.itk.org/t/temporal-dimension-semantics-in-2d-time-image-series-written-out-as-3d-image/6708/6 "2024-06-24T04:19:16Z")

</div>

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:

```auto
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](https://discourse.itk.org/t/how-to-write-a-custom-tag-to-an-image-nrrd-or-other-header/565/6)):

> [@How to write a custom Tag to an image (NRRD or other) header](https://discourse.itk.org/t/how-to-write-a-custom-tag-to-an-image-nrrd-or-other-header/565/6):
>
> Each of the “\< _field_ \>: \< _desc_ \>” lines specifies information about one of the fields in the nrrd. (…)  
> Each of the “\< _key_ \>:=\< _value_ \>” lines specifies a key/value pair in the nrrd. (…)

But then, the NRRD format spec ([Teem: nrrd: Definition of NRRD File Format](https://teem.sourceforge.net/nrrd/format.html)) 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?

---

_[View the full topic](https://discourse.itk.org/t/temporal-dimension-semantics-in-2d-time-image-series-written-out-as-3d-image/6708)._
