# How to create NRRD file from z-stack images?

**URL:** <https://discourse.threejs.org/t/how-to-create-nrrd-file-from-z-stack-images/63893>\
**Category:** Questions\
**Tags:** nrrd-loader\
**Created:** [April 9, 2024, 11:07pm UTC](https://discourse.threejs.org/t/how-to-create-nrrd-file-from-z-stack-images/63893 "2024-04-09T23:07:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhaolun7](https://avatars.discourse-cdn.com/v4/letter/z/9de0a6/32.png) [@zhaolun7](https://discourse.threejs.org/u/zhaolun7)\
**Post date:** [April 9, 2024, 11:07pm UTC](https://discourse.threejs.org/t/how-to-create-nrrd-file-from-z-stack-images/63893/1 "2024-04-09T23:07:05Z")

</div>

Hi Guys, I am doing something like [three.js examples](https://threejs.org/examples/#webgl2_materials_texture3d)  
The data I have is [The Cell Image Library](http://ccdb.ucsd.edu/images/CCDB_1019), it is a z-stack images, resulting from multi-layer scanning, I meet touble when creating .nrrd file from data like this. Is there any advices?

Futhermore, Is there any possible to change the texture or something to create dynamic animation effects？

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [April 10, 2024, 6:35pm UTC](https://discourse.threejs.org/t/how-to-create-nrrd-file-from-z-stack-images/63893/2 "2024-04-10T18:35:19Z")

</div>

Are you trying to convert your layered stack to .nrrd format,  
and you’re not finding tools to accomplish this?

---

<div class="post-metadata">

**Author:** ![zhaolun7](https://avatars.discourse-cdn.com/v4/letter/z/9de0a6/32.png) [@zhaolun7](https://discourse.threejs.org/u/zhaolun7)\
**Post date:** [April 12, 2024, 3:41am UTC](https://discourse.threejs.org/t/how-to-create-nrrd-file-from-z-stack-images/63893/3 "2024-04-12T03:41:18Z")

</div>

I found it with ChatGPT’s help.hahaha

---

<div class="post-metadata">

**Author:** ![zhaolun7](https://avatars.discourse-cdn.com/v4/letter/z/9de0a6/32.png) [@zhaolun7](https://discourse.threejs.org/u/zhaolun7)\
**Post date:** [April 12, 2024, 3:42am UTC](https://discourse.threejs.org/t/how-to-create-nrrd-file-from-z-stack-images/63893/4 "2024-04-12T03:42:03Z")

</div>

use python imageio and pynrrd libaray.
