# Annotation in the time-lapse vtk files

**URL:** https://discourse.paraview.org/t/annotation-in-the-time-lapse-vtk-files/9197
**Category:** ParaView Support
**Created:** [March 16, 2022, 12:23pm UTC](https://discourse.paraview.org/t/annotation-in-the-time-lapse-vtk-files/9197 "2022-03-16T12:23:48Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [April 21, 2022, 10:39am UTC](https://discourse.paraview.org/t/annotation-in-the-time-lapse-vtk-files/9197/21 "2022-04-21T10:39:15Z")

</div>

The **Python Calculator** filter allows you to use the function `median`, which is included in `numpy`.

Indeed, the median can be calculated by typing the following in the **Expression** field of the **Python Calculator**. (Note that there is a bug if the variable name contains a slash, so the variable call is more redundant than usual.)

```python
np.median(inputs[0].CellData['Resistivity/Ohmm'])

```

The calculated median may be viewed in **Spread Sheet View** , for example.

 ![median](https://discourse.paraview.org/uploads/default/original/2X/c/c972503135a5455b4106dc71af70feaea10f5b07.png)

---

<div class="post-metadata">

### Author: ![reynoo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@reynoo](https://discourse.paraview.org/u/reynoo)
#### Post date: [April 21, 2022, 11:22am UTC](https://discourse.paraview.org/t/annotation-in-the-time-lapse-vtk-files/9197/22 "2022-04-21T11:22:47Z")

</div>

Hello again and thanks for your quick reply.

Is it possible to take out the temporal median for each cell? A similar thing that ‘Temporal statistics’ does for max, min, and average …

---

<div class="post-metadata">

### Author: ![reynoo](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@reynoo](https://discourse.paraview.org/u/reynoo)
#### Post date: [April 21, 2022, 11:26am UTC](https://discourse.paraview.org/t/annotation-in-the-time-lapse-vtk-files/9197/23 "2022-04-21T11:26:51Z")

</div>

I meant the median for each cell over time …

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [April 21, 2022, 11:37am UTC](https://discourse.paraview.org/t/annotation-in-the-time-lapse-vtk-files/9197/24 "2022-04-21T11:37:26Z")

</div>

Unfortunately, I have not been able to come up with an easy way to do this in ParaView. (Of course, it would be possible to create such a program…)

Could you please open a new thread regarding this question? You may get an answer.

[Previous page](https://discourse.paraview.org/t/annotation-in-the-time-lapse-vtk-files/9197.md?page=1)
