Hi I recently received a binary file and am having trouble reading it. I tried both BIG_ENDIAN and LITTLE_ENDIAN. The file consists of a 300 byte character header that I can read, and 136192 bytes that should be an integer1 field. The file size 136492 is consistent with that.
(should be direct access, unformatted, recl = 136492, I’ve experimented with different settings) I think I could figure out what was there if I could just see what the actual binary sequence was. The values (according to metadata I was given) should go from 0 to 250 (which makes sense since integer1 allows 256 possible values). However, I keep reading the file into values from -128 to 127. I suspect this is not a BIG_ENDIAN or LITTLE_ENDIAN field. I would like to be able to see the actual binary values (from 00000000 to 11111111 should be the 1 byte range) to figure out what is there in the input file. How can I do that with a fortran read?
Thanks,
Keith