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

Home » Public Forums » archive » Re: maximum line length with printf?
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: maximum line length with printf? [message #44671 is a reply to message #44670] Thu, 07 July 2005 12:58 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Alternatively you can uise formatted output suing the FORMAT keyword to
printf. Haje


"Ben Tupper" <btupper@bigelow.org> wrote in message
news:3j5eodFod6nrU1@individual.net...
> guillaume.drolet.1@ulaval.ca wrote:
>> Hi all IDL users!
>>
>> I'm currently writing formatted file with IDL using the printf
>> function.
>> I want to have my 7 variables on the same line:
>>
>> printf, lun_1,
>> data[0,m],data[1,m],data[2,m],data[3,m],data[4,m],data[5,m], doy
>>
>> In my output file, the last variable is on the next line, apart from
>> the 6 other variables. Then the loop goes on and it starts a new line
>> with only the first 6 variables and another one with only the seventh,
>> etc...
>>
>> Is the printf function retrained in terms of line length or number of
>> characters?
>>
>> Thanks for helping on this. It is pretty annoying and not the first
>> time I'm running into this problem with IDL.
>>
>> Gui
>>
>
> Hello,
>
> I think you might need to specify the WIDTH keyword when you OPEN the
> file. Try something big like 500.
>
> Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Announcing GDL 0.8.10
Next Topic: Giving Up on Windows

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

Current Time: Fri Oct 10 17:47:52 PDT 2025

Total time taken to generate the page: 1.99266 seconds