在ParaView中显示一个高程网格 [英] Displaying an Elevation grid in ParaView

查看:2749
本文介绍了在ParaView中显示一个高程网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ParaView的新手,完全失去了所有不同的数据格式。我想要做的就是显示一个由程序产生的高程网格。我将高程网格存储在由 x y 坐标索引的浮点数的二维数组中,并将 z 坐标。换句话说, elevationGrid [x] [y] 存储高于点(x,y)的高度。

我应该使用哪种文件格式,以及如何定义?这将是理想的,如果有人可以给一个例如3X3格的文件。

解决方案

第一种方法与5x5网格和方程z = x ^ 2 + y ^ 2,使用一个非常简单的输入格式。这是一个通用的方法,不是特别专注于结构化网格。
Paraview 3.14.1已经完成了下面的工作:
$ b

1)以csv格式保存你的数据,例如:



 x,y,z
-0.5,-0.5,0.5
-0.30000001,-0.5,0.34000001
-0.1,-0.5,0.26

0.1,0.5,0.26
0.30000001,0.5,0.34000001
0.5,0.5,0.5



2)在Paraview中打开你的csv文件



导入选项。


$ b

3)将表转换为几何点



应用过滤器>按字母顺序> / b>

您将被要求为每个坐标赋予每个变量。

4)显示3D视图以查看您的点



创建一个新的可视化视图(添加一个新选项卡)并选择3D视图。
激活你的TableToPoints过滤器,点击管道中名字旁边的小眼睛。



如果事情没有问题,在这一点上,你会看到你的散点图。
$ b

5)最后一步:创建曲面



应用滤镜>按字母顺序> Delaunay 2D



使用默认选项,最后得到: b



编辑

我记得创建立面图的专用函数的名称...它是标量 函数的 包装。你可以结合上面的一些步骤来更容易地得到你想要的。我可以给你一个例子,如果有必要的。

I'm new to ParaView and completely lost with all the different data formats. All I want to do is display an elevation grid which is produced by a program. I store the elevation grid in a two dimensional array of floats which is indexed by x and y coordinates and stores the z coordinate. In other words elevationGrid[x][y] stores the height above the point (x, y).

Which file format should I use for this and how is it defined? It would be ideal if someone could give an example file for, say, a 3x3 grid.

解决方案

A first approach with a 5x5 grid and equation z = x^2+y^2, using a very simple input format. This is a general approach, not especially dedicated to structured grid. The following has been done with Paraview 3.14.1.

1) Save your data in csv format, i.e. :

"x","y","z"
-0.5,-0.5,0.5
-0.30000001,-0.5,0.34000001
-0.1,-0.5,0.26
[...]
0.1,0.5,0.26
0.30000001,0.5,0.34000001
0.5,0.5,0.5

2) Open in Paraview your csv file

Fill the required import options.

3) Convert your table to geometrical points

Apply Filters > Alphabetical > Table to points

You will be asked to give each variables for each coordinates.

4) Display 3D view to see your points

Create a new visualization view (add a new tab) and choose "3D View". Activate your TableToPoints filter clicking on the little eye near its name in the pipeline.

If evething is okay, at this point you will see your scatter plot.

5) Last step: create a surface

Apply Filters > Alphabetical > Delaunay 2D

And using default options, one finally obtains:

EDIT:

I remember the name of the dedicated function to create elevation map... It is the Wrap by scalar function. You can combine it with some above steps to get more easily what you want. I could give you an example if necessary.

这篇关于在ParaView中显示一个高程网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