# NRRD scale factor

**URL:** https://discourse.slicer.org/t/nrrd-scale-factor/10232
**Category:** Support
**Created:** [February 13, 2020, 1:51am UTC](https://discourse.slicer.org/t/nrrd-scale-factor/10232 "2020-02-13T01:51:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Hamburgerfinger](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@Hamburgerfinger](https://discourse.slicer.org/u/Hamburgerfinger)
#### Post date: [February 13, 2020, 1:51am UTC](https://discourse.slicer.org/t/nrrd-scale-factor/10232/1 "2020-02-13T01:51:50Z")

</div>

I’ve used RawImageGuess module to guess the format of some images and I’d like to use the ‘Generate nrrd header’ function to create a header template and convert them all to \*.nrrd with a script.

How can I include a scale factor in the nrrd header?

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [February 13, 2020, 5:49am UTC](https://discourse.slicer.org/t/nrrd-scale-factor/10232/2 "2020-02-13T05:49:47Z")

</div>

By scale factor, do you mean the voxel spacing?

If so, you should have specified that at the time of header creation (fields called X\_Spacing, Y\_Spacing, Z\_Spacing). Alternatively you can edit the image spacing field of the imported NRRD file in Volumes module, and resave the data.

---

<div class="post-metadata">

### Author: ![Hamburgerfinger](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@Hamburgerfinger](https://discourse.slicer.org/u/Hamburgerfinger)
#### Post date: [February 13, 2020, 6:08am UTC](https://discourse.slicer.org/t/nrrd-scale-factor/10232/3 "2020-02-13T06:08:20Z")

</div>

Ah sorry I mean a scalar which the raw image intensities (mine are integers) are multiplied by to give a real-world value (mine is activity concentration in Bq/mL) – in other words like the rescale slope in DICOM format. Is there an equivalent in the NRRD format that Slicer recognizes?

---

<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: [February 13, 2020, 6:31am UTC](https://discourse.slicer.org/t/nrrd-scale-factor/10232/4 "2020-02-13T06:31:29Z")

</div>

There is no intensity scaling information in NRRD format. You could add private fields that your software would recognize, but if you want to follow the standard and be compatible with more software then probably your best bet is to store the real-world values (as floating-point values).
