comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to read a file in zip or gz format using IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to read a file in zip or gz format using IDL? [message #2508 is a reply to message #2507] Wed, 03 August 1994 14:03 Go to previous messageGo to previous message
tai is currently offline  tai
Messages: 14
Registered: June 1994
Junior Member
Tan, Jun (j.tan@rutherford.ac.uk) wrote:
: I am asking for help to read a file in zip or gz format using IDL. At the
: moment, I have a huge data file in ASCII format about 10 Mbytes, it thus
: takes a long time to read in all the data. I wonder it may take less time if
: the data is compressed using either zip or gzip methods. But how can I read
: such compressed file? Any advice over there is highly appreciated.

10 megs, yikes! I would recommend using restore (after an initial
save); i.e. load your ASCII data into memory, then do a

save, bigdata, filename = 'bigdata.sav'

Then, whenever you need to load it in, use

restore, filename = 'bigdata.sav'

I've found this to be faster than any other method.


Alan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Diagnostic printout
Next Topic: Different shifts on rows of matrices

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 07:01:41 PDT 2025

Total time taken to generate the page: 0.48187 seconds