# Reading probed values for volume elements

**URL:** <https://discourse.slicer.org/t/reading-probed-values-for-volume-elements/27175>\
**Category:** Support\
**Created:** [January 10, 2023, 6:59pm UTC](https://discourse.slicer.org/t/reading-probed-values-for-volume-elements/27175 "2023-01-10T18:59:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZSoltani](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zsoltani/32/17166_2.png) [@ZSoltani](https://discourse.slicer.org/u/ZSoltani)\
**Post date:** [January 10, 2023, 6:59pm UTC](https://discourse.slicer.org/t/reading-probed-values-for-volume-elements/27175/1 "2023-01-10T18:59:50Z")

</div>

HI ALL,

After using Probe volume with model, is there any way that I can export the HU values of the elements in a readable format? I need them for FE analysis.

p.s. I can see that slicer.util.array() can be used for reading values on each slice, but I’m not sure about how to read the values for the volume elements.

Thank you,

Zahra

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 10, 2023, 10:09pm UTC](https://discourse.slicer.org/t/reading-probed-values-for-volume-elements/27175/2 "2023-01-10T22:09:09Z")

</div>

I’m not sure what format the FE analysis requires, but you should be able to access the per-vertex values with something like `arrayFromModelPointData(n, "NRRDImage")` where n is your model node and NRRDImage is your array name from Probe Volume with Model. Then you can write it out in whatever format you need.

---

<div class="post-metadata">

**Author:** ![ZSoltani](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zsoltani/32/17166_2.png) [@ZSoltani](https://discourse.slicer.org/u/ZSoltani)\
**Post date:** [January 11, 2023, 6:17pm UTC](https://discourse.slicer.org/t/reading-probed-values-for-volume-elements/27175/3 "2023-01-11T18:17:23Z")

</div>

Thank you Steve for your reply. Yes, then I can use the nodal values to calculate the values at integration points that I will need in FE analysis.

For completeness of our FE, is the source code for Probe volume with model available, so that I can look at the algorithm for calculating the nodal values?

Thanks,

Zahra

---

<div class="post-metadata">

**Author:** ![mau\_igna\_06](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mau_igna_06/32/9056_2.png) [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Post date:** [January 11, 2023, 6:24pm UTC](https://discourse.slicer.org/t/reading-probed-values-for-volume-elements/27175/4 "2023-01-11T18:24:21Z")

</div>

Please have a look here:

> <https://github.com/Slicer/Slicer/blob/main/Modules/CLI/ProbeVolumeWithModel/ProbeVolumeWithModel.cxx>

---

<div class="post-metadata">

**Author:** ![ZSoltani](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zsoltani/32/17166_2.png) [@ZSoltani](https://discourse.slicer.org/u/ZSoltani)\
**Post date:** [January 11, 2023, 6:28pm UTC](https://discourse.slicer.org/t/reading-probed-values-for-volume-elements/27175/5 "2023-01-11T18:28:30Z")

</div>

Thank you Mauro.

Zahra
