导入Excel数据以进行Isovolume渲染Paraview [英] Importing Excel Data for Isovolume Rendering Paraview
问题描述
我试图基于 xyz
可视化热强度数据(0到1)。我在excel文件和csv文件中都有数据。在csv中,格式如下:
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
.
.
.
轴上的每个单位代表一个体素。每个轴上总共有12个体素。我想想像一下这件事-> https://www.youtube.com/watch?v = UMnIwdQhZE4 。如何将Excel数据或csv导入paraview?有没有一种方法可以将粘贴值从Excel工作表复制到3D数组中?
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?
推荐答案
Paraview可以轻松打开csv文件,从而创建表源。加载数据后,您可以使用
Paraview can easily open csv files, creating a table source. Once you load your data, you can use the
- TableToPoints:我发现这是最简单的选项,您只需选择代表x的列即可,y,z。 outout是一个polygonall网格
或 - TableToStructuredGrid:除了选择列之外,您还必须编写范围-在您的情况下,我认为0-11 0-11 0- 11。我对此没有太多经验,但是我想您也必须注意数据是否为x最快的。在这种情况下,输出为结构化网格
- 如果您必须执行更复杂的操作,则可以使用可编程过滤器并更改输出格式。有关示例,请参见paraview指南。对于合适的格式,这是一个很好的答案 https://stackoverflow.com/a/7667417/1136458
- 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
这篇关于导入Excel数据以进行Isovolume渲染Paraview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!