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

Home » Public Forums » archive » Re: byte offset in POINT_LUN
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: byte offset in POINT_LUN [message #55240] Thu, 09 August 2007 15:44 Go to previous message
badjelly.witch is currently offline  badjelly.witch
Messages: 27
Registered: May 2006
Junior Member
>> And, viola! You are back! :-)

Magniifque!

I'd just like to add a warning: jumping around in a file *may* not be
as efficient as you might think, especially if you're going backwards
from the current position. Specifically, if you have gzipped your
large ASCII file and opened it in IDL with the OPENR COMPRESS keyword
(and why wouldn't you?) then moving around with POINT_LUN involves
reinitialising the compressed data stream. I think to all intents and
purposes it means IDL goes back to the start of the file and reads up
to the saved position again.

I remember years ago I discovered a BACKSPACE command in an old
version of Fortran on a PDP 11. I wrote a program that read a line,
thought about it for a while and then backspaced to the start of the
line and reread it. It worked beautifully on a small file but bogged
down horribly on a large one, because BACKSPACE was rereading the
entire file. A valuable lesson!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Use IDL6.0 to read gcc3.4(Mingw32) written data
Next Topic: Re: Transforming a nonlinear equation

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

Current Time: Fri Oct 10 15:48:29 PDT 2025

Total time taken to generate the page: 0.47980 seconds