# Reading Nastran .nas file and Results with .csv file

**URL:** https://discourse.paraview.org/t/reading-nastran-nas-file-and-results-with-csv-file/1189
**Category:** ParaView Support
**Created:** [January 26, 2019, 11:16am UTC](https://discourse.paraview.org/t/reading-nastran-nas-file-and-results-with-csv-file/1189 "2019-01-26T11:16:40Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [January 28, 2019, 3:26pm UTC](https://discourse.paraview.org/t/reading-nastran-nas-file-and-results-with-csv-file/1189/4 "2019-01-28T15:26:23Z")

</div>

Harald,

Here is the state file [merge\_arrays\_state.pvsm](https://discourse.paraview.org/uploads/default/original/2X/d/def04e40c56d8482785e3a3b5575d80bc78fbf26.pvsm) (251.2 KB)

Here’s what I did, I opened the two files then selected the `.nas` and `.csv` readers in the pipeline browser and then created the `Programmable Filter` with the following script:

```python
blk0 = output.GetBlock(0)
tbl = inputs[1]
blk0.GetCellData().PassData(tbl.GetRowData().VTKObject)

```

The result is that all the arrays from the csv are now available on the cells.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/814a39db946880b2195f8cd2844cd2427c9d06a1.png)

---

_[View the full topic](https://discourse.paraview.org/t/reading-nastran-nas-file-and-results-with-csv-file/1189)._
