问题
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
- 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
- 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
- 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