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

Home » Public Forums » archive » SYLK files <--> IDL structure?
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: SYLK [message #56594 is a reply to message #9357] Mon, 05 November 2007 09:30 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
I seem to remember that you can't write mixed types using write_sylk.
What you can do is modify the write_sylk function such that it does what
you need. It's pretty simple.

For example, A long time ago I had someone who really wanted to create
sylk files and also wanted to insert column headers. make_sylk was
born. You pass a structure:

dat={header:['x','y','z'], data:[1,2,3]}

And the structure is written to file from left to right. Tag names are
irrelevant. The contents of the first tag will be completely written,
then the contents of the second, and so on.

This may not be exactly what you are looking for but the point is that
the modifications are pretty simple. You'll of course need to pass the
data in as a struct, then figure our how you'll have to pick out the
data you need in the order you need it. write_sylk is in your idl "lib"
directory. Make a copy of it and have at it.


My version of make_sylk can be found here:

http://www.acoustics.washington.edu/~towler/programs/make_sy lk.pro


-Rick




Jeff wrote:
> Hi there...
>
> I'd like to know if I can use WRITE_SILK to save float and string data
> together.
> Suppose I have tw arrays:
>
> a=[1.2, 2.3, 4.5, 2.1]
> b=['a', 'b', 'c', 'd']
>
> Is it possible to join these arrays in one file using WRITE_SILK??
>
> Thanks!
> Julio
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: for loop is killing me
Next Topic: string conversion & integer

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

Current Time: Fri Oct 10 20:50:03 PDT 2025

Total time taken to generate the page: 0.80053 seconds