# Errase Points of a VTU. Get coordinates/scalar field values of CP

**URL:** https://discourse.paraview.org/t/errase-points-of-a-vtu-get-coordinates-scalar-field-values-of-cp/12962
**Category:** ParaView Support
**Tags:** python, vtk
**Created:** [September 29, 2023, 2:02pm UTC](https://discourse.paraview.org/t/errase-points-of-a-vtu-get-coordinates-scalar-field-values-of-cp/12962 "2023-09-29T14:02:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Andy\_Danian\_Zapata\_E](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_danian_zapata_e/32/12496_2.png) [@Andy\_Danian\_Zapata\_E](https://discourse.paraview.org/u/Andy_Danian_Zapata_E)
#### Post date: [September 29, 2023, 2:02pm UTC](https://discourse.paraview.org/t/errase-points-of-a-vtu-get-coordinates-scalar-field-values-of-cp/12962/1 "2023-09-29T14:02:38Z")

</div>

Hi Paraview Experts

I am working to get the critical points of a scalar field. I want to erase/filter unnecessary critical points, How can it do?

another question

how get the coordinates and value of the scalar field of the critical points from a vtu file?

I share some file:

rho\_cubane.vti: scalar field  
CP1.vtu: field with critical points  
find\_cp.py: script pvpython  
cp1.png: image with critical points and scalar field. I want to eliminate the points far away of scalar field and get the coordinates and scalar field value for the other

 ![cp1](https://discourse.paraview.org/uploads/default/original/2X/8/874e07a75dc71cf50d9ece757d17267aaef1a6df.png)  
[CP1.vtu](https://discourse.paraview.org/uploads/short-url/fBYC3APXCSLksBokgSuTnmmOVNS.vtu) (783.6 KB)  
[find\_cp.py](https://discourse.paraview.org/uploads/short-url/h8b0F4NSyYrMYtsYutVn2jParYJ.py) (712 Bytes)  
[rho\_cubane.vti](https://discourse.paraview.org/uploads/short-url/2NTeJUcS4UXEAnCCevm0rDUtPEG.vti) (2.4 MB)

thanks
