12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

industrial-strength data visualization 571Figure C.1 Left: The main Data Explorer window. Right: The Data Prompter window that openswhen you select Import Data.5. Import data: Press the Import Data button in the main Data Explorer window.The Data Prompter window (Figure C.1 right) appears after a flash and a bang.Either key in the full path name of the data file (/home/mpaez/numerical.datin our case) or click on Select Data File from the File menu. We recommendthat after entering the file name, you depress the Browse Data button in theData Prompter. This gives you a window (Figure C.2 right) showing you whatDX thinks is in your data file. If you do not agree with DX, then you need tofind some way to settle the dispute.6. Describe data: Press the Grid or Scattered file button in the Data Prompterwindow. The window now expands (Figure C.2 left) to one that lets you pickout a description of the data.a. Select the leftmost Grid type, that is, the one with the regular array of smallsquares.b. For these data, select Single time step, which is appropriate because ourdata contain only a single column with no explicit (x, y) values.c. Because we have only the one z component to plot (a scalar field), set theslider at 1.d. Press the Describe Data button. This opens another window that tells DXthe structure of the data file. Enter 25 as the first entry for the Grid size, and13 as the second entry. This describes the 13 groups of 25 data elementsin a single long column. Press the button Column.e. Under the File menu, select Save as and enter a name with a .generalextension, for example, Shock.general. The file will containfile = /home/mpaez/Shock.dat grid = 25 x 13 format = asciiinterleaving = field majority = column field = field0 structure =−101<strong>COPYRIGHT</strong> <strong>2008</strong>, PRINCET O N UNIVE R S I T Y P R E S SEVALUATION COPY ONLY. NOT FOR USE IN COURSES.ALLpup_06.04 — <strong>2008</strong>/2/15 — Page 571

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!