Importing Excel Data for Isovolume Rendering Paraview

心已入冬 提交于 2019-12-11 10:37:42

问题


I am trying to visualize heat intensity data(0 to 1)based on xyz. I have the data in a excel file and also in a csv file. In csv, the format is as follows:

x, y, z, scalar
0, 1, 1, 0.489324
1, 1, 1, 0.899
.
.
.

Each unit on an axis represents one voxel. There are totally 12 voxels along each axis. I would like visualize something close to this -> https://www.youtube.com/watch?v=UMnIwdQhZE4. How do i import either an excel data or csv into paraview? Is there a way to copy paste values from excel sheet into a 3d array?


回答1:


Paraview can easily open csv files, creating a table source. Once you load your data, you can use the

  1. TableToPoints: I find it the easiest option, you just have to select which column represent x,y,z. The outout is a polygonall mesh or
  2. TableToStructuredGrid: besides choosing the columns, you also have to write the extent - in your case I think 0-11 0-11 0-11 . I don't have much experience with this, but I think you also have to be careful if your data is x-fastest or not. The output in this case is a structuredGrid
  3. If you have to do something more complicated, you can use the programmable filter and change the output format. For examples see the paraview guide. For suitable formats, here is a nice answer https://stackoverflow.com/a/7667417/1136458


来源:https://stackoverflow.com/questions/29567753/importing-excel-data-for-isovolume-rendering-paraview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!