# 2D contour from csv with values at array nodes

**URL:** https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636
**Category:** ParaView Support
**Created:** [June 21, 2020, 11:22pm UTC](https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636 "2020-06-21T23:22:05Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Qiao](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/q/ecccb3/32.png) [@Qiao](https://discourse.paraview.org/u/Qiao)
#### Post date: [June 21, 2020, 11:22pm UTC](https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636/1 "2020-06-21T23:22:05Z")

</div>

Dear guys,

I am new in using Paraview. I want to contour 2D array data in CSV format (the attached [result\_test.csv](https://discourse.paraview.org/uploads/short-url/8amTObzDrL5ZMn7ExDYerHxXguk.csv) (2.5 KB) ). The array is 10x10 size and each node of the array has its value. The contour will be based on these values. I have seen that there is a solution about the CSV with x,y coordinates, but in my CSV file, I just have the array and values. Could anyone can help me, please?

Thank you so much.

Sincerely.

---

<div class="post-metadata">

### Author: ![Qiao](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/q/ecccb3/32.png) [@Qiao](https://discourse.paraview.org/u/Qiao)
#### Post date: [June 22, 2020, 9:11am UTC](https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636/2 "2020-06-22T09:11:04Z")

</div>

Hi guys, or are there any other methods to visulise and contour the array value? Thank you so much.

---

<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 22, 2020, 9:18am UTC](https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636/3 "2020-06-22T09:18:33Z")

</div>

Your data is not correctly formated to be read into paraview.

it should be like that:

```
val00
val01
val01
 ...
val09
val10
val11
...
val98
val99
```

---

<div class="post-metadata">

### Author: ![Qiao](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/q/ecccb3/32.png) [@Qiao](https://discourse.paraview.org/u/Qiao)
#### Post date: [June 22, 2020, 9:51am UTC](https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636/4 "2020-06-22T09:51:20Z")

</div>

Hi Mathieu,

Thank you so much for your quick reply and help.

Yeah, because the values in my data are at the grid nodes without x,y,z coordinates. I can transfer it with x,y coordinates but it is time cost as I have so many files like that, so I am trying to contour without modifying the format How about .vtk format? If there is no possible, I will change the format as yours manually.

Best wishes

---

<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 22, 2020, 9:52am UTC](https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636/5 "2020-06-22T09:52:39Z")

</div>

There is no way to read your data as it is into ParaView. Can you control your output in any way ?

Instead of doing it manually, you should be able to write a sed command to take care of it.

---

<div class="post-metadata">

### Author: ![Qiao](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/q/ecccb3/32.png) [@Qiao](https://discourse.paraview.org/u/Qiao)
#### Post date: [June 24, 2020, 9:30am UTC](https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636/6 "2020-06-24T09:30:17Z")

</div>

Hi Thank you so much. I have written a sed command to transform the output and got what I need by using the filters Table to Points and Delaunay2D . Do you think using vtk is better than csv so that I don’t need to use filters each time.

---

<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 24, 2020, 9:31am UTC](https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636/7 "2020-06-24T09:31:17Z")

</div>

Yes it would be better.

---

<div class="post-metadata">

### Author: ![Qiao](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/q/ecccb3/32.png) [@Qiao](https://discourse.paraview.org/u/Qiao)
#### Post date: [June 24, 2020, 10:19am UTC](https://discourse.paraview.org/t/2d-contour-from-csv-with-values-at-array-nodes/4636/8 "2020-06-24T10:19:07Z")

</div>

Thank you.
