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 #21795 is a reply to message #21782] Thu, 21 September 2000 00:00 Go to previous message
George N. White III is currently offline  George N. White III
Messages: 56
Registered: September 2000
Member
On Thu, 21 Sep 2000, Benno Puetz 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?
>
> --
> Benno Puetz
> Kernspintomographie
> Max-Planck-Institut f. Psychiatrie Tel.: +49-89-30622-413
> Kraepelinstr. 10 Fax : +49-89-30622-520
> 80804 Muenchen, Germany

If your system (OS/2, unix, ??) supports named pipes, you can use them for
this sort of problem, although I have never tried them with IDL. Use
"mknod pipename p" to create a named pipe, then start a background process
to stuff data into the pipe, (e.g., "gzcat file.gz > pipename & "). In
your program, "pipename" is read as if it was an ordinary file, except
that you can't do things like Fortran backspace or rewind, or memory
mapped I/O.

--
George N. White III <gnw3@acm.org> Bedford Institute of Oceanography
[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 Nov 30 23:28:05 PST 2025

Total time taken to generate the page: 1.12001 seconds