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

Home » Public Forums » archive » Re: IDL Spawn on Windows OS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL Spawn on Windows OS [message #81511] Sat, 29 September 2012 06:14 Go to next message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le samedi 29 septembre 2012 04:10:29 UTC+2, wlandsman a écrit :
> I have a FITS file reader that can work with gzip compressed files. It can work much more efficiently if it can know how many bytes would be in the uncompressed file (without actually having to uncompress it.) For Unix/Mac systems I can parse the output of "gzip -l" captured with Spawn
>
>
>
> IDL> spawn,'gzip -l 1904-66_HPX.fits.gz',output
>
>
>
> and the 'output' variable will contain something like
>
> ' compressed uncompressed ratio uncompressed_name'
>
> ' 105515 161280 34.6% 1904-66_HPX.fits'
>
>
>
> I am told that this will not work under Windows OS (with gzip installed), presumably because it does not know about a gzip command. Can anyone suggest a way to make this code Windows friendly? (I do not have access to IDL on a Windows machine). Thanks, --Wayne

The "gzip -l" command should work on Windows (with, of course, gzip properly installed). Be carefull to specify the *absolute* path of the file in the spawned command.
alx.
Re: IDL Spawn on Windows OS [message #81584 is a reply to message #81511] Tue, 02 October 2012 14:45 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Saturday, September 29, 2012 9:14:18 AM UTC-4, alx wrote:

> The "gzip -l" command should work on Windows (with, of course, gzip properly installed). Be carefull to specify the *absolute* path of the file in the spawned command.

Thanks for responding. It turns out that gzip was not properly installed on the Windows machine, and my FITS reader will now check for that possibility. --Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Where is the Object Programming guide (IDL 8.2)
Next Topic: converting strings into numerical or string data depending on the contents

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

Current Time: Wed Oct 08 18:41:20 PDT 2025

Total time taken to generate the page: 0.00464 seconds