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

Home » Public Forums » archive » How to read a file in zip or gz format using 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: How to read a file in zip or gz format usin [message #2648 is a reply to message #2507] Thu, 04 August 1994 21:42 Go to previous message
oet is currently offline  oet
Messages: 28
Registered: February 1993
Junior Member
>
> I am asking for help to read a file in zip or gz format using IDL. At the
> moment, I have a huge data file in ASCII format about 10 Mbytes, it thus
> takes a long time to read in all the data. I wonder it may take less time if
> the data is compressed using either zip or gzip methods. But how can I read
> such compressed file? Any advice over there is highly appreciated.
>
>

No problem, I had a similiar problem some time ago, here is the data read
procedure I used,

Thomas Oettli


FUNCTION GET_RC, f

; Return reference coordinates

coords = { x_ref:fltarr(305,269), y_ref:fltarr(305,269) }
spawn, ['gunzip','-c',f], UNIT=lun, /NOSHELL

readu, lun, coords
free_lun, lun
return, coords


END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Diagnostic printout
Next Topic: Different shifts on rows of matrices

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

Current Time: Sat Oct 11 13:03:25 PDT 2025

Total time taken to generate the page: 1.28625 seconds