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

Home » Public Forums » archive » Re: writing ascii-file with separator
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: writing ascii-file with separator [message #46230] Tue, 08 November 2005 04:06
Tobias Geldhauser is currently offline  Tobias Geldhauser
Messages: 3
Registered: November 2005
Junior Member
Thank you very much - the file looks perfect.

Greets,

Tobias
Re: writing ascii-file with separator [message #46231 is a reply to message #46230] Tue, 08 November 2005 03:01 Go to previous message
Peter Clinch is currently offline  Peter Clinch
Messages: 98
Registered: April 1996
Member
Tobias Geldhauser wrote:

> Isn't there a way via "format" ?
>
> printf, 1, format='?????', tab

format='(5(" ",F+012.3, " "))'

should give you, for example 5 columns of floating point with a
deliberate space either side of the number, a '+' before positive and a
'-' before negative figures, each figure having 12 total digit spaces
and 3 places of decimals with the leading figures padded by zeros.

Look up "format codes" in help for some other tweaks.

HTH, 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/
Re: writing ascii-file with separator [message #46232 is a reply to message #46231] Tue, 08 November 2005 02:50 Go to previous message
Timm Weitkamp is currently offline  Timm Weitkamp
Messages: 66
Registered: August 2002
Member
Tobias,

Have a look at this: <http://www.dfanning.com/tips/csv_file.html>.

Cheers,
Timm

Timm Weitkamp, ESRF, Grenoble, France

Tobias Geldhauser wrote:
> Hi Andres,
>
> thanks for the tip, but unfortunately i didn't work so far (still
> working on it ).
>
>
> Isn't there a way via "format" ?
>
> printf, 1, format='?????', tab
>
> greetings,
>
> Tobias
Re: writing ascii-file with separator [message #46233 is a reply to message #46232] Tue, 08 November 2005 02:37 Go to previous message
Tobias Geldhauser is currently offline  Tobias Geldhauser
Messages: 3
Registered: November 2005
Junior Member
Hi Andres,

thanks for the tip, but unfortunately i didn't work so far (still
working on it ).


Isn't there a way via "format" ?

printf, 1, format='?????', tab

greetings,

Tobias
Re: writing ascii-file with separator [message #46234 is a reply to message #46233] Tue, 08 November 2005 02:33 Go to previous message
peter.albert@gmx.de is currently offline  peter.albert@gmx.de
Messages: 108
Registered: July 2005
Senior Member
Hi Tobias,

use the FORMAT keyword with printf, e.g.

printf, 1, tab, format = '(5f12.3)'

Cheers,


Peter
Re: writing ascii-file with separator [message #46236 is a reply to message #46234] Tue, 08 November 2005 01:53 Go to previous message
panblosky is currently offline  panblosky
Messages: 17
Registered: May 2005
Junior Member
Hi Tobias,

maybe you can try the forprint.pro procedure. Cheers,
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: writing ascii-file with separator
Next Topic: IDLgrImage drawing performance with IDLgrPalette

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

Current Time: Wed Oct 08 15:39:26 PDT 2025

Total time taken to generate the page: 0.00717 seconds