scat_to_unif


Synopsis

interpolate scattered data into a uniform mesh

Input Ports

in_field

Mesh + Node_Data

ui_parent

module stack port

 

Parameters

data component

UIradioBoxLabel

component to process

ndim

UIslider

set dimension of search

I-dimension

UIslider

i dimension of search

J-dimension

UIslider

j dimension of search

K-dimension

UIslider

k dimension of search

search distance X

UIslider

X depth of search

search distance Y

UIslider

Y depth of search

search distance Z

UIslider

Z depth of search

order

UIslider

order of interpolation

 

Output Ports

out_fld

Mesh_Unif + Node_Data

out_obj

output renderable object

 

Description

scat_to_unif converts a field with a scattered grid into a field with a uniform mesh. A "scattered grid" has a structured mesh made up of disconnected nodes in space. An example is seismic data where the coordinates are the latitude, longitude, and perhaps elevation, of a sensing station, and the Node_Data is a set of observations. The grid is "scattered" because there is not data for every latitude, longitude, and elevation that exists.

scat_to_unif lets you define a uniform mesh of any dimensionality, coordinate extents, and physical extents. It superimposes the input grid over this new grid that you defined. Then, it searches the input grid's neighboring real nodes that have data (where search distance X, Y and Z control what is a neighbor), and creates data values for all the nodes in the new grid by interpolating from those neighboring data values. You can control the order of interpolation, what values are considered NULL, and what number to use as the NULL data value.

Input Ports

in_field

The input is a field with any mesh and Node_Data.

ui_parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)

Parameters

data component

UIradioBoxLabel. Radio buttons to pick which component to use for the data generation. The selection can be scalar or vector. The default is the first (0th) component. If node data labels are present, they are displayed.

ndim

UIslider. Sets the dimensionality of the "search cube", "search rectangle", or "search line" that is used to traverse the data. The default is 3 (search cube). The range is 1 to 3.

I-dimension
J-dimension
K-dimension

UIsliders. Set the dimensions of the search cube, rectangle, or line (depending on the input dimensionality). Use as many as necessary to match ndim. The defaults are 10 for each. Their range is 0 to 1000.

search distance X
search distance Y
search distance Z

UIsliders. Float. Set the depth of the search for nodes in the input mesh. The defaults are (max_xyz - min_xyz)/10.

order

UIslider. Integer. Controls the order of interpolation performed on the adjacent nodes. The default is 2. The range is 0 to 32.

Output Ports

out_fld

The output is a uniform mesh (mesh type Mesh_Unif). Its Node_Data is the interpolated data values at each node in the uniform grid.

out_obj

This is a renderable version of the output field.

Example

Libraries.Examples.Visualization.Scat_to_Unif
examples/sct_unif.v

File

v/modules.v

See also

Related modules