# How could I get the coordinates of the center of a domain cell?

**URL:** https://discourse.paraview.org/t/how-could-i-get-the-coordinates-of-the-center-of-a-domain-cell/5060
**Category:** Web Support
**Tags:** vtk
**Created:** [August 8, 2020, 5:26pm UTC](https://discourse.paraview.org/t/how-could-i-get-the-coordinates-of-the-center-of-a-domain-cell/5060 "2020-08-08T17:26:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 8, 2020, 5:26pm UTC](https://discourse.paraview.org/t/how-could-i-get-the-coordinates-of-the-center-of-a-domain-cell/5060/1 "2020-08-08T17:26:38Z")

</div>

Hi,  
As I wrote in the title, how could I get the coordinates of the center of a cell? I am attaching an image to make clear my question (I am looking for the coordinates of the red dots)

 ![COORDINATES_CELL](https://discourse.paraview.org/uploads/default/original/2X/2/235f8cce4450601025faff3b7a178f9902fddfb0.jpeg)

Thank you,  
Victor

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [August 8, 2020, 5:51pm UTC](https://discourse.paraview.org/t/how-could-i-get-the-coordinates-of-the-center-of-a-domain-cell/5060/2 "2020-08-08T17:51:19Z")

</div>

You could use the `Cell Centers` filter. That will create a data set with a point at the center of each cell. You can use the coordinates of each point to get the coordinates of the respective cell center.

---

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 8, 2020, 6:59pm UTC](https://discourse.paraview.org/t/how-could-i-get-the-coordinates-of-the-center-of-a-domain-cell/5060/3 "2020-08-08T18:59:24Z")

</div>

Alright, but now that I have used it, is there a way in which the coordinates of the centers of the cells (that I have extracted using the Extract Selection filter) could be shown in the spreadsheet view next to the Cp and pressure data?

 ![COORDINATES_CELL2_](https://discourse.paraview.org/uploads/default/original/2X/b/bf3d96d0f1e26a0225ad1d17fae287a74b62c8dd.jpeg)

---

<div class="post-metadata">

### Author: ![Victor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/3e96dc/32.png) [@Victor](https://discourse.paraview.org/u/Victor)
#### Post date: [August 9, 2020, 8:51am UTC](https://discourse.paraview.org/t/how-could-i-get-the-coordinates-of-the-center-of-a-domain-cell/5060/4 "2020-08-09T08:51:06Z")

</div>

Nevermind, I just realised that I was extracting blocks instead of points. This is the correct solution. Thank you Kenneth!

 ![COORDINATES_CELL3](https://discourse.paraview.org/uploads/default/original/2X/4/4ef3a01a0f6bb9f9a88ae2ef5442382dbd85b0ae.jpeg)
