I am taking part in another maths forum where the situation has come up to convert a binary file to a text file. I initially suggested python because I assumed there would be a suitable module out there but I am afraid I spoke to soon or haven't looked in the right places.
If someone could please take a look at the format of the .bin file and the desired resulting .txt file (we have the code to convert a single file only, but this is in fortran and we are trying to use python to convert multiple files) that would be greatly appreciated. I am just having trouble with where to look to convert a .bin file into a txt file with columns of integer values.
I have tried using the binascii module but I do not think this is the right module. I have changed the file extension to .doc so I could upload here. Any advice would be great.
integer lat, lon, irec,x,y
do 123 y=1,90