X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Nov 2012 01:19 PM by  anon
Read binery file
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
21 Nov 2012 01:19 PM
    Hi I got a problem with loading a binary file with IDL. I cannot read data with different byte order. In the header of ENVI standard file "byte order" is equal to 0 or 1 (Host, Ieee respectively). The default value for reading data with binary_read is 0, but how can I change it to 1. There are some other function to read binary data but I do not know which function or program can read binary data with different byte order. thanks a lot.

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Nov 2012 02:54 PM
    Use the ENDIAN keyword on Read_Binary. You are on your own when it comes to figuring out what "big", "little", or "native" means. Try it, and if the results look like gobbledygook, try something else. One of them will work correctly, I'm sure. :-)

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Nov 2012 03:13 PM
    Thank for your message. It helped. Interestingly I checked 'little' and 'native'. I found there is no differences with them so I didnt check 'big'.
    You are not authorized to post a reply.