[Gate-users] Conversion of binary files
Kris Thielemans
kris.thielemans at csc.mrc.ac.uk
Wed May 23 22:23:22 CEST 2007
> >
> > I did a dosimetry application in ocular brachytherapy using a
> > voxellized phantom but when I convert the binary files to
> text files
> > I have to use a windows software (BinToAscii.exe version 1.9 ©
> > 1999-2002 Guillaume Dargaud).
> > Could I convert the binary files in Linux ?
> >
> You could install wine and then use
> wine BinToAscii.exe
>
what about using od. e.g.
od -t f4 -v binaryfile > textfile
would get you text file for floats. You then need to strip the offsets tha
tod writes, but that you can do with awk. maybe something like
od -t f4 -v binaryfile | awk '{print $2, $3, $4, $5}' > textfile
Kris
More information about the Gate-users
mailing list