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

Home » Public Forums » archive » Re: Extracting arrays into txt files
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: Extracting arrays into txt files [message #46068 is a reply to message #46065] Thu, 03 November 2005 04:18 Go to previous messageGo to previous message
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
txominhermos@hotmail.com wrote:

> The main problem is that printing with printf, the samples are cut and
> continued in a diferent line.

By default, yes. I found out the default wrap is 10 fields, which
corresponded beautifully with my 10 x 10 test array. D'oh!

> So, is it possible to print the document
> with only one order or do I have to use loops and play with the format,
> inserting the tabs or commas?

You can explicitly define the format codes for the write. How you can
do that is shown in the Help, easiest to get there from the Printf help
and there's a link at Format (at least there is in 6.2...)

Something like

printf, 1, format='(50(" ", I, " ")), array

Will print 50 numbers to a line before wrapping. I don't think you need
to use loops.

Pete.
--
Peter Clinch Medical Physics IT Officer
Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: reading wav files
Next Topic: Re: online help IDL 6.2

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

Current Time: Sat Oct 11 13:44:34 PDT 2025

Total time taken to generate the page: 0.40532 seconds