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

Home » Public Forums » archive » Re: Write a vector into a file
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: Write a vector into a file [message #73415 is a reply to message #73414] Tue, 09 November 2010 07:18 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Nov 9, 1:07 pm, David Fanning <n...@dfanning.com> wrote:
> But I think it works for the wrong reasons, and
> I think there is a danger, especially if the data
> is not all of the same magnitude, that what ends
> up in the file is not exactly what you *expect*
> will end up in the file.

I agree. That way is relying on IDL's guess of how to make a string
out of the array, which is just intended to be a handy default (and
most often used interactively for the console). But since we do not
know what is getting written (might not even be numbers), that is a
neat generic trick.

> Much better, it seems to me, to do this correctly
> so that the precision of the data is maintained
> in the way you specify. Of course, we can't do
> this "correctly" since the end user hasn't told
> us anything about his data. It may be he is
> content with solutions that just look like they
> work. Many people are. :-)

That is a common problem. Too many are content with always using text
files, as if none of the binary formats existed or ever were useful.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: confused multiplying arrays
Next Topic: IDL to FORTRAN translator ?

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

Current Time: Sat Oct 11 15:31:26 PDT 2025

Total time taken to generate the page: 1.19921 seconds