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

Home » Public Forums » archive » Re: Printing multiple columns in 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: Printing multiple columns in IDL [message #61919 is a reply to message #61771] Fri, 01 August 2008 07:55 Go to previous message
Joost Aan de Brugh is currently offline  Joost Aan de Brugh
Messages: 16
Registered: July 2008
Junior Member
>
> Weird. Have you tried using a format statement?
>
> 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.")

Hello David,

It is becoming more and more ironic. I tried Width=width + 2 and it
works. But of course, that does not solve the problem. It only removed
the symptom. Then I used the format statement.

datalength = N_Elements(data[*,0])
printf,lun,data,format=strjoin(['(',strtrim(string(datalengt h),
2),'G16.8))'])
; The format should make no sense because it is equal to the default
format for the double array.

Though it should make no sense, it works

But even more ironic is that it also worked when I used Width=20. I
discovered that single elements are never cut.

openw,lun,'test.dat',/Get_Lun,Width=20
printf,lun,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz " ;
Far too long

It is still in one line
Adding the format statement probably converts my data into strings
(one string for a whole row) before it enters the file. And then the
file thinks it connot be cut anymore.

The 'width + 2'-thing maybe has something to do with line feeds or end-
of-lines (???)

Thanks for the help.
Joost Aan de Brugh
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Edge detection and convert edges into polygons
Next Topic: Piecewise curve fitting in idl

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

Current Time: Fri Oct 10 20:00:09 PDT 2025

Total time taken to generate the page: 0.16306 seconds