Download Importing and Visualizing Data with OpenDX: Creating .general Files for Datasets and more Study Guides, Projects, Research Computer Science in PDF only on Docsity! 1 mjb – November 22, 2006 Oregon State University Importing Your Own Data mjb – November 22, 2006 Oregon State University OpenDX Data Grid Types Surfaces Volumes Irregular: IR positions, IR connections Deformed Regular: IR positions, R connections R = “regular” IR = “irregular” Regular: R positions, R connections 2 mjb – November 22, 2006 Oregon State University Creating an OpenDX Data Descriptor File using the Data Prompter mjb – November 22, 2006 Oregon State University Most of the time, this is what you want Regular positions, regular connections One scalar value at each point Doesn’t matter here, but a good value for other data See next page 5 mjb – November 22, 2006 Oregon State University mjb – November 22, 2006 Oregon State University See next page 6 mjb – November 22, 2006 Oregon State University This all gets created automatically! Pretty amazing, huh? mjb – November 22, 2006 Oregon State University file = Z:\OpenDX\or.dat grid = 201 x 105 format = ascii interleaving = record majority = column field = field0 structure = scalar type = float dependency = positions positions = regular, regular, 0, 1, 0, -1 end Terrain Visualization .general File 2D Scalar Regular positions 7 mjb – November 22, 2006 Oregon State University file = Z:\OpenDX\vecs.dat grid = 16 x 16 x 16 format = ascii interleaving = record-vector majority = column field = velocity structure = 3-vector type = float dependency = positions positions = regular, regular, regular, 0, 1, 0, 1, 0, 1 end Vector Field Visualization .general File 3D 3-element Vector Regular positions mjb – November 22, 2006 Oregon State University Visualizing Points on a Scattered Grid (e.g., Digital Elevation Mapping) -360.78 128.438 2.25 -360.75 128.428 2.31 -360.80 128.405 2.20 -360.81 128.370 1.99 -360.91 128.369 1.75 -361.00 128.359 1.65 -361.16 128.354 1.77 -361.21 128.344 1.70 -361.25 128.344 1.76 · · · West→East South→North Elevation 10 mjb – November 22, 2006 Oregon State University mjb – November 22, 2006 Oregon State University Visualizing Points from a Scattered Grid (e.g., Digital Elevation Mapping) Realization Realization Connect creates triangles from scattered points. ShowConnections creates graphics to show how the scattered point connections were made. 11 mjb – November 22, 2006 Oregon State University Regridding a Dataset (especially good for writing out a Connect’ed Scattered Grid as a Rectangular Array) You might be doing this to downsize a dataset or to create a regular grid from a scattered grid Creates a new grid to project the data onto Projects the original data onto the new grid Writes out the new grid data file If Scattered data, route through Connect first. mjb – November 22, 2006 Oregon State University Regridding a Dataset Coordinates at the lower corner of the dataset Step size in each dimension How many steps to make in the grid Note: the upper corner coordinates will be “origin + (counts-1)*delta” 12 mjb – November 22, 2006 Oregon State University Writing a .general Dataset as a Native OpenDX .dx Dataset Says that you want to Export the data in a native OpenDX .dx file form. The .dx file format embeds the data description information, the positions, and the data values in one file. This makes it easier to keep track of and easier to give to other people.