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

Home » Public Forums » archive » Re: my god this should be easy!
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: my god this should be easy! [message #12255 is a reply to message #12251] Fri, 24 July 1998 00:00 Go to previous messageGo to previous message
Kevin Ivory is currently offline  Kevin Ivory
Messages: 71
Registered: January 1997
Member
T Bowers wrote:
> what the...
> how in the world do i write my data to a text file so it's tab delimited?
>
> sizeInfo = size(myData)
> fmt = "(" + strtrim(string(sizeInfo[1]),2) + "(F0, TR1))"
> printf, myFile, myData, FORMAT = fmt
>
> certainly doesn't work, it puts a space there (ascii 32 decimal) NOT
> a tab (ascii 09).

Instead of the TR1, put ' ' in your format description, that is
[single quote] [tab] [single quote].
I just tried it in an interactive session and it works fine:

IDL> print, format="(4(f0,' '))", findgen(10)
0.000000 1.000000 2.000000 3.000000
4.000000 5.000000 6.000000 7.000000
8.000000 9.000000
IDL>

Hope this helps
Kevin
--
Kevin Ivory Tel: +49 5556 979 434
Max-Planck-Institut fuer Aeronomie Fax: +49 5556 979 240
Max-Planck-Str. 2 mailto:Kevin.Ivory@linmpi.mpg.de
D-37191 Katlenburg-Lindau, GERMANY http://www.gwdg.de/~kivory2/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Q] Reading from ASCII file?
Next Topic: Re: [Q] Reading from ASCII file?

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

Current Time: Wed Oct 08 18:44:45 PDT 2025

Total time taken to generate the page: 0.00391 seconds