# Add the cell center coordinates to the cell data

**URL:** https://discourse.paraview.org/t/add-the-cell-center-coordinates-to-the-cell-data/560
**Category:** ParaView Support
**Created:** [September 12, 2018, 7:09am UTC](https://discourse.paraview.org/t/add-the-cell-center-coordinates-to-the-cell-data/560 "2018-09-12T07:09:02Z")
**Posts on this page:** 1
**Showing post:** 7

<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 31, 2022, 9:59pm UTC](https://discourse.paraview.org/t/add-the-cell-center-coordinates-to-the-cell-data/560/7 "2022-08-31T21:59:49Z")

</div>

I ended up revisiting this topic while answering a different question. I found my original solution is behaving a little wonky. @banesullivan’s plugin script works great, but fails on multiblock data sets. I found a slightly simpler solution.

1. Add the `Calculator` filter. Set the `Attribute Type` to `Point Data`. Set the `Result Array name` to `Cell Center`. Set the expression to `coords`. `Apply`.
2. Add the `Point Data to Cell Data` filter. Uncheck `Process All Arrays`. Uncheck all point arrays except `Cell Center`. Check `Pass Point Data`. `Apply`.

The result should be one more cell field with the cell centers. This should work with any data set whether multi-block or single data set. To make this even easier, here is a custom filter that just adds the `Cell Center` array as a single filter.

[AppendCellCenters.cpd](https://discourse.paraview.org/uploads/short-url/z8SQTtWUNP42lSsUnvHm0Ev7Tj8.cpd) (5.2 KB)

To load this, go to `Tools` → `Manage Custom Filters...`. Then click the `Import` button to load this file.

---

_[View the full topic](https://discourse.paraview.org/t/add-the-cell-center-coordinates-to-the-cell-data/560)._
