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

Home » Public Forums » archive » Re: Reading from process pipes in 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: Reading from process pipes in IDL? [message #21785 is a reply to message #21782] Thu, 21 September 2000 00:00 Go to previous messageGo to previous message
landsman is currently offline  landsman
Messages: 93
Registered: August 1991
Member
In article <39C9CBD4.D6CC859A@mpipsykl.mpg.de>,
Benno Puetz <puetz@mpipsykl.mpg.de> wrote:
> I have been trying to read image data from compressed (*.gz) files.
>
> While this is possible with
>
> SPAWN, "gunzip "+file+".gz"
>
> OPENR, l, file, /GETLUN
>
> READU, ....
>
> FREE_LUN, l
>
> I would prefer a way similar to PERL's
>
> open(FILE, "gzip -cd $file |");
>
> ...
>
> since it would not have to decompress/compress to disk.
>
> Is this at all possible with IDL?

In V5.3, the /COMPRESS keyword was introduced to OPENR, which allows you
to directly access gzip'ed files in an OS-independent way. I've been
quite happy with this feature -- you can read compressed files almost
completely transparently. One thing to watch out for, is that
although POINT_LUN works on compressed files, it is much slower than on
regular files, since IDL always has to reset to the beginning on each
POINT_LUN call for compresed files.

Wayne Landsman landsman@mpb.gsfc.nasa.gov


Sent via Deja.com http://www.deja.com/
Before you buy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: TWO DIFFERENT COLOR TABLES IN SAME WINDOW
Next Topic: Re: CALL_EXTERNAL + structures + arrays

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

Current Time: Sun Oct 12 02:41:30 PDT 2025

Total time taken to generate the page: 0.48140 seconds