# Resample Cell Data

**URL:** https://discourse.paraview.org/t/resample-cell-data/2118
**Category:** ParaView Support
**Created:** [June 26, 2019, 1:55pm UTC](https://discourse.paraview.org/t/resample-cell-data/2118 "2019-06-26T13:55:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kmcoulib](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/e19adc/32.png) [@kmcoulib](https://discourse.paraview.org/u/kmcoulib)
#### Post date: [June 26, 2019, 1:55pm UTC](https://discourse.paraview.org/t/resample-cell-data/2118/1 "2019-06-26T13:55:20Z")

</div>

Hi everyone,

I have two grids that overlap in X and Y perfectly but not in Z. I would like to resample a cell data property from one grid to the other. The built-in resample filter convert the cell data to point data and converting it back to cell data distorts the data (categorical data are interpolated). Any tips or tricks to accomplish what I’m trying to do?

Thanks

---

<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: [June 26, 2019, 2:00pm UTC](https://discourse.paraview.org/t/resample-cell-data/2118/2 "2019-06-26T14:00:10Z")

</div>

Welcome to the ParaView community !

Could you include your data and/or screenshots ?

---

<div class="post-metadata">

### Author: ![kmcoulib](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/e19adc/32.png) [@kmcoulib](https://discourse.paraview.org/u/kmcoulib)
#### Post date: [June 26, 2019, 4:19pm UTC](https://discourse.paraview.org/t/resample-cell-data/2118/3 "2019-06-26T16:19:53Z")

</div>

Thanks for your quick reply. The data are huge so I’m attaching the screenshots below

Original cell data:

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

Resampled to another grid as point data

 ![resampled to point data.png](https://discourse.paraview.org/uploads/default/original/2X/f/f8893153bfaee9256b8f7f048ecc97073b42c277.png)

Conversion to Cell data using the filter PointDataToCellData

 ![point2cell.png](https://discourse.paraview.org/uploads/default/original/2X/a/a831d3301249ae6e73fc94f84c3dec22ef6ee8ad.png)

Ideally I would like to get rid of all these extra halos on the last figure.

Thanks

---

<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 5, 2019, 10:19am UTC](https://discourse.paraview.org/t/resample-cell-data/2118/4 "2019-07-05T10:19:27Z")

</div>

the PointData to CellData implies interpolation of the data in some cells, which create these artefacts. Which values are you expecting in these cells ?

---

<div class="post-metadata">

### Author: ![kmcoulib](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/e19adc/32.png) [@kmcoulib](https://discourse.paraview.org/u/kmcoulib)
#### Post date: [July 7, 2019, 8:50pm UTC](https://discourse.paraview.org/t/resample-cell-data/2118/5 "2019-07-07T20:50:24Z")

</div>

Thanks Mathieu,  
I was expecting the original data. As shown in my pictures. Ideally I wanted to resample original cell data to cell data in the second grid but there is no such filter.

---

<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 8, 2019, 7:34am UTC](https://discourse.paraview.org/t/resample-cell-data/2118/6 "2019-07-08T07:34:43Z")

</div>

Ok, I get it now. Indeed it looks like the Ressample with dataset filter does not support ressampling on cell.

Does the “another grid” cells are exactly present inside the original cell data ? or is the topology completely different ?
