# Slicer spr export

**URL:** <https://discourse.slicer.org/t/slicer-spr-export/8627>\
**Category:** Support\
**Created:** [September 30, 2019, 4:54pm UTC](https://discourse.slicer.org/t/slicer-spr-export/8627 "2019-09-30T16:54:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Rorden](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chris_rorden/32/4073_2.png) [@Chris\_Rorden](https://discourse.slicer.org/u/Chris_Rorden)\
**Post date:** [September 30, 2019, 4:54pm UTC](https://discourse.slicer.org/t/slicer-spr-export/8627/1 "2019-09-30T16:54:26Z")

</div>

I think I found a tiny bug in the Slicer image export.

I am using Slicer 4.10.2 on a MacOS computer. I can open a NRRD volume and choose File/Save to save the file. I want to save as [Stimulate Sdt](https://www.cmrr.umn.edu/stimulate/stimUsersGuide/node57.html) so I save `Stimulate (.spr)` from the pulldown. I accept that I want to save the file as “spr.spr” in the folder `/Users/chris/s`. It then generates a header (.spr) and image (.sdt) file. If I open the header with a text file I see:

> stimFileName: /Users/chris/s/TempWritenrrd/spr.sdt

The folder `TempWritenrrd` does not exist, and both .sdt and .spr files are saved in `/Users/chris/s`. I think the Slicer writer should only use the file name without path or to include the actual path.

---

<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:** [October 2, 2019, 2:21am UTC](https://discourse.slicer.org/t/slicer-spr-export/8627/2 "2019-10-02T02:21:57Z")

</div>

Yes, this is indeed incorrect behavior. It is a bug in ITK (itkStimulateImageIO.cxx) that file path is not removed. I’ve also noticed that saving and reloading a file results in a 90+90 deg rotation of the volume. Is this file format still used somewhere? (the document that you linked is written in 1996!) If not that much, then maybe it is better to remove it from ITK and Slicer.

---

<div class="post-metadata">

**Author:** ![Chris\_Rorden](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chris_rorden/32/4073_2.png) [@Chris\_Rorden](https://discourse.slicer.org/u/Chris_Rorden)\
**Post date:** [October 2, 2019, 7:18pm UTC](https://discourse.slicer.org/t/slicer-spr-export/8627/3 "2019-10-02T19:18:50Z")

</div>

I only added support to MRIcroGL for Slicer compatibility. Seems safe to retire this format.
