# Area of slice : CellSize vs Integrate Variables

**URL:** https://discourse.paraview.org/t/area-of-slice-cellsize-vs-integrate-variables/5686
**Category:** ParaView Support
**Created:** [October 29, 2020, 9:48pm UTC](https://discourse.paraview.org/t/area-of-slice-cellsize-vs-integrate-variables/5686 "2020-10-29T21:48:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![kirit\_101](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/b19c9b/32.png) [@kirit\_101](https://discourse.paraview.org/u/kirit_101)
#### Post date: [October 29, 2020, 9:48pm UTC](https://discourse.paraview.org/t/area-of-slice-cellsize-vs-integrate-variables/5686/1 "2020-10-29T21:48:49Z")

</div>

I need the area of my cell data as a variable to calculate area-weighted average values. To get that I am using Filter\> CellSize \> Compute Area. This gives me area on my cell data. I am exporting these values in csv files and this serves my purpose. I was calculating the total area summing all the cells. I got the total area here:  
 ![slice_area_celldata](https://discourse.paraview.org/uploads/default/original/2X/c/c3ddffd98aae088ffb5b81dd405761cf3cd1aa20.png)

Then I was cross-checking my values using IntegratVariables function. I got these area values from ingerateVariables :

 ![slice_area_integral](https://discourse.paraview.org/uploads/default/original/2X/5/55eef05f26fa35ff94178b9278eaacba6c375dbd.png)

These **two values are not close**. My understanding was these two values will be close. What I am missing?

What is the best way to get cell area ?

---

<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: [November 4, 2020, 8:43am UTC](https://discourse.paraview.org/t/area-of-slice-cellsize-vs-integrate-variables/5686/2 "2020-11-04T08:43:48Z")

</div>

Please share your data.

---

<div class="post-metadata">

### Author: ![kirit\_101](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/b19c9b/32.png) [@kirit\_101](https://discourse.paraview.org/u/kirit_101)
#### Post date: [November 4, 2020, 2:15pm UTC](https://discourse.paraview.org/t/area-of-slice-cellsize-vs-integrate-variables/5686/3 "2020-11-04T14:15:00Z")

</div>

Data: [https://drive.google.com/drive/folders/1MabQJL2gKk6f1ZCCjwgF7pD90GdM30LI](https://drive.google.com/drive/folders/1MabQJL2gKk6f1ZCCjwgF7pD90GdM30LI)

---

<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: [November 6, 2020, 11:32am UTC](https://discourse.paraview.org/t/area-of-slice-cellsize-vs-integrate-variables/5686/4 "2020-11-06T11:32:54Z")

</div>

Which hdf5 reader are you using ?

---

<div class="post-metadata">

### Author: ![kirit\_101](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/b19c9b/32.png) [@kirit\_101](https://discourse.paraview.org/u/kirit_101)
#### Post date: [November 6, 2020, 3:33pm UTC](https://discourse.paraview.org/t/area-of-slice-cellsize-vs-integrate-variables/5686/5 "2020-11-06T15:33:44Z")

</div>

CONVERGECFD Reader

---

<div class="post-metadata">

### Author: ![PA\_M](https://discourse.paraview.org/user_avatar/discourse.paraview.org/pa_m/32/6758_2.png) [@PA\_M](https://discourse.paraview.org/u/PA_M)
#### Post date: [November 16, 2021, 3:59pm UTC](https://discourse.paraview.org/t/area-of-slice-cellsize-vs-integrate-variables/5686/6 "2021-11-16T15:59:37Z")

</div>

Hello,  
I have noticed a similar discrepancy while using Cell Size over an isocontour. When exporting “Area” field with CSV and summing it with Python (np.sum), it does not give the same result than the Integrate Variables filter. Apparently the Integrate Variable is right because I have a factor of 10 between the two, and the result from Python is visually impossible. What magic is going on here ?

---

<div class="post-metadata">

### Author: ![SCRO1022](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@SCRO1022](https://discourse.paraview.org/u/SCRO1022)
#### Post date: [November 29, 2021, 1:50pm UTC](https://discourse.paraview.org/t/area-of-slice-cellsize-vs-integrate-variables/5686/7 "2021-11-29T13:50:52Z")

</div>

I compared the cell size filter and integrate variable filter on a slice surface and also can see two totally different results. Integrate Variables seems much more valid…
