I have an unformatted binary file generated by fortran 77 and i want to import it in Mathematica. The file is formed by 5 data arrays with double precission float numbers. The problem is that seems that f77 writes some "Head records" before and after the actual numbers, difficulting the reading.
There is a related StackExchange question:
Import Fortran unformatted binary
but cannot put it to work. My aproximation to the problem so far was:
f = OpenRead["JCO1DADAP_0000", BinaryFormat -> True]
BinaryReadList[f, {"Integer64", "Real64", "Integer64", "Integer64",
"Real64","Integer64", "Integer64", "Real64", "Integer64", "Integer64",
"Real64", "Integer64", "Integer64", "Real64", "Integer64"},
ByteOrdering -> -$ByteOrdering]
Some numbers makes sense because I know the data are between [-10,10] (numerical order values - not real values: i.e. something like 1.24*10^-1244 is wrong) but there are others that are definitely wrong (like 1.24*10^-1244).
The problem could be that i'm not taking care of the "records" before and after the entries correctly as i do not know how was this file written far than i have written here. I know that fortran put "records"every time the WRITE function is called. So i do not know really if the records are each 5 elements or each one element.
For those of you that wants a sample here it is:
https://www.dropbox.com/s/bmruv7juorzpwhm/JCO1DADAP_0000?dl=0
If you have some questions or want more info, do not hesitate.
Thank you all
Edit: The arrays have dimension = 3840 *480
Edit 2: First lines of the Hexdump of the file:
0000000 00 00 00 14 00 00 0c 80 00 00 0f 00 00 00 01 e0
0000010 00 00 00 01 00 00 00 08 00 00 00 14 00 00 1e 20
0000020 3f f7 1c 71 c7 1c 23 97 3f 69 99 99 99 99 99 9a
0000030 3f a0 00 00 00 00 00 00 3f b0 00 00 00 00 00 00
0000040 3f b8 00 00 00 00 00 00 3f c0 00 00 00 00 00 00
0000050 3f c4 00 00 00 00 00 00 3f c8 00 00 00 00 00 00
0000060 3f cc 00 00 00 00 00 00 3f d0 00 00 00 00 00 00
0000070 3f d2 00 00 00 00 00 00 3f d4 00 00 00 00 00 00
0000080 3f d6 00 00 00 00 00 00 3f d8 00 00 00 00 00 00
0000090 3f da 00 00 00 00 00 00 3f dc 00 00 00 00 00 00
00000a0 3f de 00 00 00 00 00 00 3f e0 00 00 00 00 00 00
00000b0 3f e1 00 00 00 00 00 00 3f e2 00 00 00 00 00 00
00000c0 3f e3 00 00 00 00 00 00 3f e4 00 00 00 00 00 00
Edit 3: Here is a link with the file readed by an IDL program to check if the reading is good enough: