![]() |
![]() |
![]() |
![]() |
scat_to_unif
Synopsis
interpolate scattered data into a uniform mesh
Input Port
Parameters
Output Port
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
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
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.
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-dimensionUIsliders. 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 ZUIsliders. Float. Set the depth of the search for nodes in the input mesh. The defaults are (max_xyz - min_xyz)/10.
UIslider. Integer. Controls the order of interpolation performed on the adjacent nodes. The default is 2. The range is 0 to 32.
Output Port
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.
Example
Libraries.Examples.Visualization.Scat_to_Unif
v/dv_examp/sct_unif.vFile
See also related modules
![]() |
![]() |
![]() |
![]() |