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 #21791 is a reply to message #21782] Thu, 21 September 2000 00:00 Go to previous messageGo to previous message
gfirem1 is currently offline  gfirem1
Messages: 1
Registered: September 2000
Junior Member
Benno Puetz (puetz@mpipsykl.mpg.de) wrote:
: I have been trying to read image data from compressed (*.gz) files.
: I would prefer a way similar to PERL's
: open(FILE, "gzip -cd $file |");

Benno -

If you know the array size in advance, you can use the -c flag to gunzip
to stdout and capture the output in a unit pipe:

IDL> imagedata=intarr(1325,800)
IDL> spawn, 'gunzip -c testdata.dat.Z', unit=dataunit
IDL> readu,dataunit,imagedata
IDL> free_lun,dataunit
IDL> help,imagedata
IMAGEDATA INT = Array[1325, 800]


--
__.
/ | , , , , , ,_ Gwyn Fireman
(__/|/(_(_)(_/|/| |_/ gfirem1@alumni.umbc.edu
/| /|
(_/ (_/
[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 05:03:29 PDT 2025

Total time taken to generate the page: 0.01038 seconds