# No isodose lines/surfaces in SlicerRT - dose volume is neither "GY" nor "RELATIVE"

**URL:** <https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429>\
**Category:** Support\
**Tags:** slicerrt\
**Created:** [October 31, 2021, 1:39pm UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429 "2021-10-31T13:39:07Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsforn](https://avatars.discourse-cdn.com/v4/letter/h/85e7bf/32.png) [@Harsforn](https://discourse.slicer.org/u/Harsforn)\
**Post date:** [October 31, 2021, 1:39pm UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/1 "2021-10-31T13:39:07Z")

</div>

Hi all,

I’m trying to generate a RT treatment plan and visualise isodose surfaces through the SlicerRT extension. I’ve added 5 beams and selected the Mock Python dose engine but after calculating, the output dose volume doesn’t appear to be working correctly - when trying to visualise isodoses through the corresponding module, I get the error: dose volume is neither “GY” nor “RELATIVE”. I’ve included screencaps of both the error and the External Beam Planning configuration.

Thanks for your time.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/8/28834a4956a65308f06a3a769d3a7237cf3326de.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/4/e4dd821cbb89cdda4b27fc9a3c2707c71ac216ce.png)

---

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://discourse.slicer.org/u/Mik)\
**Post date:** [November 2, 2021, 6:58am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/2 "2021-11-02T06:58:08Z")

</div>

