# NRRD segmentation file header

**URL:** https://discourse.slicer.org/t/nrrd-segmentation-file-header/26344
**Category:** Support
**Tags:** segmentation, nrrd
**Created:** [November 21, 2022, 10:44am UTC](https://discourse.slicer.org/t/nrrd-segmentation-file-header/26344 "2022-11-21T10:44:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Francesca\_Lo\_Iacono](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/francesca_lo_iacono/32/13557_2.png) [@Francesca\_Lo\_Iacono](https://discourse.slicer.org/u/Francesca_Lo_Iacono)
#### Post date: [November 21, 2022, 10:44am UTC](https://discourse.slicer.org/t/nrrd-segmentation-file-header/26344/1 "2022-11-21T10:44:22Z")

</div>

Hi! I’m developing an automatic segmentation algorithm on python and I am trying to export obtained segmentations in a .nrrd file. Looking at .nrrd file obtained from Slicer I can see some header I can’t understand how to include in the .nrrd file got in python.

Someone can help me finding how to include the right header in my .nrrd file?

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [November 21, 2022, 7:15pm UTC](https://discourse.slicer.org/t/nrrd-segmentation-file-header/26344/2 "2022-11-21T19:15:28Z")

</div>

You probably will want to use the SlicerIO package:

> **[slicerio](https://pypi.org/project/slicerio/)**
>
> Utilities for 3D Slicer

And set the custom metadata:

[https://slicer.readthedocs.io/en/latest/developer\_guide/modules/segmentations.html](https://slicer.readthedocs.io/en/latest/developer_guide/modules/segmentations.html)
