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 #21790 is a reply to message #21782] Thu, 21 September 2000 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Benno Puetz <puetz@mpipsykl.mpg.de> writes:
> 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?

If you are running on a Unix-type operating system, then you can give
my seekable pipes library a try. You can open a gzip'ed or
compress'ed file and they will automatically be unzipped on the fly as
you access them. You can also open any piped stream, not just gzipped
files.

In addition you can seek to anywhere in the (uncompressed) file or
pipe. The only restriction is that you must have enough temporary
disk space to hold the unzipped file.

Here it is, listed under Input/Output:

http://cow.physics.wisc.edu/~craigm/idl/idl.html

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[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: Sat Oct 11 12:16:19 PDT 2025

Total time taken to generate the page: 1.27732 seconds