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

Home » Public Forums » archive » Re: Tab-Delimited 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: Tab-Delimited Files [message #9036 is a reply to message #9034] Thu, 22 May 1997 00:00 Go to previous message
sritcey is currently offline  sritcey
Messages: 5
Registered: March 1997
Junior Member
R. Kyle Justice (rkj@dukebar.crml.uab.edu) wrote:
: Is there a way to create tab-delimted files in
: PV-Wave?

: I have columns of data and I would like to
: separate them by tabs instead of spaces. I
: can't seem to get it to work with Fortran
: or C format codes in DC_WRITE_FIXED.

The following works for me...

tab = string (9B)

column1 = [ 1, 2, 3, 4]
column2 = [10, 20, 30, 40]
tabcolumn = make_array (n_elements (column1), value = tab)

status = dc_write_fixed ('testc.dat', /column, $
column1, tabcolumn, column2, format='%d%s%d')

status = dc_write_fixed ('testf.dat', /column, $
column1, tabcolumn, column2, format='(i1, a, i2)')

(Unfortunately, PVWave will not recognize '%d\t%d' in the C-like way,
but will just write out the literal character pair or a backslash
followed by a lower-case t.)

Hope this helps

Stephen Ritcey.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Need quick example of linking IDL routines
Next Topic: How Object-oriented?

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

Current Time: Wed Oct 08 19:36:03 PDT 2025

Total time taken to generate the page: 0.34979 seconds