# How to input IJK coordinate and get the value of the volume as txt

**URL:** https://discourse.slicer.org/t/how-to-input-ijk-coordinate-and-get-the-value-of-the-volume-as-txt/26894
**Category:** Development
**Tags:** python
**Created:** [December 23, 2022, 2:58am UTC](https://discourse.slicer.org/t/how-to-input-ijk-coordinate-and-get-the-value-of-the-volume-as-txt/26894 "2022-12-23T02:58:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![WilliamLambert1205](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/williamlambert1205/32/16334_2.png) [@WilliamLambert1205](https://discourse.slicer.org/u/WilliamLambert1205)
#### Post date: [December 23, 2022, 2:58am UTC](https://discourse.slicer.org/t/how-to-input-ijk-coordinate-and-get-the-value-of-the-volume-as-txt/26894/1 "2022-12-23T02:58:28Z")

</div>

Hi all,

I am trying to access to what is displayed in the Data Probe Module. I need to input IJK coordinate as array and get the value of the volume, without using the mouse at all.  
I looked at the example

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/a/9a61a7b503ecdc2c40076813cdbcf7f2047de6c6.png)  
However, it depends on the mouse location.  
So, where do all the data in Data Probe come from?  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/1/2101dc3e3810db623b56ae1797a2851eadf407e7.png)  
And what function should I use to get these ‘L’, ‘F’, ‘B’ data as array?  
I mean, since ‘infoWidget.layerValues[layer].text’ prints the value of the volume, ‘infoWidget = slicer.modules.DataProbeInstance.infoWidget’ must get the data array from some function. How can I use it? Or is there any driect way to input IJK coordinate as array and get the value of the volume?  
Thank you !

---

<div class="post-metadata">

### Author: ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)
#### Post date: [December 23, 2022, 9:47am UTC](https://discourse.slicer.org/t/how-to-input-ijk-coordinate-and-get-the-value-of-the-volume-as-txt/26894/2 "2022-12-23T09:47:25Z")

</div>

Hello,

Both questions are answered in the script repository, starting from [here](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#get-value-of-a-volume-at-specific-voxel-coordinates).
