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 #56646 is a reply to message #56594] Thu, 08 November 2007 08:39 Go to previous messageGo to previous message
Jeff[2] is currently offline  Jeff[2]
Messages: 18
Registered: November 2007
Junior Member
On 5 nov, 15:30, Rick Towler <rick.tow...@nomail.noaa.gov> wrote:
> 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- Ocultar texto entre aspas -
>
> - Mostrar texto entre aspas -

Thanks Rick!
I changed your make_sylk version to write my data according to my
needs. It worked fine.
I think ITT should make a new version of WRITE_SYLK to allow using
header columns.
Best!
[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 06:47:49 PDT 2025

Total time taken to generate the page: 0.87999 seconds