|Hi Brent,
 |Thanks very much for you help. Since I record simulation data every 60
 |seconds over a 24 hour period this would create large amount of files. I
 | was thinking that, somehow, one could import the file as general array
 |format with sequencer stepping through each timestamp data. However, I
 |am  having difficulty trying to import it as General array format -- I
 |don't  know how to creat a header file to describe my datafile.
 |
 |Any examples of header file importing similar datafile would be most
 |helpful.

Your data looked ideal for ImportSpreadsheet.

----cut-here----
series var0a var0b var1a var1b
0 1.1 1.2 1.3 1.4
1 2.1 2.2 2.3 2.4
2 3.1 3.2 3.3 3.4
----cut-here----

The only catch is that you want to merge adjacent pairs of columns into
(presumably) a single vector value for each variable.

If you don't have too many variables, you can do this manually in a network
by 'Extract'ing "var0a" and "var0b" for example, running these through a
Compute("[a,b]"), and 'Replace'ing the result on the original field using a
new name -- say, "var0".  Repeat for other variables.

If you have lots of variables, you can put the above process in a loop using
the ForEachN module.  But this quickly gets out of hand.  Personally, I
find it simpler to just write the data in DX native format.  Then you can
do exactly what you want.  And you want something like this:

     object "positions" class gridpositions counts 3 
       origin             0 
       delta              1 
       attribute "dep" string "positions"
     #
     object "connections" class gridconnections counts 3
       attribute "element type" string "lines"
       attribute "dep" string "connections"
       attribute "ref" string "positions"
     #
     object "series" class array type int rank 0 items 3 data follows
             0         1         2 
       attribute "dep" string "positions"
     #
     object "var0" class array type float rank 1 shape 2 items 3 data follows
              1.1          1.2
              2.1          2.2
              3.1          3.2
       attribute "dep" string "positions"
     #
     object "my data field" class field
       component "positions" value "positions"
       component "connections" value "connections"
       component "series" value "series"
       component "var0" value "var0"
     #
     end

Use Slice to grab a timestep of the data.

Randy

Reply via email to