> [@Harsforn](#):
>
> I get the error: dose volume is neither “GY” nor “RELATIVE”

Dear @Harsforn  
It’s not an error, just a warning message that calculated dose volume doesn’t have a dose units attribute. You can calculate isodose surface in any case, but the units on the color bar will be “MU” (monitor units). Could you confirm that calculated dose volume has expected dose distribution? That it’s not filled with zero values?

P.S.  
I don’t know how Mock Python dose engine calculates dose distribution (Is it working or not).

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [November 2, 2021, 9:40am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/3 "2021-11-02T09:40:40Z")

</div>

Mock Python is just an example plugin to show developers how to write a dose engine in Python. It simply fills the beam volumes with a constant value (maybe with some noise applied). It should not be used for anything that intends to approximate real scenarios, only for testing.

---

<div class="post-metadata">

**Author:** ![Harsforn](https://avatars.discourse-cdn.com/v4/letter/h/85e7bf/32.png) [@Harsforn](https://discourse.slicer.org/u/Harsforn)\
**Post date:** [November 2, 2021, 9:44am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/4 "2021-11-02T09:44:39Z")

</div>

Ahh I see; thank you. Is there another standalone photon dose engine/plugin available? I see that the orthovoltage engine uses dosxyzynrc but was hoping to avoid relying on that if possible.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [November 2, 2021, 9:50am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/5 "2021-11-02T09:50:20Z")

</div>

Unfortunately our repeated past attempts to secure funding for adding a photon dose engine (among other things) were unsuccessful, so there are no good options to calculate MV photon dose in SlicerRT.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [November 2, 2021, 10:33am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/6 "2021-11-02T10:33:17Z")

</div>

To answer your question about standalone photon engine, I have been looking at matRad (who at the time were not interested in working together on Slicer integration) but I haven’t checked the project for years. Back then the engine was not fully validated but was said to be pretty accurate.

If you find the matRad engine useful, and then have some affinity and motivation, we’d be happy to help in integrating it into Slicer. It should be fairly simple using SlicerMatlabBridge, but none of my colleagues had time to check in depth matRad and vice versa. Let me know if this sounds interesting to you!

---

<div class="post-metadata">

**Author:** ![Harsforn](https://avatars.discourse-cdn.com/v4/letter/h/85e7bf/32.png) [@Harsforn](https://discourse.slicer.org/u/Harsforn)\
**Post date:** [November 2, 2021, 10:45am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/7 "2021-11-02T10:45:14Z")

</div>

I’ve actually been using matRad together with Slicer! I performed segmentation etc. through slicer (very user friendly) and then exported to matRad for dose calculations but I’ve found matRad to be very prescriptive with the kinds of files/formats it accepts - for example, if a scalar volume is not isotropic the DICOM import fails with an error about the slices being misaligned (which I corrected with Slicer’s Crop Volume but then ran into negative indexing issues with MATLAB/matRad).

I’ve been going back and forth between Slicer and matRad which is why I was asking about SlicerRT’s dose engine in this post - an attempt to cut matRad out of my workflow due to numerous compatibility issues I ran into.

While I am very interested in its integration with Slicer, my project is all but finished tomorrow so I wouldn’t be much help I’m afraid. I am a big fan of Slicer in the short time I’ve used it though and will continue to follow its development. Thank you all for your great work!

---

<div class="post-metadata">

**Author:** ![zhuyingying1234](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhuyingying1234/32/67107_2.png) [@zhuyingying1234](https://discourse.slicer.org/u/zhuyingying1234)\
**Post date:** [March 26, 2022, 6:32am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/8 "2022-03-26T06:32:35Z")

</div>

hi experts and all  
I also encountered the same problem after I imported the DICOM image and conducted the beams and dose calculation. After reading the above solution, I understand is that this slicer RT can only be used for reading plans and some post-processing, but not for making real plans, right?  
thank your answer

---

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://discourse.slicer.org/u/Mik)\
**Post date:** [March 26, 2022, 8:15am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/9 "2022-03-26T08:15:32Z")

</div>

Correct. You can’t create a real plan and calculate dose distribution.

---

<div class="post-metadata">

**Author:** ![zhuyingying1234](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhuyingying1234/32/67107_2.png) [@zhuyingying1234](https://discourse.slicer.org/u/zhuyingying1234)\
**Post date:** [March 26, 2022, 8:23am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/10 "2022-03-26T08:23:47Z")

</div>

thank you sir  
I would also like to ask why some people studying 3D-Slicer RT restored the complete iso-dose line and DVH diagram？

---

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://discourse.slicer.org/u/Mik)\
**Post date:** [March 26, 2022, 8:37am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/11 "2022-03-26T08:37:15Z")

</div>

My guess, that a user calculated dose distribution in third party program or package and now the user wants to calculate a new DVH histogram with already available CT and Segmentation data.

It’s a long and hard way to create a new TPS for scratch.

---

<div class="post-metadata">

**Author:** ![zhuyingying1234](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhuyingying1234/32/67107_2.png) [@zhuyingying1234](https://discourse.slicer.org/u/zhuyingying1234)\
**Post date:** [March 26, 2022, 9:10am UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/12 "2022-03-26T09:10:55Z")

</div>

so is plan design feasible in Slicer RT? Have you tried it? I tried it and found it was not very good. There were only the adjustment of the shooting field Angle and the lead door, which felt a little similar to the forward intensity adjustment, and the DVH was also not ideal…

---

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://discourse.slicer.org/u/Mik)\
**Post date:** [March 26, 2022, 12:14pm UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/13 "2022-03-26T12:14:02Z")

</div>

> [@zhuyingying1234](#):
>
> so is plan design feasible in Slicer RT?

It’s unfinished. Many things are absent and it can be used only as a template for future use or development.

> and the DVH was also not ideal…

Do you have any suggestions how to do it more usable, robust and user friendly?

---

<div class="post-metadata">

**Author:** ![zhuyingying1234](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhuyingying1234/32/67107_2.png) [@zhuyingying1234](https://discourse.slicer.org/u/zhuyingying1234)\
**Post date:** [March 26, 2022, 1:07pm UTC](https://discourse.slicer.org/t/no-isodose-lines-surfaces-in-slicerrt-dose-volume-is-neither-gy-nor-relative/20429/14 "2022-03-26T13:07:33Z")

</div>

Thank you very much for your answer. As a novice, I hope I can make progress together with slicer RT.thank you very much.
