<<<<<<<<<<<<<<<<<

merge_data_sets(display) Display merge_data_sets(display)

NAME

merge_data_sets - combine multiple data sets into single data set

DESCRIPTION

The merge_data_sets object takes as input one or more data sets and combines them into a single data set on output. Usually used in conjunection with reader objects to combine data into single data set.

SUPERCLASS

data_set_filter

INSTANCE VARIABLES

(inherited)

MESSAGES

generate_data! combines multiple data sets into single data set.

EXAMPLE

Data is extracted from netCDF file as separate unstructured point set geometry, scalar, and vector. The merge_data_sets filter is used to paste them together to form a single data set.

/* * Scripts tests the cdf_extract_data objects */ /* * For scalar extract portion of y-components of velocity data * (second time step) */ scalar new: no_pts = 10; /* set size of data to extract */

cdf_extract_scalar new: scalar_reader filename=`test.cdf' selection=(velocity, 1,2,2, 2,1,no_pts, 3,2,2) ;

/* * Extract third time step of velocity data */ cdf_extract_vector new: vector_reader filename=`test.cdf' vx_selection=(velocity, 1,3,3, 2,1,no_pts, 3,1,1) vy_selection=(velocity, 1,3,3, 2,1,no_pts, 3,2,2) vz_selection=(velocity, 1,3,3, 2,1,no_pts, 3,3,3) ;

/* * Extract first time step of pressure for x-axis; second time step * of velocity z-component for y-axis; points (i.e., * test_grid) y coordinates for z-axis */ cdf_extract_unstructured_points new: geom_reader filename=`test.cdf' x_selection=(pressure, 1,1,1, 2,1,no_pts, 3,1,1) /* default 3,1,1 */ y_selection=(velocity, 1,2,2, 2,1,no_pts, 3,3,3) z_selection=(test_grid, 1,1,no_pts, 2,2,2) ;

merge_data_sets new: merge data_in= (geom_reader, scalar_reader, vector_reader) output! ;

SEE ALSO

cdf_reader, cdf_extract_data, cdf_extract_scalar, cdf_extract_vector, cdf_extract_unstructured_points


Please send comments and suggestions to
consult@rpi.edu