Alex, This is really a simple issue. In fortran when you write out unformatted records, there is a 4 byte header and footer which indicates the size of the unformatted record. That is what you read in.
More generally, if you construct a native ".dx" file to describe the unformatted fortran record you can specify to DX that it should skip those 4 bytes before reading in the data. If you write multiple fortran records to the same file, then you can also describe the offsets from the start of the file to the beginning of the data for each record, etc. I've done this before and it works quit nicely. Tom On Thu, 18 Jan 2001, Alexander Berreth wrote: > >I was playing with reading in binary files written in FORTRAN instead of >ascii files. >I had some trouble reading them with dx until I included a header >statement in the >general file to read in 4 bytes first before starting to read the >locations. >After that it somehow worked. Can anyone tell me what those 4 bytes are >for and if >this is neccessary and the same on all platforms ? Is there some >information about binary files somewhere? What >I found in the users/reference/quick-start guides wasn't really >sufficient for me ... > >Thanks in advance > >Alex >
