/usr/share/doc/dx/help/dxall116 is in dx-doc 1:4.4.4-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #!F-adobe-helvetica-medium-r-normal--18*
#!N
#!CDarkGreen #!N #!Rall115 Example 1. Scalar Data on a
Regular Grid #!N #!EC #!N #!N This example illustrates how a
simple floating-point scalar field, on a regular grid, might be imported
from a text file named "record_scalar." The origin of the grid
is [1 3 2], with deltas of 0.5, 1, and 0.75
in the x, y, and z directions respectively. #!N #!I0 #!N
#!F-adobe-times-medium-r-normal--18* #!N #!N #!I30 #!N 1. In the Data Prompter initial
dialog box, choose Grid or Scattered File; then select the leftmost
button in the row labeled #!F-adobe-times-bold-r-normal--18* Grid type #!EF (regular grid).
#!N #!I30 #!N 2. Confirm that #!F-adobe-times-bold-r-normal--18* Number of variables #!EF
is set to "1" and that the #!F-adobe-times-bold-r-normal--18* Single time step
#!EF toggle button is activated. #!N #!I30 #!N 3. For #!F-adobe-times-bold-r-normal--18*
Data organization #!EF , confirm that the #!F-adobe-times-bold-r-normal--18* Block #!EF (i.e.,
record) toggle button is activated. #!N #!I30 #!N 4. Click on
#!F-adobe-times-bold-r-normal--18* Describe Data #!EF to bring up the "simplified" prompter. #!N
#!I30 #!N 5. Enter the path name of the data file
in the #!F-adobe-times-bold-r-normal--18* Data file #!EF field: #!CForestGreen #!N #!N #!F-adobe-courier-bold-r-normal--18*
#!N /usr/lpp/dx/samples/data/record_scalar #!EF #!N #!N #!EC #!N #!I30 #!N 6. Browse
the data file if you like by choosing #!F-adobe-times-bold-r-normal--18* Browser #!EF
from the ellipses to the right of the #!F-adobe-times-bold-r-normal--18* Data Field
#!EF field. #!N #!I30 #!N 7. Enter the values "5," "8,"
and "6," in that order, in the first three #!F-adobe-times-bold-r-normal--18* Grid
size #!EF fields. The number of data values is 240 (i.e.,
5 * 8 * 6). #!N #!I30 #!N 8. Confirm that
#!F-adobe-times-bold-r-normal--18* Data format #!EF is set to ASCII (text). #!N #!I30
#!N 9. Confirm that #!F-adobe-times-bold-r-normal--18* Data order #!EF is set to
Row. #!N #!I30 #!N 10. Finally, set the first three origin-delta
pairs (in the #!F-adobe-times-bold-r-normal--18* Grid positions #!EF section of the prompter)
to: 1.0, 0.5; 3.0, 1.0; and 2.0, 0.75, in that order.
#!N #!N Since the data order is Row (i.e., last index
varies fastest), the first six data values are associated with positions
[1 3 2], [1 3 2.75], [1 3 3.5 ], [1
3 4.25], [1 3 5], and [1 3 5.75 ]. (If
the data are stored so that "last index varies slowest," #!F-adobe-times-bold-r-normal--18*
Data order #!EF should be set to Column.) #!N #!I30 #!N
11. To save the header file: #!Rex1a #!N #!I0 #!N #!F-adobe-times-medium-r-normal--18*
#!N #!N #!I30 #!N a. Select #!F-adobe-times-bold-r-normal--18* Save As... #!EF from
the #!F-adobe-times-bold-r-normal--18* File #!EF pull-down menu. #!N #!I30 #!N b. When
the #!F-adobe-times-bold-r-normal--18* Save a Data Prompter Header File... #!EF dialog box
appears, position the cursor in the #!F-adobe-times-bold-r-normal--18* Selection #!EF field (at
the point indicated by the carat). #!N #!I30 #!N c. Enter
the name of the file (record_scalar). #!N #!I30 #!N d. Click
on #!F-adobe-times-bold-r-normal--18* OK #!EF . #!N #!I0 #!N #!EF #!N The
file is saved in your current directory with the extension "
#!F-adobe-times-bold-r-normal--18* . #!EF general" and should look like: #!N #!I0 #!N
#!EF #!N #!CForestGreen #!N #!N #!F-adobe-courier-bold-r-normal--18* #!N #!N file = /usr/lpp/dx/samples/data/record_scalar
#!N grid = 5 x 8 x 6 #!N format =
text #!N interleaving = record #!N majority = row #!N field
= field0 #!N structure = scalar #!N type = float #!N
dependency = positions #!N positions = regular, regular, regular, 1.0, 0.5,
3.0, 1.0, 2.0, .75 #!N #!N end #!EF #!N #!N #!EC
#!N #!N Note the information that you have supplied directly (lines
1, 2, and 10). You can visualize the data file using
the #!F-adobe-times-bold-r-normal--18* Visualize Data #!EF button in the initial Data Prompter
window. #!N #!N #!N #!F-adobe-times-medium-i-normal--18* Next Topic #!EF #!N #!N #!Lall116,dxall117 h Example 2. Cell-centered Data #!EL
#!N #!F-adobe-times-medium-i-normal--18* #!N
|