# I want to get Uniform Rectilinear Grid

**URL:** https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738
**Category:** ParaView Support
**Created:** [July 27, 2021, 4:26pm UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738 "2021-07-27T16:26:49Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![rsrch](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rsrch/32/7189_2.png) [@rsrch](https://discourse.paraview.org/u/rsrch)
#### Post date: [July 27, 2021, 4:26pm UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738/1 "2021-07-27T16:26:49Z")

</div>

At line “press control and click on your dataset to select both” does the dataset mean the first csv file?

In my case the filter AppendAttributes has the same output as PointDataToCellData

---

<div class="post-metadata">

### Author: ![rsrch](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rsrch/32/7189_2.png) [@rsrch](https://discourse.paraview.org/u/rsrch)
#### Post date: [July 27, 2021, 4:43pm UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738/2 "2021-07-27T16:43:07Z")

</div>

Or maybe I use wrong way for my case. Can you please help me?  
I have csv file with coordinates of cells of cube and with one scalar data for each cell. That is I want to get Uniform Rectilinear Grid (my coordinates are evenly spaced in all directions) with cell attributes.

---

<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: [August 2, 2021, 8:06am UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738/3 "2021-08-02T08:06:23Z")

</div>

Please provide a csv file example

---

<div class="post-metadata">

### Author: ![rsrch](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rsrch/32/7189_2.png) [@rsrch](https://discourse.paraview.org/u/rsrch)
#### Post date: [August 2, 2021, 9:13am UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738/4 "2021-08-02T09:13:00Z")

</div>

[cube1.csv](https://discourse.paraview.org/uploads/short-url/9Q4ptbQcG3eoHrCoyG50eHx6LOH.csv) (25.6 KB)  
I realized that I wasn’t correct - the first 3 columns are not the coordinates of cells of cube, they are the serial number of cells of cube. But I think it is okay to accept they the same things because the coordinates are evenly spaced in all directions and it will not affect on solution of my task.

---

<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: [August 2, 2021, 9:15am UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738/5 "2021-08-02T09:15:06Z")

</div>

Open your file then use TableToStructuredGrid filter.

---

<div class="post-metadata">

### Author: ![rsrch](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rsrch/32/7189_2.png) [@rsrch](https://discourse.paraview.org/u/rsrch)
#### Post date: [August 2, 2021, 9:32am UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738/6 "2021-08-02T09:32:48Z")

</div>

In this case I get Structured Curvilinear Grid, with fewer points and cells than I need so I can’t apply a solver for my task to this grid.  
Shape of my cube is (16,12,10), that is I have 16_12_10=1920 cells and 17_13_11=2431 points of cube. But TableToPoints and TableToStructuredGrid filters can give me only (15,11,9) bounds.

---

<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: [August 2, 2021, 9:33am UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738/7 "2021-08-02T09:33:52Z")

</div>

Then you need to create your dataset yourself using a ProgrammableFilter.

---

<div class="post-metadata">

### Author: ![rsrch](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rsrch/32/7189_2.png) [@rsrch](https://discourse.paraview.org/u/rsrch)
#### Post date: [August 2, 2021, 10:21am UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738/8 "2021-08-02T10:21:19Z")

</div>

Okay. I have already started to change my data at another program but I was hoping that there is a solution to input cell attributes directly. So thank you for your answers!

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [August 2, 2021, 6:45pm UTC](https://discourse.paraview.org/t/i-want-to-get-uniform-rectilinear-grid/7738/9 "2021-08-02T18:45:45Z")

</div>

Have you thought of just using a rectilinear grid VTK file format? An example is here: [https://gitlab.kitware.com/paraview/paraview/-/issues/20622](https://gitlab.kitware.com/paraview/paraview/-/issues/20622)
