# Export description from 3d data

**URL:** <https://discourse.slicer.org/t/export-description-from-3d-data/6981>\
**Category:** Development\
**Created:** [May 31, 2019, 10:25am UTC](https://discourse.slicer.org/t/export-description-from-3d-data/6981 "2019-05-31T10:25:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![safa](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@safa](https://discourse.slicer.org/u/safa)\
**Post date:** [May 31, 2019, 10:25am UTC](https://discourse.slicer.org/t/export-description-from-3d-data/6981/1 "2019-05-31T10:25:03Z")

</div>

how can I export a description of 3D data (information about this data) in a txt file or binary file ,…?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 31, 2019, 10:47am UTC](https://discourse.slicer.org/t/export-description-from-3d-data/6981/2 "2019-05-31T10:47:41Z")

</div>

Most file formats have some kind of header that store description and you can often add custom fields. What would you like to do exactly?

---

<div class="post-metadata">

**Author:** ![safa](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@safa](https://discourse.slicer.org/u/safa)\
**Post date:** [May 31, 2019, 11:41am UTC](https://discourse.slicer.org/t/export-description-from-3d-data/6981/3 "2019-05-31T11:41:48Z")

</div>

i need matrix presentation  
can i export description as an matrix presentation?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 31, 2019, 12:14pm UTC](https://discourse.slicer.org/t/export-description-from-3d-data/6981/4 "2019-05-31T12:14:07Z")

</div>

What do you mean by “matrix representation”? Volume IJK to RAS (or LPS) matrix is already saved in volume files.

---

<div class="post-metadata">

**Author:** ![safa](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@safa](https://discourse.slicer.org/u/safa)\
**Post date:** [May 31, 2019, 1:13pm UTC](https://discourse.slicer.org/t/export-description-from-3d-data/6981/6 "2019-05-31T13:13:40Z")

</div>

apart from the image that I’m going to save, I need a descriptive file on this image (txt file , matrix representation, json, …) how can i do this ?  
any type of file where i found values

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 31, 2019, 1:17pm UTC](https://discourse.slicer.org/t/export-description-from-3d-data/6981/7 "2019-05-31T13:17:50Z")

</div>

If you prefer not to store metadata inside your data file then it is even simpler. You can use standard Python commands to write this additional file with any content you need.
