Home »
Public Forums »
archive »
IDL Spawn on Windows OS
IDL Spawn on Windows OS [message #81516] |
Fri, 28 September 2012 19:10 |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
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
|
|
|
Current Time: Wed Oct 08 18:40:48 PDT 2025
Total time taken to generate the page: 0.00461 seconds