
Importing & Displaying Existing
Data with DX
Overview:
A professor in the Physics department was using alternate visualization
tools to display data that he had generated and stored in SDS format, a
subset of HDF. Theis project involved teaching the professor how to use
DX to import his data and display it using DX modules.
Program:
Algorithm:
This program was largely written by the professor, with a little
prompting.
- Importing & Choosing Data
The data needed to be imported into the program. It was in HDF format,
and therefore all that was needed was an import module, where the data
file type was explicitly set to HDF. He also wanted to have the ability
to choose which file to import and therefore he added the FileSelector
module to facilitate choosing which file to display.
- Creating the isosurfaces
The two isosurfaces are almost identical. They both use the Isosurface
module to display the data as an isosurface. Both modules also use a
scalar input to display a particular isosurface value. One module had its
data passed through the AutoColor simply to change the isosurfaces color
and distinguish between the two isosurfaces.
- Data collection & Display
Finally the data is collected, and displayed.
Source Code:
Sample Output:
[UP]