X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12 Jan 2012 05:10 AM by  anon
Gzip compression for Envi files
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:4
New Member


--
12 Jan 2012 05:10 AM
    Dear all, I have been looking for a possibility to compress some pretty large files using IDL code with envi functionality. The original images are around 24GB in size, long integer arrays, dimensions ~ 22000x28000x9. I came across the option of using gzip compression for envi files using the envi_write_envi_file function. This first gave me very promising results when I wrote not so large files, e.g. 8000x9000x1 byte images that were originally ~60MB had a compressed size of 800KB! I can open them without problems in envi... However, once I tried writing compressed outputs for those very big files, I get errors once I try to display it in envi. It seems to write fine and also allows me to open it as it appears in the available bands list. But once I try to display the data i get an end of file error .."end of file encountered".. [see screenshot below] My question is: are there any restrictions regarding filesize or file dimensions when using the gzip compression for envi files? The information given in the envi help on the compression is pretty limited so any additional information would be really helpful... Thanks in advance, Patrick

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    13 Jan 2012 08:12 AM
    I did a search in the ENVI help for gzip which brought me to the compressing output page which states: "Be aware that ENVI cannot read compressed files that are larger than 2 GB. If you compress a large file and it remains larger than 2 GB when compressed, you cannot read it with ENVI."

    Deleted User



    New Member


    Posts:4
    New Member


    --
    17 Jan 2012 07:51 AM
    Hi, thanks for your reply. I didn't search in the ENVI help - so this piece of information does help. I did suspect something like that... Its a shame but there might be a workaround by storing individual bands separately..
    You are not authorized to post a reply.