# GetProperty ?

**URL:** https://discourse.paraview.org/t/getproperty/2204
**Category:** ParaView Support
**Tags:** exodus
**Created:** [July 11, 2019, 10:57pm UTC](https://discourse.paraview.org/t/getproperty/2204 "2019-07-11T22:57:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Mariana\_Rodriguez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mariana_rodriguez/32/1668_2.png) [@Mariana\_Rodriguez](https://discourse.paraview.org/u/Mariana_Rodriguez)
#### Post date: [July 11, 2019, 10:57pm UTC](https://discourse.paraview.org/t/getproperty/2204/1 "2019-07-11T22:57:22Z")

</div>

Hello,

I want to read a variable of the source to then use in a python script.  
How can I do that?  
GetProperty does not work.

Thank you,  
Mariana

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 12, 2019, 7:22am UTC](https://discourse.paraview.org/t/getproperty/2204/3 "2019-07-12T07:22:11Z")

</div>

@Mariana_Rodriguez : what do you mean by “a variable” ? do you mean data from your dataset or a property from the source ?

---

<div class="post-metadata">

### Author: ![Mariana\_Rodriguez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mariana_rodriguez/32/1668_2.png) [@Mariana\_Rodriguez](https://discourse.paraview.org/u/Mariana_Rodriguez)
#### Post date: [July 12, 2019, 3:15pm UTC](https://discourse.paraview.org/t/getproperty/2204/4 "2019-07-12T15:15:09Z")

</div>

I mean to read a property from the source. For instance, read the vector of pressures of my .e file in a python script.

Thank you.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 12, 2019, 3:15pm UTC](https://discourse.paraview.org/t/getproperty/2204/5 "2019-07-12T15:15:54Z")

</div>

by “read”, do you mean directly accessing the data in the python script to process it manually ?

---

<div class="post-metadata">

### Author: ![Mariana\_Rodriguez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mariana_rodriguez/32/1668_2.png) [@Mariana\_Rodriguez](https://discourse.paraview.org/u/Mariana_Rodriguez)
#### Post date: [July 12, 2019, 3:18pm UTC](https://discourse.paraview.org/t/getproperty/2204/6 "2019-07-12T15:18:09Z")

</div>

Yes. Exactly that.

I am trying to do this because I want to display in the view of Paraview the maximum of pressure and temperature at each time step with a python annotation filter.

Is there a simpler way to do this?

Thank you

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dave_demarle/32/27_2.png) [@Dave\_DeMarle](https://discourse.paraview.org/u/Dave_DeMarle)
#### Post date: [July 12, 2019, 9:39pm UTC](https://discourse.paraview.org/t/getproperty/2204/7 "2019-07-12T21:39:35Z")

</div>

It gets tricky to get the array values out because of the client server and parallel nature we have for scalable data. See, the client doesn’t have direct access to the arrays generally. There are tricks like servermanager.Fetch to copy an array to the client, object.CellData.GetArray(“name”).GetRange() to get the summary you see in the Information tab on the client, and ye olde python programmable filter which operates on the server and can thus inspect data directly where it lives and produce something there that you can label.

Those can be a pain, and fortunately, in this particular situation there is a workaround.  
Apply the python annotation filter with an expression of “max(arrayname)” and it should do what you want.
