in reply to Re^5: Help Please: FCS Binary 2 ASCII conversion
in thread Help Please: FCS Binary 2 ASCII conversion

at the beginning the results are correct then towards the end the results are wrong eg: the last results are: "-2.52964307903735e-29 3.69734402349445e+19 -2.80729058346108e-35 126837727232 -3.24638382888599e+26 6248.572265625 2916415963136 126304272384 1.26817648901879e-26" while in the file FloatData4031.csv at the end of the file should be: "2736.80,54985.20,13191.12,1128.60,31017.60,197.64,19.44,1706.65,5477.33,-36.52,94.62 2736.90,39273.60,5982.12,86.40,4153.68,32.40,-8.64,526.44,1362.11,-14.11,45.65 2736.90,63292.80,10270.80,1210.68,32983.20,158.76,34.56,1642.45,4472.60,68.06,83.00 2737.00,31156.80,5778.00,1323.00,33670.08,110.16,7.56,949.09,1186.63,-31.54,73.04 "

Thank so much again for your kind help.
  • Comment on Re^6: Help Please: FCS Binary 2 ASCII conversion

Replies are listed 'Best First'.
Re^7: Help Please: FCS Binary 2 ASCII conversion
by BrowserUk (Patriarch) on Apr 13, 2010 at 04:01 UTC

    Again, you forgot the <code></code> tags. Once more and I stop reading your posts.

    What output does the program list for "\$BYTEORD" => ??? on your machine?

    What hardware are you running on?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      sorry about missing the code tags "\$BEGINANALYSIS" => 0, "\$BEGINDATA" => 1794, "\$BEGINSTEXT" => 0, "\$BYTEORD" => "4,3,2,1", "\$DATATYPE" => "F", "\$ENDANALYSIS" => 0, "\$ENDDATA" => "441793 ", "\$ENDSTEXT" => 0, "\$FIL" => "4031.fcs", "\$INST" => " ", "\$MODE" => "L", I am running Linux memory 1.9 GiB 2 CPU Intel(R) core(TM)2 Duo CPU

        Hm. Same file format. Same hardware. Different result. That leaves your perl version.

        I think maybe the endian formats '>' & '<' didn't get into Perl until 5.10, so if you're running 5.8 that could explain the different results. But...are you getting any error messages?


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.