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

Home » Public Forums » archive » idl readf error
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: idl readf error [message #65219 is a reply to message #65149] Sat, 14 February 2009 07:04 Go to previous messageGo to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Feb 14, 8:52 am, David Fanning <n...@dfanning.com> wrote:
> Vince Hradil writes:
>> This thread makes me think... Can anyone compare and contrast this
>> approach with the approach I usually use - that is:
>> read each line into a string buf: buf =3D '' $ readf, lun, buf
>> then use strsplit(buf,/extract) to chop up the buf
>> then use fix, float, etc. to get the values.
>
>> I don't usually use format statements for reading, just writing.
>
> Can you spell S-L-O-W? ;-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Of course that's all relative. If I have to spend 2 days to figure
out how to read in a file that takes 2 seconds to parse (instead of
the normal 10 seconds) then I don't think it's worth it. Like wise if
I read a file 5 seconds faster as part of a 2 hour simulation run, I
don't think it's worth.

Just sayin'...

I guess what I what I really want to know is whether the accuracy (in
terms of round-off errors, or anything else) is any different in the
two approaches. I'm guessing not.

Thanks,
Vince
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: get LAT/LON from georef image
Next Topic: Interpolating/gridding field reflectance spectra

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

Current Time: Sat Oct 11 02:59:40 PDT 2025

Total time taken to generate the page: 0.70462 seconds