# Does VTK has a class which can write NRRD file?

**URL:** https://discourse.vtk.org/t/does-vtk-has-a-class-which-can-write-nrrd-file/10556
**Category:** Support
**Created:** [January 29, 2023, 9:32pm UTC](https://discourse.vtk.org/t/does-vtk-has-a-class-which-can-write-nrrd-file/10556 "2023-01-29T21:32:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sterben\_01](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sterben_01/32/6142_2.png) [@Sterben\_01](https://discourse.vtk.org/u/Sterben_01)
#### Post date: [January 29, 2023, 9:32pm UTC](https://discourse.vtk.org/t/does-vtk-has-a-class-which-can-write-nrrd-file/10556/1 "2023-01-29T21:32:54Z")

</div>

Hi!  
I’m trying to find a class which is like `vtkNrrdWriter`. But I didn’t find it. Is there some way I can get the same result? I want to write the file to NRRD format.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [January 30, 2023, 6:48am UTC](https://discourse.vtk.org/t/does-vtk-has-a-class-which-can-write-nrrd-file/10556/2 "2023-01-30T06:48:55Z")

</div>

> [@Sterben\_01](#):
>
> NRRD

There is one in Slicer: [Slicer/Libs/vtkTeem/vtkTeemNRRDWriter.h at main · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/blob/main/Libs/vtkTeem/vtkTeemNRRDWriter.h)

FYI @jcfr

---

<div class="post-metadata">

### Author: ![jcfr](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jcfr/32/466_2.png) [@jcfr](https://discourse.vtk.org/u/jcfr)
#### Post date: [January 30, 2023, 1:52pm UTC](https://discourse.vtk.org/t/does-vtk-has-a-class-which-can-write-nrrd-file/10556/3 "2023-01-30T13:52:21Z")

</div>

@Sterben_01 The classes currently found in the [Slicer](https://slicer.org) code base have been “field” tested for many years and should work well. They depend on `teem`.

If there you are interested in supported the effort, we could look into integrating these into VTK either directly or as a remote module (that would be available as python wheels).

---

<div class="post-metadata">

### Author: ![Sterben\_01](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sterben_01/32/6142_2.png) [@Sterben\_01](https://discourse.vtk.org/u/Sterben_01)
#### Post date: [January 31, 2023, 1:45am UTC](https://discourse.vtk.org/t/does-vtk-has-a-class-which-can-write-nrrd-file/10556/4 "2023-01-31T01:45:13Z")

</div>

Thank you!

---

<div class="post-metadata">

### Author: ![Sterben\_01](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sterben_01/32/6142_2.png) [@Sterben\_01](https://discourse.vtk.org/u/Sterben_01)
#### Post date: [January 31, 2023, 1:45am UTC](https://discourse.vtk.org/t/does-vtk-has-a-class-which-can-write-nrrd-file/10556/5 "2023-01-31T01:45:26Z")

</div>

Thank you so much!
