# 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:** 4

<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 20, 2024, 11:59pm UTC](https://discourse.itk.org/t/temporal-dimension-semantics-in-2d-time-image-series-written-out-as-3d-image/6708/4 "2024-06-20T23:59:01Z")

</div>

Oh, doing further searching and found this post:

> [@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):
>
> The following question was asked on the [ITK user mailing list](http://itk-users.7.n7.nabble.com/ITK-users-add-tag-to-nrrd-header-td38864.html): I can’t find any possibility to add a field (custom or not) into a nrrd header. The NrrdImageIO doesn’t allow it (or I missed it). Is someone know how to do that? Here is an short example to add a tag to a header (more specifically to add a key/value pair to the metadata dictionary of an image: CMakeLists.txt: cmake\_minimum\_required(VERSION 3.0) project(metadataNRRD) find\_package(ITK REQUIRED) include(${ITK\_USE\_FILE}) add\_e…

I’m doing attempting this sort of thing now, setting `kinds` tags:

```auto
img.GetMetaDataDictionary()['kinds'] = 'time domain domain'

```

But this doesn’t end up in the output .nrrd header metadata. I still end up with:

```auto
kinds: domain domain domain

```

I’ve tried setting the `kinds` tag in MetaDataDictionary dictionaries in all these:

1. the image,
2. the writer filter,
3. the image IO (NrrdImageIO).

And yet, somehow, in the output I don’t see the `time` domain.

Would you suggest what I’m doing wrong here?

---

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