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

Home » Public Forums » archive » Re: File Output in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: File Output in IDL [message #55646] Wed, 29 August 2007 02:38
incognito.me is currently offline  incognito.me
Messages: 16
Registered: August 2007
Junior Member
On 28 Aug., 18:02, David Fanning <n...@dfanning.com> wrote:
> incognito.me writes:
>> I'm trying to generate a random array (nxn) that should be output as a
>> file with .txt extension.
>> The File should also begins with a five line header.
>> The problem is that for row and column number greater than 7 the
>> output is all mixed up.
>
> Try adding a WIDTH keyword to your OpenW statement:
>
> http://www.dfanning.com/fileio_tips/width.html
>
> 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.")

Thank you for the hint.
cheers
Re: File Output in IDL [message #55667 is a reply to message #55646] Tue, 28 August 2007 09:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
incognito.me writes:

> I'm trying to generate a random array (nxn) that should be output as a
> file with .txt extension.
> The File should also begins with a five line header.
> The problem is that for row and column number greater than 7 the
> output is all mixed up.

Try adding a WIDTH keyword to your OpenW statement:

http://www.dfanning.com/fileio_tips/width.html

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: xyouts for iPlot?
Next Topic: What is 'sensor's filter function'?

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

Current Time: Sat Oct 11 14:58:30 PDT 2025

Total time taken to generate the page: 0.40031 seconds