Stéphane Glockner writes: > 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.
If these are Fortran unformatted data, you need at least to also specify header = bytes 4 as Fortran marks its records with leading (and trailing) 4 bytes. In addition, you might need majority = column This is what I have to use for my Fortran-generated data files. Hope this helps, W o l f g a n g PS: Here's one of my .general files: # Creator: VAR.general, version # Date: Tue Sep 23 09:52:04 2003 GMT # For: [EMAIL PROTECTED] # Directory: /home/dobler/f90/mhdf/perm-torus/torus_prof_om file = tmp/var.dat grid = 36 x 36 x 30 format = lsb ieee interleaving = record majority = column header = bytes 4 field = uu, lnrho, aa structure = 3-vector, scalar, 3-vector type = float, float, float dependency = positions, positions, positions positions = regular, regular, regular, 0.2, 0.01, -0.2, 0.01, 0, -0.2 end -- ------------------------------------------------------------------------- | Wolfgang Dobler Phone: ++49/(0)761/3198-224 | | Kiepenheuer Institute for Solar Physics Fax: ++49/(0)761/3198-111 | | Schöneckstraße 6 | | D-79104 Freiburg E-Mail: [EMAIL PROTECTED] | | Germany http://www.kis.uni-freiburg.de/~dobler/ | -------------------------------------------------------------------------
