How to read single precision (REAL*4) FORTRAN 77 Binary data using Perl 5.6 and above
Posted on 2006-05-19
I'm trying to read unformatted fortran 77 data, specifically single precision real*4 data, using perl 5.6. The reason for using perl for this problem is that I'm analyzing data, and I want the program to be as portable as possible. The other part of this question is how to read the binary data created on a different bit machine i.e. created on a 32-bit SUN then read on a 64-bit SGI. I know how to check for the "endian-ness" using perl, however I'm not sure how to read the binary data created by fortran. Any response will be greatly appreciated.