Form of .dat files
The .dat files are used for writing out data that one will subsequently want to plot out.
The format for .dat files is given below.
All input statements assume free format (i. e. FMT = *) except for the labels which have FMT = "(a)".
Data format
- For
k
from 1
to R
label
M
- If
M
> 0 then
- For
i
equal 1
to M
Val_x(i)
, Val_y(i)
- Else if
M
< 0
- For
i
equal 1
to ABS(M)
N(i)
- IF
N(1)
= -3 then (this dataset has 3-D vectors at each point)
- For
i
from 1
to ABS(M)-1
(Coord(j, i), j = 1, N(i+1))
((...(((Val(1:3,i1, i2, ..., iM), i1 = 1, N(2)), i2 = 1, N(3))) ...), iM = 1, N(ABS(M)))
Else
- For
i
from 1
to ABS(M)
(Coord(j, i), j = 1, N(i))
((...(((Val(i1, i2, ..., iM), i1 = 1, N(1)), i2 = 1, N(2))) ...), iM = 1, N(ABS(M)))
Data variables
-
R
- integer, the number of data records
-
label
- character, one input line which is the label for this record, without quotes
-
M
- integer, the number of 2-D points (M > 0) or minus the number of dimensions (M < 0). For more
than 3-D and higher data, the data is assumed to be on a regular mesh
-
Val_x(i)
- real, the x coordinates of 2-D data
-
Val_y(i)
- real, the y values of 2-D data
-
N(i)
- integer, the number of coordinate values in each dimension, if
N(1) = -3
then the dataset has 3-D vector quantities at each point
-
Coord(j, i)
- real, the j'th value of the i'th coordinate
-
Val(i1, i2, ..., iM)
- the value of the function at
(Coord(i1, 1), Coord(i2, 2), ... , Coord(iM, ABS(M)))