# Gamma Analysis of beam profiles

**URL:** <https://discourse.slicer.org/t/gamma-analysis-of-beam-profiles/3356>\
**Category:** Support\
**Created:** [July 2, 2018, 1:32pm UTC](https://discourse.slicer.org/t/gamma-analysis-of-beam-profiles/3356 "2018-07-02T13:32:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AGul](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@AGul](https://discourse.slicer.org/u/AGul)\
**Post date:** [July 2, 2018, 1:32pm UTC](https://discourse.slicer.org/t/gamma-analysis-of-beam-profiles/3356/1 "2018-07-02T13:32:56Z")

</div>

Hi.  
How Can I calculate gamma index of two beam profiles acquired with to different detectors in 3D slicer. I have data in MS excel.

---

<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:** [July 3, 2018, 10:50am UTC](https://discourse.slicer.org/t/gamma-analysis-of-beam-profiles/3356/2 "2018-07-03T10:50:49Z")

</div>

The Dose Comparison module in the SlicerRT extension calculates gamma index for dose volumes.

Is your data a dose distribution or a PDD-like 1D profile?

---

<div class="post-metadata">

**Author:** ![AGul](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@AGul](https://discourse.slicer.org/u/AGul)\
**Post date:** [July 3, 2018, 12:17pm UTC](https://discourse.slicer.org/t/gamma-analysis-of-beam-profiles/3356/3 "2018-07-03T12:17:23Z")

</div>

My data is 1 D distribution (PDD and Off axis profile) in MS Excel.

---

<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:** [July 3, 2018, 12:23pm UTC](https://discourse.slicer.org/t/gamma-analysis-of-beam-profiles/3356/4 "2018-07-03T12:23:38Z")

</div>

There is no tool with user interface for that. We have two extensions for dosimetry: Gel Dosimetry Analysis and Film Dosimetry Analysis. They can take yo through the whole process, but even those cannot calculate gamma between two PDDs. However, it is an extremely simple calculation, which you can even do in Excel. You need to decide how much of your workflow you want to do in Slicer. If it’s way more than this comparison, then we can write a simple script that can do this. But since your data is in Excel, which Slicer cannot produce, it is probably mostly in Matlab + Excel.  
If you give us more information, then we can help, but at this point I can only do guesswork.

---

<div class="post-metadata">

**Author:** ![AGul](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@AGul](https://discourse.slicer.org/u/AGul)\
**Post date:** [July 3, 2018, 12:29pm UTC](https://discourse.slicer.org/t/gamma-analysis-of-beam-profiles/3356/5 "2018-07-03T12:29:47Z")

</div>

Thank you very much for your detailed reply. Can you please write a script in Excel, for example for Gamma (2%, 2mm), for me so that i can understand it. Thanking you in advance.

---

<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:** [July 3, 2018, 2:26pm UTC](https://discourse.slicer.org/t/gamma-analysis-of-beam-profiles/3356/6 "2018-07-03T14:26:25Z")

</div>

This is the Slicer forum. For Excel questions, please ask for help on the Microsoft forums.
