# Find Cell Data - Based on csv file

**URL:** https://discourse.paraview.org/t/find-cell-data-based-on-csv-file/7923
**Category:** ParaView Support
**Created:** [September 2, 2021, 6:59pm UTC](https://discourse.paraview.org/t/find-cell-data-based-on-csv-file/7923 "2021-09-02T18:59:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Graham](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4af34b/32.png) [@Graham](https://discourse.paraview.org/u/Graham)
#### Post date: [September 2, 2021, 6:59pm UTC](https://discourse.paraview.org/t/find-cell-data-based-on-csv-file/7923/1 "2021-09-02T18:59:55Z")

</div>

I want to extract only cells below the white line. The white line is from a csv file I used “TabletoPoint” to get the plot. The csv file has two columns with x and y locations.

I have an idea but idk how to execute it. For every cell in the mesh :

if (Cell\_x == CSV\_x && Cell\_y \<=CSV\_y) : Keep that cell  
Else: Remove that cell

 ![image](https://discourse.paraview.org/uploads/default/original/2X/6/6f6c0e2565a256a2f31398bd215aab38fc2ff7f7.png)

Thank you for your time and help

---

<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: [September 3, 2021, 8:06am UTC](https://discourse.paraview.org/t/find-cell-data-based-on-csv-file/7923/2 "2021-09-03T08:06:03Z")

</div>

Edit → FindData → Query

---

<div class="post-metadata">

### Author: ![Graham](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4af34b/32.png) [@Graham](https://discourse.paraview.org/u/Graham)
#### Post date: [September 3, 2021, 9:37am UTC](https://discourse.paraview.org/t/find-cell-data-based-on-csv-file/7923/3 "2021-09-03T09:37:00Z")

</div>

I am new to Paraview, within the FindData how to apply.  
boundary\_extraction is csv file which is the white line.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/b/baa489bd075f24dfa9a4c672ba9bab066478c919.png)

---

<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: [September 3, 2021, 9:44am UTC](https://discourse.paraview.org/t/find-cell-data-based-on-csv-file/7923/4 "2021-09-03T09:44:08Z")

</div>

My bad, this cannot work. You need to implement this in a programmable filter I’m afraid.

---

<div class="post-metadata">

### Author: ![Graham](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4af34b/32.png) [@Graham](https://discourse.paraview.org/u/Graham)
#### Post date: [September 3, 2021, 9:48am UTC](https://discourse.paraview.org/t/find-cell-data-based-on-csv-file/7923/5 "2021-09-03T09:48:53Z")

</div>

Okay, thanks for the reply. How to get started with the programming part of ParaView?

---

<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: [September 3, 2021, 9:49am UTC](https://discourse.paraview.org/t/find-cell-data-based-on-csv-file/7923/6 "2021-09-03T09:49:22Z")

</div>

[https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html](https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html)

---

<div class="post-metadata">

### Author: ![Graham](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4af34b/32.png) [@Graham](https://discourse.paraview.org/u/Graham)
#### Post date: [September 3, 2021, 9:49am UTC](https://discourse.paraview.org/t/find-cell-data-based-on-csv-file/7923/7 "2021-09-03T09:49:48Z")

</div>

Thank you
