Stéphane Glockner wrote:

Hello,

I am new to OpenDx and have difficulties to import binary data.
Here is an example of an header file (header.general) I have created :

file = ./data.dx
points =           81
format = binary
interleaving = record
field = locations, vitesse, temperature, visco_mol
structure =2-vector, 2-vector, scalar, scalar

end

The data.dx file contains all the field in binary format (from a FORTRAN application, data are float-single precision) in one row. The computer on which the file has been created and is readen is the same (PC with Linux) The file is readen without any problem (by FileSelector and Import) but the field is not what I expect.
It is like if there were a mixt of the different field.

Everything works well when the file data.dx is an ascii one.

FORTRAN has this bad habit of inserting byte counters before and after array values, i e if you have printed out ten floating point values (1.0 ... 10.0, for example), the actual data will be:
40 1.0 2.0 .... 9.0 10.0 40
where the 40's will integers.  You will need to compute the offset there.

Reply via email to